================ @@ -5955,6 +5955,20 @@ static void handleBuiltinAliasAttr(Sema &S, Decl *D, D->addAttr(::new (S.Context) BuiltinAliasAttr(S.Context, AL, Ident)); } +static void handleNullableTypeAttr(Sema &S, Decl *D, const ParsedAttr &AL) { + if (AL.isUsedAsTypeAttr()) + return; + + if (auto *CRD = dyn_cast<CXXRecordDecl>(D); + !D || !(CRD->isClass() || CRD->isStruct())) { ---------------- sam-mccall wrote:
Oops, this was supposed to be `!CRD`! Fixed & will add a testcase. > Struct as the Subject in Attr.td Yeah, unfortunately that doesn't seem to work with attributes that can also appear on types :-( https://github.com/llvm/llvm-project/pull/82705 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits