[clang] [Clang] Add template argument support for {con,de}structor attributes. (PR #151400)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 1 10:53:50 PDT 2025


================
@@ -2152,29 +2152,44 @@ static void handleUnusedAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
   D->addAttr(::new (S.Context) UnusedAttr(S.Context, AL));
 }
 
+static std::optional<Expr *> sharedGetConstructorDestructorAttrExpr(Sema &S, const ParsedAttr &AL) {
----------------
tynasello wrote:

Correct. Returning a nullptr here would indicate no Expr node causing the default priority to be used.

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


More information about the cfe-commits mailing list