Using SoftBench Static Analyzer
Preparing to Make Queries
Updating Static Data without BuildingOnce the Static database is created, SoftBench has the knowledge to update Static data, whether you build the project from SoftBench or analyze the files from SoftBench Static Analyzer.
To successfully generate Static data without rebuilding the project, choose "File: Analyze File Set".
Specifying Static Data to AnalyzeSoftBench Static Analyzer performs queries on source files in your program. It gathers this information from a Static database (the Static.sadb file), which your compiler created when you set the "■ Static" compile mode toggle button before a build.
SoftBench Static Analyzer allows you to expand the set of files on which queries are based by choosing "File: Customize File Set". When you work with SoftBench projects, you can expand the focus of your queries to include subprojects and parent projects of the current project. When you run SoftBench Static Analyzer directly from the command line, you can expand the focus of your queries by manually adding directories and files to the analysis file set.
Using the Default Analysis File SetIn most cases, SoftBench Static Analyzer properly determines what files to analyze. You do not need to take any special actions. Simply build your project with the "■ Static" compile mode toggle button set, and the build process creates the Static database. SoftBench Static Analyzer then reads the database and allows you to make queries on your program.
By default, SoftBench Static Analyzer uses the current project's Static database. The database contains the information on all source files used to create the targets in the project.
This simple model of building a project and analyzing the code in the project is the recommended way to use SoftBench Static Analyzer
Including Subprojects and Parent ProjectsIf you need to make queries focused on more than just the current project, you can expand the Static file set to include subprojects and parent projects:
Chapter 9 | 255 |