Since static analysis runs on pure code only, information and settings related to linking and running the test object are not relevant to this kind of testing. However you must have all compiler settings set properly.
To perform static analysis:
After the analysis begins, C++test will collect the analysis options (for Makefile-based projects, this is done by scanning the Makefile; for other projects, this is done by scanning the appropriate files [e.g., project files]), 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:
For general information on performing static analysis with C++test, see Static Code Analysis andĀ Flow Analysis |