Before you start static analysis, verify that the appropriate compiler settings are used in the Project Properties panel’s Parasoft> C++test> Build Settings area (see Directly Testing of Wind River Workbench Projects). In most cases, it is best to set the Options source as Use Options from Wind River Workbench project and to enable Synchronize with project settings.
After confirming that compiler settings are correct, you can start the analysis.
Note
- Ensure that you have modified the make file command line by relocating the %makeprefix% marker (see Important Note - Forcing Make to Unconditionally Build All Targets), or that you are working on a “cleaned” project that does not contain object files generated for the corresponding source files.
To perform static analysis:
- Select the Navigator node that represents the resource(s) you want to test.
- A valid selection should contain testable C/C++ source files, header files directories.or the entire project. Selection of other project items (including selection of nodes representing the contents of Flexible build targets) is not currently supported.
- Start the analysis in one of the following ways:
- From the Parasoft menu, choose Test Using> [Preferred Test Configuration].
- Open the pull-down menu for the Test Using toolbar button (this is a blue triangle), then choose your preferred static analysis Test Configuration.
- From the Parasoft menu, choose Test Using> [Preferred Test Configuration].
C++test will rescan the make files to collect the analysis options, calculate the scope of the analysis and then start the static analysis. After the analysis is completed, the summary dialog and the static analysis results will display in the C++test output panel. You can now review and respond to results, as well as generate reports, as described in the following sections:
- Viewing Results
- Reviewing Static Code Analysis Results
- Reviewing Flow Analysis Results
- Understanding Reports
For more information on static analysis, see Static Code Analysis and Flow Analysis.