Main Content

Choose Specific Bug Finder Defect Checkers

You can check your C/C++ code using the predefined subsets of defect checkers in Bug Finder. However, you can also customize which defects to check for during the analysis.

You can use a spreadsheet to keep track of the defect checkers that you enable and add notes explaining why you do not enable the other checkers. A spreadsheet of checkers is provided in polyspaceroot\polyspace\resources. Here, polyspaceroot is the Polyspace® installation folder, such as C:\Program Files\Polyspace\R2019a.

User Interface (Desktop Products Only)

  1. On the Configuration pane, select Bug Finder Analysis.

  2. From the Find defects menu, select a set of defects. The options are:

To standardize the bug finding across your organization, you can save your list of defect checkers as a configuration template and share with others. See Create Project in Polyspace Desktop User Interface Using Configuration Template.

Command Line

Use the option Find defects (-checkers). Specify a comma-separated list of checkers as arguments. For instance, to run a Bug Finder analysis on a server with only the data race checkers enabled, enter:

polyspace-bug-finder-server -sources filename -checkers DATA_RACE,DATA_RACE_STD_LIB
Use short names for the Bug Finder checkers instead of their full names. See Short Names of Bug Finder Defect Groups and Defect Checkers.

See Also

Related Topics