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

Jason Rice via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 1 14:45:34 PST 2025


================
@@ -4219,6 +4220,13 @@ class DecompositionDecl final
 
   void printName(raw_ostream &OS, const PrintingPolicy &Policy) const override;
 
+  /// Visit the variables (if any) that hold the values of evaluating the
+  /// binding. Only present for user-defined bindings for tuple-like types.
+  void VisitHoldingVars(llvm::function_ref<void(VarDecl *)> F) const;
+
+  // Visit the concrete bindings. (workaround)
----------------
ricejasonf wrote:

I'll just remove the "(workaround)", but if there is a better range based solution that might be preferred.

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


More information about the cfe-commits mailing list