Skip to content

Commit a1142f3

Browse files
reformat (and reformat generic with clang-format 11)
1 parent e30b3c3 commit a1142f3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

c/misra/src/rules/RULE-21-12/ExceptionHandlingFeaturesOfFenvhUsed.ql

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ where
5656
name = m.getName() and
5757
message = "Expansion of banned macro" and
5858
// Exclude macro invocations expanded from other macro invocations from macros in fenv.h.
59-
not element.(MacroInvocation).getParentInvocation().getMacro().getFile().getBaseName() = "fenv.h"
59+
not element.(MacroInvocation).getParentInvocation().getMacro().getFile().getBaseName() =
60+
"fenv.h"
6061
)
6162
)
6263
select element, message + " '" + name + "'."

c/misra/test/rules/DIR-4-9/test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define MACRO8(x) "NOP" // COMPLIANT
1111
#define MACRO9() printf_custom("output = %d", 7) // NON_COMPLIANT
1212
#define MACRO10(x) // COMPLIANT
13-
#define MACRO11(x) _Generic((x), int: 1, default: 0) // COMPLIANT
13+
#define MACRO11(x) _Generic((x), int : 1, default : 0) // COMPLIANT
1414
#define MY_ASSERT(X) assert(X) // NON_COMPLIANT[FALSE_NEGATIVE]
1515

1616
const char a1[MACRO2(1, 1) + 6];

0 commit comments

Comments
 (0)