Using SoftBench Static Analyzer

Making Textual Static Queries

2.Choose "Symbol: Classification ()".

Troubleshooting Invalid Identifiers for Queries

SoftBench Static Analyzer returns an "Identifier not found" error for queries on identifiers that are not present in its database.

Possible causes for this error include:

1.A source file has been edited to add new identifiers and has not been re-analyzed. Save the changes and either rebuild the project or choose "File: Analyze File Set".

2.A source file contained compile errors, and the compiler was not able to deduce information about the identifier. Correct the compile errors and rebuild or re-analyze the application.

In both cases you could also choose "Symbol: Pattern Match ()" to do a regular expression search for the identifier.

Using Pattern Matching

You can use pattern matching when you don't know the exact name of the identifier for which you are looking. You can search for a pattern and examine the list of results for an item that meets your needs. You can also search for literal strings or identifiers within comments.

To match a pattern in the source files:

1.Enter the desired pattern in the "Symbol ()" input box. The pattern entered can contain any regular expression or shell expression, depending on which option is set. To set the pattern matching options, choose "Options: Identifier Matching Rules…".

2.Choose "Symbol: Pattern Match ()".

All occurrences of the expression are displayed in the Query Result Area. Scoping has no effect.

Chapter 9

263

Page 263
Image 263
HP UX SoftBench Software manual Troubleshooting Invalid Identifiers for Queries, Using Pattern Matching