Skip to main content

IAR Embedded Workbench for RL78 5.20

MISRAC2012-Rule-3.1

In this section:
Synopsis

(Required) The character sequences /* and // shall not be used within a comment.

Enabled by default

Yes

Severity/Certainty

Medium/Medium

mediummedium.png
Full description

The character sequences /* and // were found within a comment.

Coding standards
MISRA C:2012 Rule-3.1

(Required) The character sequences /* and // shall not be used within a comment

Code examples

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

// This is /* a comment

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

// This is a comment