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-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,5 @@ where
57
57
notdeclarationHasSideEffects(v)and
58
58
notexists(AsmStmts|f=s.getEnclosingFunction())and
59
59
notv.getAnAttribute().getName()="unused"and
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)` and `switch (a = b; a)` test cases don't depend on this exclusion
60
+
notany(ErrorExpre).getEnclosingFunction()=f// unextracted expr may use `v`
0 commit comments