mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
C++: exclude conversion in MacroInvocation.getExpr
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user