CPP: Repair macro case.

This commit is contained in:
Geoffrey White
2018-11-08 10:01:07 +00:00
parent d6f27f0b2d
commit 5b09e11a52
3 changed files with 2 additions and 2 deletions

View File

@@ -99,6 +99,7 @@ where // EQExprs are covered by CompareWhereAssignMeant.ql
not peivc.(FunctionCall).getTarget().hasName("operator==") and
not accessInInitOfForStmt(peivc) and
not peivc.isCompilerGenerated() and
not exists(Macro m | peivc = m.getAnInvocation().getAnExpandedElement()) and
not peivc.isFromTemplateInstantiation(_) and
parent = peivc.getParent() and
not parent.isInMacroExpansion() and