Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita1142f3

Browse files
reformat (and reformat generic with clang-format 11)
1 parente30b3c3 commita1142f3

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‎

Lines changed: 2 additions & 1 deletion
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-
notelement.(MacroInvocation).getParentInvocation().getMacro().getFile().getBaseName()="fenv.h"
59+
notelement.(MacroInvocation).getParentInvocation().getMacro().getFile().getBaseName()=
60+
"fenv.h"
6061
)
6162
)
6263
selectelement,message+" '"+name+"'."

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#defineMACRO8(x) "NOP" // COMPLIANT
1111
#defineMACRO9() printf_custom("output = %d", 7) // NON_COMPLIANT
1212
#defineMACRO10(x)// COMPLIANT
13-
#defineMACRO11(x) _Generic((x), int: 1, default: 0) // COMPLIANT
13+
#defineMACRO11(x) _Generic((x), int: 1, default: 0) // COMPLIANT
1414
#defineMY_ASSERT(X) assert(X) // NON_COMPLIANT[FALSE_NEGATIVE]
1515

1616
constchara1[MACRO2(1,1)+6];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp