Skip to main content

IAR Embedded Workbench for RH850 3.20.x

MISRAC2012-Rule-3.2

In this section:
Synopsis

(Required) Line-splicing shall not be used in // comments.

Enabled by default

Yes

Severity/Certainty

Medium/Medium

mediummedium.png
Full description

Line-splicing was found in // comments. This check is identical to MISRAC++2023-5.7.3.

Coding standards
MISRA C:2012 Rule-3.2

(Required) Line-splicing shall not be used in // comments

MISRA C++ 2023 5.7.3

(Required) Line-splicing shall not be used in // comments

Code examples

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

// This comment \
has a line splice

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

// This comment
// has no line splice