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

Nikolas Klauser via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 3 14:33:12 PDT 2024


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

Would it make sense to split this into (1) a diagnostic about a name being reserved and (2) a diagnostic about a name being reserved in a future standard?


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


More information about the cfe-commits mailing list