Main Content
MISRA C++:2023 Rule 19.6.1
Description
Rule Definition
The #pragma
directive and the _Pragma
operator should 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: Preprocessing Directives |
Category: Advisory |
Version History
Introduced in R2024b