MISRA.PRAGMANon-documented pragma directive. MISRA-C Rule 3.4 (required): All uses of the #pragma directive shall be documented and explained.[Implementation 40] This rule places a requirement on the user of this document to produce a list of any pragmas they choose to use in an application. The meaning of each pragma shall be documented. There shall be sufficient supporting description to demonstrate that the behaviour of the pragma, and its implications for the application, have been fully understood. Any use of pragmas should be minimised, localised and encapsulated within dedicated functions wherever possible. MISRA-C++ Rule 16-6-1 (document): All uses of the #pragma directive shall be documented.[Implementation 16.6(1)] RationaleThe #pragma directive is implementation-defined, hence it is important to demonstrate that all uses are correct. This rule places a requirement on the user of this document to produce a list of any pragmas they choose to use in an application. The meaning of each pragma shall be documented. There shall be sufficient supporting description to demonstrate that the behaviour of the pragma and its implications for the application, have been fully understood. Any use of pragmas should be minimized, localized and encapsulated within dedicated functions wherever possible. |