Skip to content

Commit 2c2ec86

Browse files
authored
Adjust formatting of #pragma once directive
1 parent 0441ef7 commit 2c2ec86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/misra/test/rules/RULE-4-1-1/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ typedef int t2 __attribute__((vector_size(16))); // NON_COMPLIANT
6969
#ifdef __cplusplus // COMPLIANT
7070
#endif
7171

72-
#pragma once // NON_COMPLIANT
72+
#pragma once // NON_COMPLIANT
7373
#pragma GCC diagnostic push // NON_COMPLIANT
7474
#warning "This is a warning" // NON_COMPLIANT
7575
// clang-format off
@@ -79,4 +79,4 @@ typedef int t2 __attribute__((vector_size(16))); // NON_COMPLIANT
7979
const int g5 = 5;
8080
void f12(int p0, int p1[10], int p2[], int p3[g5]) { // COMPLIANT -- not VLAs.
8181
int l0[p0]; // NON_COMPLIANT -- VLA
82-
}
82+
}

0 commit comments

Comments
 (0)