[all-commits] [llvm/llvm-project] aecbb2: [Clang] Fix the trailing comma regression (#136273)

Younan Zhang via All-commits all-commits at lists.llvm.org
Fri May 9 13:09:30 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: aecbb2364a7ccee1048447127fdb5865f70b3c6b
      https://github.com/llvm/llvm-project/commit/aecbb2364a7ccee1048447127fdb5865f70b3c6b
  Author: Younan Zhang <zyn7109 at gmail.com>
  Date:   2025-05-09 (Fri, 09 May 2025)

  Changed paths:
    M clang/lib/Parse/ParseExpr.cpp
    M clang/test/Parser/recovery.cpp

  Log Message:
  -----------
  [Clang] Fix the trailing comma regression (#136273)

925e195 introduced a regression since which we started to accept invalid
trailing commas in many expression lists where they're not allowed by
the grammar. The issue came from the fact that an additional invalid
state - previously handled by ParseExpressionList - was overlooked in
that patch.

Fixes https://github.com/llvm/llvm-project/issues/136254

No release entry because I want to backport it.

(cherry picked from commit c7daab259c3281cf8f649583993bad2536febc02)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list