[llvm-branch-commits] [clang] [Clang] [C++26] Expansion Statements (Part 2: Parsing and Parser Tests) (PR #169681)

Erich Keane via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 1 07:23:04 PST 2025


================
@@ -3195,7 +3196,11 @@ bool Parser::ParseExpressionList(SmallVectorImpl<Expr *> &Exprs,
       SawError = true;
       if (FailImmediatelyOnInvalidExpr)
         break;
-      SkipUntil(tok::comma, tok::r_paren, StopAtSemi | StopBeforeMatch);
+
+      if (StopAtRBraceAfterComma)
+        SkipUntil(tok::comma, tok::r_brace, StopAtSemi | StopBeforeMatch);
----------------
erichkeane wrote:

Can you explain the WHY here?  The name could perhaps use improvement to help explain what is happening.

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


More information about the llvm-branch-commits mailing list