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

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 9 07:00:06 PST 2025


================
@@ -2556,6 +2558,15 @@ void StmtPrinter::VisitPackIndexingExpr(PackIndexingExpr *E) {
   OS << "]";
 }
 
+void StmtPrinter::VisitResolvedUnexpandedPackExpr(
+    ResolvedUnexpandedPackExpr *E) {
+  OS << "<<resolved pack(";
+  llvm::interleave(
+      E->getExprs(), E->getExprs() + E->getNumExprs(),
----------------
erichkeane wrote:

IMO, we should have `ResolvedUnexpandedPackExpr` return an `ArrayRef` instead, having to do these additions of the size everywhere is quite unfortunate.

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


More information about the cfe-commits mailing list