Using SoftBench Static Analyzer
Making Textual Static Queries
symbol of interest in the source code, then choose a command from that tool's "Static" menu.
Selecting TextSelecting text from the Query Results Area records not only the text, but the filename, line number, and column number that locates the text. SoftBench Static Analyzer uses this location information in queries when
"Scoping" is selected. (See “Using Scoping” on page 268 later in this chapter.) If you type an identifier into the "Symbol ()" input box, SoftBench Static Analyzer has no location information available. The scoping toggle button is turned off and cannot be set.
Select text from the Query Results Area in one of the following ways:
•Select a line in the Query Results Area by single clicking the left mouse button. SoftBench Static Analyzer copies the identifier associated with that query result to the "Symbol ()" input box.
•Drag from the beginning of an identifier to the end. Use the right mouse button in the Query Results Area (since the left mouse button selects the entire line). The identifier highlights as you drag. Press
This method of selection does not work for fully qualified C++ identifier names. The
The contents of the "Symbol ()" input box must be an identifier name, except when executing "Symbol (): Pattern Match ()". SoftBench Static Analyzer ignores leading and trailing blanks and tabs.
Understanding the Types of ReferencesThe "Symbol" menu provides several queries about where identifiers occur in your program. The "References" command provides the most complete list. The indentation on the "Symbol" menu indicates the related subsets of queries:
References | Lists all occurrences of the identifier. Encompasses all |
| instances found in any of the remaining categories. |
Chapter 9 | 261 |