================ @@ -3423,6 +3425,30 @@ VarDecl *BindingDecl::getHoldingVar() const { return VD; } +void DecompositionDecl::VisitHoldingVars( ---------------- erichkeane wrote:
Rather than both of these functions, I'd prefer we have some sort of iterators that allow standard iteration over these. We have 'filter' iterators already that take a lambda that we could define to allow going through these. The visitation can be nice, but it has the requirement of going through every element even when we only care about 'the first of'. 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