[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 25 22:21:20 PDT 2024


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

Can you reference some wording here?
Are those hardcoded names sufficient?

https://github.com/llvm/llvm-project/pull/106036


More information about the cfe-commits mailing list