We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aa6ff6 commit 498177cCopy full SHA for 498177c
cpp/ql/src/Best Practices/Unused Entities/UnusedLocals.ql
@@ -58,7 +58,9 @@ where
58
not exists(AsmStmt s | f = s.getEnclosingFunction()) and
59
not v.getAnAttribute().getName() = "unused" and
60
not any(ErrorExpr e).getEnclosingFunction() = f and // unextracted expr may use `v`
61
- not exists(Literal l | // this case can be removed when the `myFunction2( [obj](){} );` test case doesn't depend on this exclusion
+ not exists(
62
+ Literal l // this case can be removed when the `myFunction2( [obj](){} );` test case doesn't depend on this exclusion
63
+ |
64
l.getEnclosingFunction() = f and
65
not exists(l.getValue())
66
) and
0 commit comments