[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 31 12:40:53 PDT 2024
================
@@ -177,6 +177,26 @@ static bool isLanguageDefinedBuiltin(const SourceManager &SourceMgr,
return false;
}
+static bool isReservedAttrName(Preprocessor &PP, IdentifierInfo *II) {
----------------
a-tarasyuk wrote:
@AaronBallman Thanks. Just to confirm, are future attribute names valid in previous versions? For instance, can `C++11` use the `deprecated` attribute from `C++14`?
https://github.com/llvm/llvm-project/pull/106036
More information about the cfe-commits
mailing list