[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
Wed Aug 28 06:14:08 PDT 2024
================
@@ -177,6 +177,26 @@ static bool isLanguageDefinedBuiltin(const SourceManager &SourceMgr,
return false;
}
+static bool isReservedAttrName(Preprocessor &PP, IdentifierInfo *II) {
----------------
philnik777 wrote:
`-nostdlib` doesn't imply that you don't have a standard library, it just implies that you don't use the system-provided one, so I'd say it shouldn't influence the diagnostic. If you don't care you can just disable the diagnostic still, right?
https://github.com/llvm/llvm-project/pull/106036
More information about the cfe-commits
mailing list