Skip to main content

IAR Embedded Workbench for RH850 3.20.x

MISRAC2012-Rule-20.13

In this section:
Synopsis

(Required) A line whose first token is # shall be a valid preprocessing directive.

Enabled by default

Yes

Severity/Certainty

Low/Low

lowlow.png
Full description

A line was found whose first token is # but that is not a valid preprocessing directive.

Note: This check is not part of C-STAT® but detected by the IAR compiler.

Coding standards
MISRA C:2012 Rule-20.13

(Required) A line whose first token is # shall be a valid preprocessing directive

Code examples

The following code example fails the check and will give a warning:

#hello

The following code example passes the check and will not give a warning about this issue:

/*
#hello
*/