C++: exclude conversion in MacroInvocation.getExpr

This commit is contained in:
Robert Marsh
2018-08-20 15:10:28 -07:00
parent 4d97570a1a
commit 51bfb8db88
2 changed files with 4 additions and 3 deletions

View File

@@ -178,7 +178,8 @@ class MacroInvocation extends MacroAccess {
*/
Expr getExpr() {
result = getAnExpandedElement() and
not (result.getParent() = getAnExpandedElement())
not (result.getParent() = getAnExpandedElement()) and
not result instanceof Conversion
}
/**