[clang-tools-extra] [clang-query] Load queries and matchers from file during REPL cycle (PR #90603)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon May 13 05:10:41 PDT 2024
================
@@ -0,0 +1,14 @@
+// RUN: rm -rf %/t
+// RUN: mkdir %/t
+// RUN: cp %/S/Inputs/file.script %/t/file.script
+// RUN: cp %/S/Inputs/runtime_file.script %/t/runtime_file.script
+// Need to embed the correct temp path in the actual JSON-RPC requests.
+// RUN: sed -e "s|DIRECTORY|%/t|" %/t/file.script > %/t/file.script.temp
+
+// RUN: clang-query -c 'file %/t/file.script.temp' %s -- | FileCheck %s
+
+// CHECK: file-query.c:11:1: note: "f" binds here
+void bar(void) {}
+
+// CHECK: file-query.c:14:1: note: "v" binds here
+int baz{1};
----------------
AaronBallman wrote:
```suggestion
int baz{1};
```
https://github.com/llvm/llvm-project/pull/90603
More information about the cfe-commits
mailing list