[clang] [clang] Fix comma location tracking inside ParenListExpr. (PR #199411)

Nicola Vetrini via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 6 15:18:33 PDT 2026


================
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only -Wcomma -fno-caret-diagnostics %s 2>&1 | FileCheck %s
+
+void comma_in_paren_list_cast(void) {
+  int x;
+  (void)(int)(x = 0, 1);
----------------
nvetrini wrote:

Yes, `(void)(0,1)` is sufficient. I will add more variations in the test.

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


More information about the cfe-commits mailing list