We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a83f84 commit 94a33f6Copy full SHA for 94a33f6
1 file changed
c/misra/src/rules/RULE-14-3/ControllingExprInvariant.ql
@@ -48,7 +48,7 @@ where
48
exists(SwitchStmt switch |
49
switch.getControllingExpr() = expr and
50
(
51
- conditionAlwaysFalse(expr) and
+ conditionAlwaysFalse(expr) or
52
conditionAlwaysTrue(expr)
53
)
54
) and
0 commit comments