Using SoftBench Static Analyzer

Preparing to Make Queries

1.Choose "File: Customize File Set…" to display the "Customize File Set" dialog box.

2.Set the appropriate toggle buttons to include the current project, its subprojects, and its parent projects in the analysis file set. When you set the toggle buttons, the associated projects are added to the "Projects in File Set" list. When you deselect toggle buttons, associated projects are removed from the "Projects in File Set" list. You can also remove projects from the list by selecting specific projects and pressing the Delete button.

Using these toggle buttons, you can even eliminate the current project from the analysis file set, focusing your queries entirely on parent projects and/or subprojects.

3.Select OK to confirm your changes and close the dialog box.

Once you make these changes, SoftBench Static Analyzer opens the appropriate Static databases and future queries use the new set of analysis information. SoftBench Static Analyzer saves the toggle button settings for parent projects and subprojects automatically when you exit SoftBench Static Analyzer.

Customizing the File Set in Non-Project Mode

When you start SoftBench Static Analyzer directly from the command line, SoftBench Static Analyzer does not have access to project information. Therefore, you must customize the analysis file set manually. In this mode, when you choose "File: Customize File Set…", SoftBench Static Analyzer posts a different dialog box in which you can add directories and files. SoftBench Static Analyzer then analyzes those files and includes that information in the analysis file set.

Keeping Analysis Files Current

The files used by SoftBench Static Analyzer must be kept current to provide accurate results. When you modify your source files, rebuild the project. A successful build automatically updates the static information. Subsequent queries use the information in the updated Static database.

You can also make sure all static information is current by choosing

"File: Analyze File Set". This command scans all source files in the current project and updates any out-of-date static information.

256

Chapter 9

Page 256
Image 256
HP UX SoftBench Software manual Customizing the File Set in Non-Project Mode, Keeping Analysis Files Current, 256