Skip to content

Commit ff96e3a

Browse files
committed
C++: Also suppress ExprHasNoEffect in declspec etc
1 parent 4dafa16 commit ff96e3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/Likely Bugs/Likely Typos/ExprHasNoEffect.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ where
8686
not peivc.isFromTemplateInstantiation(_) and
8787
parent = peivc.getParent() and
8888
not parent.isInMacroExpansion() and
89+
not peivc.isUnevaluated() and
8990
not parent instanceof PureExprInVoidContext and
9091
not peivc.getEnclosingFunction().isCompilerGenerated() and
9192
not peivc.getType() instanceof UnknownType and

0 commit comments

Comments
 (0)