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

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 1 01:33:26 PST 2025


================
@@ -3656,6 +3656,11 @@ bool Expr::HasSideEffects(const ASTContext &Ctx,
     // These never have a side-effect.
     return false;
 
+  // ResolvedUnexpandedPackExpr is currently only used for
+  // structed bindings which have no side effects
----------------
cor3ntin wrote:

Even in the future this would not have side effects, rights (at least as long as packs are id-expressions)

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


More information about the cfe-commits mailing list