================ @@ -3423,6 +3425,30 @@ VarDecl *BindingDecl::getHoldingVar() const { return VD; } +void DecompositionDecl::VisitHoldingVars( + llvm::function_ref<void(VarDecl *)> F) const { + VisitBindings([&](BindingDecl *BD) { + if (VarDecl *VD = BD->getHoldingVar()) + F(VD); + }); +} + +void DecompositionDecl::VisitBindings( ---------------- erichkeane wrote:
This one is a bit more complicated? But I'd be surprised if there isn't an existing llvm iterator that can do this. https://github.com/llvm/llvm-project/pull/121417 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits