File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
cpp/ql/src/Best Practices/Unused Entities Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 58
58
not exists ( AsmStmt s | f = s .getEnclosingFunction ( ) ) and
59
59
not v .getAnAttribute ( ) .getName ( ) = "unused" and
60
60
not any ( ErrorExpr e ) .getEnclosingFunction ( ) = f // unextracted expr may use `v`
61
- select v , "The value assigned to local variable ' " + v .getName ( ) + "' is never used. "
61
+ select v , "Variable " + v .getName ( ) + " is not used"
Original file line number Diff line number Diff line change 43
43
unused_local ( unused , v ) and
44
44
// If unused is part of a tuple, count it as unused if all elements of that tuple are unused.
45
45
forall ( Name el | el = unused .getParentNode ( ) .( Tuple ) .getAnElt ( ) | unused_local ( el , _) )
46
- select unused , "The value assigned to local variable ' " + v .getId ( ) + "' is never used. "
46
+ select v , "Variable " + v .getId ( ) + " is not used"
You can’t perform that action at this time.
0 commit comments