We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dab957 commit 944f727Copy full SHA for 944f727
1 file changed
c/misra/src/rules/RULE-14-3/ControllingExprInvariant.ql
@@ -52,5 +52,7 @@ where
52
)
53
) and
54
message = "Controlling expression in switch statement has invariant value."
55
- )
+ ) and
56
+ // Exclude macros, which may generate seemingly invariant expressions
57
+ not expr.isAffectedByMacro()
58
select expr, message
0 commit comments