Skip to main content

IAR Embedded Workbench for RH850 3.20.x

MISRAC++2023-6.0.1_b

In this section:
Synopsis

(Required) Block scope declarations shall not be visually ambiguous

Enabled by default

Yes

Severity/Certainty

Medium/Medium

mediummedium.png
Full description

Found a nested declarator looking like an object declaration

Coding standards

This check does not correspond to any coding standard rules.

Code examples

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

void example() {
  int (n);
}

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

void example() {
  int n;
}