[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 21 17:05:30 PST 2025


================
@@ -5321,6 +5321,59 @@ class BuiltinBitCastExpr final
   }
 };
 
+// Represents an unexpanded pack where the list of expressions are
+// known. These are used when structured bindings introduce a pack.
+class ResolvedUnexpandedPackExpr final
+    : public Expr,
+      private llvm::TrailingObjects<ResolvedUnexpandedPackExpr, Expr *> {
----------------
zwuis wrote:

> ... `BindingPackExpr`?

This is what I think: using `BindingPackExpr` and modifying it when implementing other features (member packs etc).



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


More information about the cfe-commits mailing list