================
@@ -177,6 +177,26 @@ static bool isLanguageDefinedBuiltin(const SourceManager 
&SourceMgr,
   return false;
 }
 
+static bool isReservedAttrName(Preprocessor &PP, IdentifierInfo *II) {
----------------
AaronBallman wrote:

Because we don't support any non-standard attributes without a vendor namespace 
(e.g., we don't support `[[foo]]` as an extension, it needs to have some sort 
of prefix like `[[gnu::foo]]` or `[[clang::foo]]`), I was thinking we could 
rely on that.

However, it might also make sense to just add a bit to the `Spelling` in 
`Attr.td` to say "this is a standard spelling for the attribute" (which 
side-steps things like `nodiscard` vs `warn_unused_result`)?

https://github.com/llvm/llvm-project/pull/106036
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to