[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)
Jason Rice via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 1 21:48:57 PST 2025
================
@@ -5397,6 +5393,13 @@ bool ValueDecl::isInitCapture() const {
return false;
}
+bool ValueDecl::isParameterPack() const {
+ if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(this))
+ return NTTP->isParameterPack();
+
+ return isa_and_nonnull<PackExpansionType>(getType().getTypePtrOrNull());
----------------
ricejasonf wrote:
Adding the assert had it being triggered from a lot of tests so I am removing it for now.
https://github.com/llvm/llvm-project/pull/121417
More information about the cfe-commits
mailing list