@@ -220,7 +220,7 @@ TryBuildIterableExpansionStmtInitializer(Sema &S, Expr *ExpansionInitializer,
220220 return Data;
221221}
222222
223- static StmtResult BuildDestructuringCXXExpansionStmt (
223+ static StmtResult BuildDestructuringDecompositionDecl (
224224 Sema &S, Expr *ExpansionInitializer, SourceLocation ColonLoc,
225225 bool VarIsConstexpr,
226226 ArrayRef<MaterializeTemporaryExpr *> LifetimeExtendTemps) {
@@ -415,7 +415,7 @@ StmtResult Sema::BuildNonEnumeratingCXXExpansionStmtPattern(
415415 }
416416
417417 // If not, try destructuring.
418- StmtResult DecompDeclStmt = BuildDestructuringCXXExpansionStmt (
418+ StmtResult DecompDeclStmt = BuildDestructuringDecompositionDecl (
419419 *this , ExpansionInitializer, ColonLoc, ExpansionVar->isConstexpr (),
420420 LifetimeExtendTemps);
421421 if (DecompDeclStmt.isInvalid ()) {
@@ -428,9 +428,9 @@ StmtResult Sema::BuildNonEnumeratingCXXExpansionStmtPattern(
428428 if (DD->isInvalidDecl ())
429429 return StmtError ();
430430
431- // Synthesise an InitListExpr to store DREs to the BindingDecls ; this
432- // essentially lets us desugar the expansion of a destructuring expansion
433- // statement to that of an enumerating expansion statement.
431+ // Synthesise an InitListExpr to store the bindings ; this essentially lets us
432+ // desugar the expansion of a destructuring expansion statement to that of an
433+ // enumerating expansion statement.
434434 SmallVector<Expr *> Bindings;
435435 for (BindingDecl *BD : DD->bindings ()) {
436436 auto *HVD = BD->getHoldingVar ();
0 commit comments