File tree 1 file changed +12
-4
lines changed
c/misra/test/rules/RULE-2-5
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,26 @@ void test() {
42
42
#if defined(CHECKED_MACRO_BEFORE_3 )
43
43
#endif
44
44
45
- #if defined(CHECKED_MACRO_BEFORE_4 )
45
+ // clang-format off
46
+
47
+ #if defined (CHECKED_MACRO_BEFORE_4 )
48
+ #endif
49
+
50
+ #if defined( CHECKED_MACRO_BEFORE_5 )
46
51
#endif
47
52
48
- #if defined( CHECKED_MACRO_BEFORE_5 )
53
+ #if defined ( CHECKED_MACRO_BEFORE_6 )
49
54
#endif
50
55
51
- #if defined( CHECKED_MACRO_BEFORE_6 )
56
+ #if defined CHECKED_MACRO_BEFORE_7
52
57
#endif
53
58
59
+ // clang-format on
60
+
54
61
#define CHECKED_MACRO_BEFORE_1 // COMPLIANT - used in branch
55
62
#define CHECKED_MACRO_BEFORE_2 // COMPLIANT - used in branch
56
63
#define CHECKED_MACRO_BEFORE_3 // COMPLIANT - used in branch
57
64
#define CHECKED_MACRO_BEFORE_4 // COMPLIANT - used in branch
58
65
#define CHECKED_MACRO_BEFORE_5 // COMPLIANT - used in branch
59
- #define CHECKED_MACRO_BEFORE_6 // COMPLIANT - used in branch
66
+ #define CHECKED_MACRO_BEFORE_6 // COMPLIANT - used in branch
67
+ #define CHECKED_MACRO_BEFORE_7 // COMPLIANT - used in branch
You can’t perform that action at this time.
0 commit comments