Restricting a Source Browsing Query
Related Topics:
In Source Browsing Mode, you can restrict the query to reduce both the number of matches found and the type of information returned. You can restrict a query to search all references in the source, a specific language element type, or within a specific file or construct. The Match, Type, and Scope pull-down menus in the Browsing Window can be used together to fully restrict a query.
To restrict a query:
- 1. Type the name of the symbol in the Match text box in the Browsing Window.
- 2. Choose a usage type from the Match pull-down menu.
- 3. Choose a type filter from the Type pull-down menu.
- 4. Choose which portion of the database you want to search from the Scope pull-down menu.
- The Scope text field displays if you choose Program/Library, Class/Struct, Function, or Source File.
- 5. In the Scope text box, type a specific name to refine the search.
- You can use shell-style expressions in the Scope text box.
To restrict a query to search for only the classes in a specific C++ source file:
- 1. Type the name of the symbol in the Match text box.
- 2. Choose All Occurrences Of from the Match pull-down menu.
- 3. Choose Class/Struct/Record from the Type pull-down menu.
- 4. Select Source File from the Scope pull-down menu.
- 5. In the Scope text field, type the source file name.
- 6. Choose Query
Find Matches to start the query.
To restrict a query to return symbol definitions:
- 1. Type the name of the symbol in the Match text box.
- 2. Chose Definitions Of from the Match pull-down menu.
- 3. Choose Query
Find Matches to start the query.