MISRAC2012-Rule-20.2
In this section:
Synopsis
(Required) The ',' or characters and the /* or // character sequences shall not occur in a header file name
Enabled by default
Yes
Severity/Certainty
Low/Low

Full description
Illegal characters were found in the names of header files. This check is identical to MISRAC2004-19.2.
Coding standards
- MISRA C:2004 19.2
(Advisory) Non-standard characters should not occur in header file names in #include directives.
- MISRA C:2012 Rule-20.2
(Required) The ',' or \ characters and the /* or // character sequences shall not occur in a header file name
Code examples
The following code example fails the check and will give a warning:
#include "fi'le.h" /* Non-compliant */
void example(void) {}
The following code example passes the check and will not give a warning about this issue:
#include "header.h"
void example(void) {}