-autosar-cpp14)Check for violations of AUTOSAR C++ 14 rules
This option affects Bug Finder only.
Specify whether to check for violations of AUTOSAR C++ 14. Each value of the option corresponds to a subset of guidelines to check.
User interface (desktop products only): In your project configuration, the option is on the Coding Standards & Code Metrics node. See Dependencies for other options that you must also enable.
Command line and options file: Use the option
-autosar-cpp14. See Command-Line Information.
Use this option to specify the subset of AUTOSAR C++ 14 rules to check for[1] .
After analysis, the Results List pane lists the coding
standard violations. On the Source pane, for every coding
standard violation, Polyspace® assigns a
symbol to the keyword or identifier relevant to
the violation.
Default:
all
all
Check for violations of all AUTOSAR C++ 14 rules supported by Polyspace.
See AUTOSAR C++14 Rules.
required
Check for violations of required rules.
These rules are mandatory requirements placed on your code. This categorization of rules comes from the AUTOSAR C++14 guidelines.
automatedCheck for violations of automated rules.
You can automatically enforce these rules by means of static analysis. This categorization of rules comes from the AUTOSAR C++14 guidelines.
Note that all rules in the required category
might not be present in the automated category.
For rules that AUTOSAR C++14 considers as non-automated, Bug Finder shows
only a subset of actual rule violations.
from-file
Specify an XML file where you configure a custom selection of checkers for
this coding standard. To create a configuration file, click
, then select the rules you want to check
for this coding standard from the right pane of the Findings
selection window. Save the file.
To use or update an existing configuration file, in the Findings selection window, enter the full path to the file in the field provided or click Browse.
If you set the option to from-file, enable
Set checkers by
file (-checkers-selection-file).
This option is available only if you set Source code language (-lang) to
CPP or C-CPP.
Parameter:
-autosar-cpp14 |
Value:
all | required | automated
| from-file |
Example (Bug Finder):
polyspace-bug-finder -lang cpp -sources
|
Example (Bug Finder Server):
polyspace-bug-finder-server -lang cpp -sources
|
[1] The Polyspace checkers for AUTOSAR C++14 rules supports AUTOSAR C++14 release 18-10 (October 2018). Out of 397 rules from the standard, 308 rules are supported.