We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2576884 + 8994a5a commit c29ef90Copy full SHA for c29ef90
cpp/ql/src/Likely Bugs/Likely Typos/ExprHasNoEffect.ql
@@ -73,6 +73,7 @@ where // EQExprs are covered by CompareWhereAssignMeant.ql
73
not baseCall(peivc) and
74
not accessInInitOfForStmt(peivc) and
75
not peivc.isCompilerGenerated() and
76
+ not peivc.getEnclosingFunction().isDefaulted() and
77
not exists(Macro m | peivc = m.getAnInvocation().getAnExpandedElement()) and
78
not peivc.isFromTemplateInstantiation(_) and
79
parent = peivc.getParent() and
0 commit comments