Running C++ Audits

From RAD Studio
Jump to: navigation, search

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

  1. Open your C++ project.
  2. Click the View > C++ Audits menu command to open the C++ Audits pane.
  3. Click the C++ Audits Configuration button C++ Audits Configuration button (in the upper-left corner of the C++ Audits pane) to open the C++ Audits Configuration dialog box.
  4. 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.
  5. 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 QA Audits Stop button C++ 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.

See Also