Skip to main content

IAR Embedded Workbench for Arm 9.70.x

MISRAC2004-19.2

In this section:
Synopsis

(Advisory) Non-standard characters should not occur in header file names in #include directives.

Enabled by default

No

Severity/Certainty

Low/Low

lowlow.png
Full description

There are illegal characters in header file names. This check is identical to MISRAC2012-Rule-20.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) {}