From ff96e3a8ea6619d7cd999ebda87e81f4a35955a3 Mon Sep 17 00:00:00 2001 From: Jonas Jensen Date: Wed, 20 Nov 2019 15:44:39 +0100 Subject: [PATCH] C++: Also suppress ExprHasNoEffect in declspec etc --- cpp/ql/src/Likely Bugs/Likely Typos/ExprHasNoEffect.ql | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp/ql/src/Likely Bugs/Likely Typos/ExprHasNoEffect.ql b/cpp/ql/src/Likely Bugs/Likely Typos/ExprHasNoEffect.ql index 96279c398fd..e51e5c6764f 100644 --- a/cpp/ql/src/Likely Bugs/Likely Typos/ExprHasNoEffect.ql +++ b/cpp/ql/src/Likely Bugs/Likely Typos/ExprHasNoEffect.ql @@ -86,6 +86,7 @@ where not peivc.isFromTemplateInstantiation(_) and parent = peivc.getParent() and not parent.isInMacroExpansion() and + not peivc.isUnevaluated() and not parent instanceof PureExprInVoidContext and not peivc.getEnclosingFunction().isCompilerGenerated() and not peivc.getType() instanceof UnknownType and