[clang] [clang-tools-extra] [clang-query] Allow for trailing comma in matchers (PR #148018)
Remy Farley via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 15 03:46:43 PDT 2025
================
@@ -0,0 +1,10 @@
+// RUN: clang-query -c "match \
+// RUN: functionDecl( \
+// RUN: hasName( \
+// RUN: \"foo\", \
+// RUN: ), \
+// RUN: ) \
+// RUN: " %s -- | FileCheck %s
+
+// CHECK: trailing-comma.c:10:1: note: "root" binds here
----------------
one-d-wide wrote:
Done. Also noticed that line escaping eats up new line characters in the initial test.
https://github.com/llvm/llvm-project/pull/148018
More information about the cfe-commits
mailing list