File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cpp/ql/src/Best Practices/Unused Entities Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 5858 not exists ( AsmStmt s | f = s .getEnclosingFunction ( ) ) and
5959 not v .getAnAttribute ( ) .getName ( ) = "unused" and
6060 not any ( ErrorExpr e ) .getEnclosingFunction ( ) = f and // unextracted expr may use `v`
61- not exists ( Literal l |
61+ not exists ( Literal l | // this case can be removed when the `myFunction2( [obj](){} );` test case doesn't depend on this exclusion
6262 l .getEnclosingFunction ( ) = f and
6363 not exists ( l .getValue ( ) )
6464 ) and
65- not any ( ConditionDeclExpr cde ) .getEnclosingFunction ( ) = f
65+ not any ( ConditionDeclExpr cde ) .getEnclosingFunction ( ) = f // this case can be removed when the `if (a = b; a)` test case doesn't depend on this exclusion
6666select v , "Variable " + v .getName ( ) + " is not used"
You can’t perform that action at this time.
0 commit comments