Skip to main content

IAR Embedded Workbench for RX 5.20

MISRAC++2023-19.2.3

In this section:
Synopsis

(Required) The ' or" or \\ characters and the /* or // character sequences shall not occur in a header file name

Enabled by default

Yes

Severity/Certainty

Low/Low

lowlow.png
Full description

There are illegal characters in header file names. This check is identical to MISRAC++2008-16-2-4.

Coding standards
MISRA C++ 2008 16-2-4

(Required) The ', ", /* or // characters 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) {}