[clang] [clang][nullability] allow _Nonnull etc on nullable class types (PR #82705)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 13 08:34:36 PDT 2024


================
@@ -1494,6 +1494,15 @@ void Parser::ParseMicrosoftInheritanceClassAttributes(ParsedAttributes &attrs) {
   }
 }
 
+void Parser::ParseNullabilityClassAttributes(ParsedAttributes &attrs) {
+  while (Tok.is(tok::kw__Nullable)) {
----------------
AaronBallman wrote:

With other attributes, accepting multiples in sequence is required per the grammar: https://eel.is/c++draft/dcl.attr#nt:attribute-specifier-seq but the same is not true for keywords. However, I think it's fine to accept as-is, especially when I see: https://godbolt.org/z/YfqWvMf94

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


More information about the cfe-commits mailing list