[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:05 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list