C++: Fix macro handling after extractor changes

This commit is contained in:
Jeroen Ketema
2025-06-27 08:56:13 +02:00
parent bf131dc84b
commit 99a24f9650
2 changed files with 11 additions and 10 deletions

View File

@@ -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
}
/**