Browsing Symbols from ClassView

OverviewHow Do I

From ClassView, you can get information about the use of the classes, functions, and variable symbols in your application. You can select a symbol, then automatically open that source file to the definition or declaration of the symbol, or find references to those symbols in your application's source files.

To find a definition or declaration

  1. Select the symbol (class, function, or variable) for which you want to find the definition or declaration.

  2. With the mouse pointer over the selected symbol, click the right mouse button to display the shortcut menu, and click Go To Definition or Go To Declaration, as applicable.

    -or-

    Double-click the name of the symbol.

Visual C++ opens a text editor window and displays the source file containing the definition or declaration, with the insertion point positioned there.

Note   Visual C++ computes the contents of ClassView as a background process. This may mean that there is some delay from the time you open a project or save a revised file until the view is computed, and you can find a definition or declaration. If you are completing other processes that use significant computing resources, the delay may increase.

To find references

  1. Select the symbol for which you want to find references.

  2. With the mouse pointer over the selected class, click the right mouse button to display the shortcut menu, and click References.

    Note   If you have not built your application with the option to build a browse information file, a message box appears, asking if you want to build the browse information file. If you click Yes, it builds the browse information file, and you can then find references. If you click No, the references are not available.

The Definitions And References browse information window appears, with the symbol that you chose selected.

To group members in a class

You can group the members in a class either alphabetically by name or alphabetically in access specifier groups — that is, private, protected, or public.

  1. Select a class node.

  2. Click the right mouse button to display the shortcut menu.

  3. Click Group By Access to toggle the grouping.

    If the command has a check, the members are already grouped by access specifier; if not, they are grouped alphabetically.

See Also   Displaying Graphs from ClassView, Setting Breakpoints in ClassView