-allowed-pragmas)Specify pragma directives that are documented
Specify pragma directives that must not be flagged by MISRA C®:2004 rule 3.4 or MISRA® C++ rule 16-6-1. These rules require that you document all pragma directives.
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
-allowed-pragmas. See Command-Line Information.
MISRA C:2004/MISRA AC AGC rule 3.4 and MISRA C++ rule 16-6-1 require that all pragma directives are documented within the documentation of the compiler. If you list a pragma as documented using this analysis option, Polyspace does not flag use of the pragma as a violation of these rules.
No Default
Click
to add a field. Enter
the pragma name that you want Polyspace® to ignore during coding
rule checking .
This option is enabled only if you select one of these options:
Enter the name of the pragma only excluding any argument. For instance, if you use the
pragma
pack:
#pragma pack(n)
pack for this option.Parameter: -allowed-pragmas |
Value: |
Example (Bug Finder):
polyspace-bug-finder -sources |
Example (Code Prover): polyspace-code-prover
-sources |
Example (Bug Finder Server):
polyspace-bug-finder-server -sources
|
Example (Code Prover Server):
polyspace-code-prover-server -sources |