Running C++ Audits
Go Up to Working with Audits Index
C++ Audits checks for compliance with C++ coding style, maintenance, and robustness guidelines.
Before running Audits, make sure that the code being audited is compilable. If your source code contains errors, or some libraries and paths are not included, Audits might produce inaccurate results.
- Note: C++Builder does not support Audits on 64-bit iOS.
To run C++ Audits
- Open your C++ project.
- Click the View > C++ Audits menu command to open the C++ Audits pane.
- Click the C++ Audits Configuration button (in the upper-left corner of the C++ Audits pane) to open the C++ Audits Configuration dialog box.
- In the left pane of the C++ Audits Configuration dialog box, choose the audits to run.
- The left pane shows the list of all available C++ audits. If the check box next to an audit is selected, then this audit will be estimated. If you want to skip the estimation of an audit, clear its selection.
- When you have selected your set of audits, click Start. The C++ Audits Configuration dialog box closes and the C++ Audits pane obtains the focus. The C++ Audits pane shows the obtained results of C++ Audits.
- During estimation of C++ Audits, the Stop button is enabled. If necessary, click Stop to abort the process.
- As C++ Audits processing completes, the C++ Audits pane shows all obtained results of C++ Audits. Notice that the C++ Audits pane shows only results of the processed audits that have violations.
- In the C++ Audits pane, click any audit line to jump to the C++ code responsible for this audit violation.
Note: Audits runs in the command thread, so you cannot edit the project while Audits is being processed.
Warning: Audits is not available for design projects.
Note: C++ Audits do not support the deprecated C++11 attribute. If your code contains this attribute, use the _DEPRECATED_ATTRIBUTE0 or _DEPRECATED_ATTRIBUTE1 macros instead.