Skip to content

Commit b477e34

Browse files
Fix macro testcase formatting
1 parent 791526e commit b477e34

File tree

1 file changed

+6
-5
lines changed
  • c/misra/test/rules/RULE-18-10

1 file changed

+6
-5
lines changed

c/misra/test/rules/RULE-18-10/test.c

+6-5
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@ void f2(int (*p1)[3], // COMPLIANT
9494
int (*p5)[*][*] // NON-COMPLIANT[FALSE_NEGATIVE]
9595
);
9696

97-
#define CONFUSING_MACRO() \
98-
int x; \
99-
int (*vla)[x]; \
100-
int (*not_vla)[];
97+
#define CONFUSING_MACRO() \
98+
int x; \
99+
int(*vla)[x]; \
100+
int(*not_vla)[];
101101

102102
void f3() {
103-
// We cannot report `vla` in this macro without a false positive for `not_vla`.
103+
// We cannot report `vla` in this macro without a false positive for
104+
// `not_vla`.
104105
CONFUSING_MACRO() // COMPLIANT
105106
}

0 commit comments

Comments
 (0)