Using SoftBench Static Analyzer

Making Textual Static Queries

Making Textual Static Queries

After you have generated Static information, you can make queries on your application. SoftBench Static Analyzer supports both textual and graphic queries on your application. You can execute Static queries in three ways:

Choose a command from the "Show" menu.

Enter a program identifier in the "Symbol ()" input box, then choose a related command from the "Symbol" menu.

Select a line in the Query Results Area, then choose a related command from the "Symbol" menu.

See Chapter 10, “Using Static Graphs,” on page 283 for a description of graphical queries.

Making General Queries

The "Show" menu commands allow you to perform general queries on your entire application. For example, you can find all the source files, global variables, or classes in your application.

To display all source files in the current analysis file set, choose "Show: Source Files".

To display the global variables in your application, choose "Show: Global Variables".

To display all C++ classes, choose "Show: Classes".

To display all functions, choose "Show: Functions".

Making Queries Based on a Program Identifier

The "Symbol" menu allows textual queries about specific symbols such as a specific class, function, or variable. "Symbol" queries end with " ()" and return information about an identifier. The identifier must be entered in the "Symbol ()" input box. You can either type directly into the input box or select text from the Query Results Area.

You can access the "Symbol" menu commands from your configured editor or SoftBench Debugger as well. In these other tools, select the

260

Chapter 9