Analyze code

You can view classes and members, functions and their relationships using the Remote Type Hierarchy and Remote Call Hierarchy views.

To use the Remote Type Hierarchy view:

  1. In the Project Explorer view, expand your project. Select your source file and open it in the remote C/C++ editor.
    Select file from Project Explorer and open it in the editor
  2. Select the element name in the editor. Right-click and select Open Type Hierarchy.
    Select element name from editor
  3. The Remote Type Hierarchy view opens up and shows the element's hierarchy.
    Remote Type Hierarchy view showing element's hierarchy
  4. Click the Show the Supertype Hierarchy button to see a hierarchy showing the type's parent elements. This view shows the results of going up the type hierarchy.
    Show the Supertype Hierarchy
  5. Click the Show the Subtype Hierarchy button.
    Show the Subtype Hierarchy
  6. Click the Show the Subtype Hierarchy button.
    Show the Subtype Hierarchy
  7. In the hierarchy tree pane, select any element, right-click and select Focus On. The selected element and its hierarchy is presented in the hierarchy view.
    Focus on an element
    Focus on a new element

To use the Remote Call Hierarchy view:

  1. In the Project Explorer view, expand your project. Select your source file and open it in the remote C/C++ editor.
    Select file from Project Explorer and open it in the editor
  2. Select the function name in the editor. Right-click and select Open Call Hierarchy.
    Select function name from editor
  3. The Remote Call Hierarchy view opens up and shows the function's callers.
    Remote Call Hierarchy view showing function's callers
  4. To get the callees of the function. Click the Show Callees button.
    Show the callees
Related reference
Remote Type Hierarchy view
Remote Call Hierarchy view