[clang] [clang] All {con, de}structor attributes to use template args (PR #67376)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 25 17:24:55 PDT 2023
================
@@ -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
More information about the cfe-commits
mailing list