Main Content
AUTOSAR C++14 Rule A16-7-1
The #pragma directive shall not be used
Description
Rule Definition
The #pragma directive shall not be used.
Rationale
The use of the #pragma
directive in your code results in
implementation-defined behavior. The directive might also not be supported by certain
compilers.
Troubleshooting
If you expect a rule violation but Polyspace® does not report it, see Diagnose Why Coding Standard Violations Do Not Appear as Expected.
Examples
Check Information
Group: 16 Preprocessing Directives |
Category: Required, Automated |
Version History
Introduced in R2019b