MISRAC2004-19.6
In this section:
Synopsis
(Required) #undef shall not be used.
Enabled by default
Yes
Severity/Certainty
Low/Low

Full description
#undef directives were found. This check is identical to MISRAC++2008-16-0-3, MISRAC2012-Rule-20.5.
Coding standards
- MISRA C:2004 19.6
(Required) #undef shall not be used.
- MISRA C:2012 Rule-20.5
(Advisory) #undef should not be used
- MISRA C++ 2008 16-0-3
(Required) #undef shall not be used.
Code examples
The following code example fails the check and will give a warning:
#define SYM #undef SYM
The following code example passes the check and will not give a warning about this issue:
#define SYM