mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
C++: Fix macro handling after extractor changes
This commit is contained in:
@@ -154,8 +154,9 @@ class MacroInvocation extends MacroAccess {
|
||||
* well.
|
||||
*/
|
||||
Locatable getAnAffectedElement() {
|
||||
inmacroexpansion(unresolveElement(result), underlyingElement(this)) or
|
||||
macrolocationbind(underlyingElement(this), result.getLocation())
|
||||
inmacroexpansion(unresolveElement(result), underlyingElement(this))
|
||||
or
|
||||
macrolocationbind(underlyingElement(this), result.getLocation()) and this != result
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user