
The clang-query tool has the ability to execute or pre-load queries from a file when the tool is launched, but doesn't have the ability to do the same from the interactive REPL prompt. Because the prompt also doesn't seem to allow multi-line matchers, this can make prototyping and iterating on more complicated matchers difficult. Supporting a dynamic load at REPL time allows the cost of reading the compilation database and building the AST to be imposed just once, and allows faster prototyping.
3 lines
104 B
C
3 lines
104 B
C
// RUN: clang-query -c 'file %S/Inputs/empty.script' %s --
|
|
// COM: no output expected; nothing to CHECK
|