================ @@ -6536,6 +6536,30 @@ static void HandleBTFTypeTagAttribute(QualType &Type, const ParsedAttr &Attr, ::new (Ctx) BTFTypeTagAttr(Ctx, Attr, BTFTypeTag), Type); } +static void handleWrapsAttr(QualType &Type, const ParsedAttr &Attr, + TypeProcessingState &State, bool NoWraps = false) { + Sema &S = State.getSema(); + ASTContext &Ctx = S.Context; + + // wraps and no_wraps are most useful and consistent when used with C. Other + // languages have better alternatives within their type systems. + if (S.LangOpts.CPlusPlus || S.LangOpts.ObjC) ---------------- erichkeane wrote:
This should diagnose. https://github.com/llvm/llvm-project/pull/115094 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits