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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 26 07:39:08 PDT 2024


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

What should the behavior be with `-nostdlib`? Should these actually be reserved in this case (given that the restriction is under "library-wide requirements")?

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


More information about the cfe-commits mailing list