C and C++ SoftBench User's Guide
Using SoftBench Static Analyzer
Making Textual Static Queries
Chapter 9 261
symbol of interest in the source code, then choose a command from that
tool's "Static" menu.
Selecting Text
Selecting 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
Control-Insert to copy the text to the clipboard. Move focus to the
"Symbol ()" input box and press Shift-Insert to paste the text into the
input box.
This method of selection does not work for fully qualified C++
identifier names. The double-click action does not extend past a
hyphen or double colon. For example, the C++ name Picture::
Picture cannot be selected using this method.
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 References
The "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.