SLAU132V October 2004 – February 2020
The RESET_MISRA pragma resets the specified MISRA C:2004 rules to the state they were before any CHECK_MISRA pragmas (see Section 5.12.3) were processed. For instance, if a rule was enabled on the command line but disabled in the source, the RESET_MISRA pragma resets it to enabled. This pragma accepts the same format as the --check_misra option, except for the "none" keyword.
The --check_misra compiler command-line option must be used to enable MISRA C:2004 rule checking in order for this pragma to function at the source level.
The syntax of the pragma in C is:
#pragma RESET_MISRA (" {all|required|advisory|rulespec} ") |
The rulespec parameter is a comma-separated list of rule numbers. See Section 5.3 for details.