================ @@ -2352,26 +2352,37 @@ static void handleUnusedAttr(Sema &S, Decl *D, const ParsedAttr &AL) { D->addAttr(::new (S.Context) UnusedAttr(S.Context, AL)); } +template <typename Attr> +static void handleCtorDtorAttr(Sema &S, Decl *D, const ParsedAttr &AL) { + uint32_t priority = Attr::DefaultPriority; + Expr *E = nullptr; + if (AL.getNumArgs()) { ---------------- erichkeane wrote:
We also should ensure we don't have more than 1 argument. https://github.com/llvm/llvm-project/pull/67376 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits