Running a code review

Code Review for C

You can use the code review tool on any test or application node or a single source file. The code review tool is run on the source code whenever you build the file.

To enable the code review tool on a source file, test or an application node, follow these steps:

  1. In Project Explorer, select the node that you want to review, right-click and select Build > Build options. Alternatively, click the Settings button and in the Configuration Settings wizard, select Configuration Properties > Build > Build Options > .
  2. In the Build Options value field, click ...
  3. In the Build Options wizard, select Code Review.

To perform a code review without compiling and executing the application, follow these steps:

  1. In the Project Browser tab of the Project Window view, select the node that you want to check.
  2. Select Build > Options in the toolbar menu or click the Settings button and select Build > Build options.
  3. Clear all build options and build steps (in the left) except Code Review.
  4. Click the Build toolbar button.
    Note: If your confrule.xml file is out-of-date, it is automatically upgraded during the build process. The original configuration rule file is renamed and the .BAK extension is added. See the Messages tab in the Output Window, where you can find the file path.
  5. Double-click the results in the Project Browser to open the report. If the report is already open, close the report and reopen it again.

Related Topics

Working with projects | Building and running a node