MISRAC++2008-16-2-4
In this section:
Synopsis
(Required) The ', ", /* or // characters shall not occur in a header file name.
Enabled by default
Yes
Severity/Certainty
Low/Low

Full description
There are illegal characters in header file names. This check is identical to MISRAC++2023-19.2.3.
Coding standards
- MISRA C++ 2023 19.2.3
(Required) The ' or" 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) {}