We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0441ef7 commit 2c2ec86Copy full SHA for 2c2ec86
cpp/misra/test/rules/RULE-4-1-1/test.cpp
@@ -69,7 +69,7 @@ typedef int t2 __attribute__((vector_size(16))); // NON_COMPLIANT
69
#ifdef __cplusplus // COMPLIANT
70
#endif
71
72
-#pragma once // NON_COMPLIANT
+#pragma once // NON_COMPLIANT
73
#pragma GCC diagnostic push // NON_COMPLIANT
74
#warning "This is a warning" // NON_COMPLIANT
75
// clang-format off
@@ -79,4 +79,4 @@ typedef int t2 __attribute__((vector_size(16))); // NON_COMPLIANT
79
const int g5 = 5;
80
void f12(int p0, int p1[10], int p2[], int p3[g5]) { // COMPLIANT -- not VLAs.
81
int l0[p0]; // NON_COMPLIANT -- VLA
82
-}
+}
0 commit comments