================
@@ -257,6 +257,8 @@ RangeSelector transformer::name(std::string ID) {
       if (!D->getDeclName().isIdentifier())
         return missingPropertyError(ID, "name", "identifier");
       SourceLocation L = D->getLocation();
+      // the name may be spelled in a macro
----------------
ymand wrote:

Please move these changes to a separate PR -- I'm not sure it's right to do 
this by default. Callers may prefer a failure in this case, since its rare to 
want to rewrite the macro definition.

https://github.com/llvm/llvm-project/pull/177442
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to