You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cpp/ql/src/Best Practices/Unused Entities/UnusedLocals.ql
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,5 +58,5 @@ where
58
58
notexists(AsmStmts|f=s.getEnclosingFunction())and
59
59
notv.getAnAttribute().getName()="unused"and
60
60
notany(ErrorExpre).getEnclosingFunction()=fand// unextracted expr may use `v`
61
-
notany(ConditionDeclExprcde).getEnclosingFunction()=f// this case can be removed when the `if (a = b; a)` test case doesn't depend on this exclusion
61
+
notany(ConditionDeclExprcde).getEnclosingFunction()=f// this case can be removed when the `if (a = b; a)` and `switch (a = b; a)` test cases don't depend on this exclusion
0 commit comments