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

Aaron Ballman via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 10:22:26 PST 2025


================
@@ -760,6 +760,7 @@ def AmbiguousMacro : DiagGroup<"ambiguous-macro">;
 def KeywordAsMacro : DiagGroup<"keyword-macro">;
 def ReservedIdAsMacro : DiagGroup<"reserved-macro-identifier">;
 def ReservedIdAsMacroAlias : DiagGroup<"reserved-id-macro", [ReservedIdAsMacro]>;
+def ReservedAttributeIdentifier : DiagGroup<"reserved-attribute-identifier">;
----------------
AaronBallman wrote:

Should `ReservedIdentifier` be updated to include the new group?

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


More information about the llvm-commits mailing list