[all-commits] [llvm/llvm-project] 5e9401: [clang-query] Load queries and matchers from file ...
Chris Warner via All-commits
all-commits at lists.llvm.org
Mon May 13 05:12:02 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5e9401c2c21efcd55aae42d0b3d68034d344b08d
https://github.com/llvm/llvm-project/commit/5e9401c2c21efcd55aae42d0b3d68034d344b08d
Author: Chris Warner <73851242+cwarner-8702 at users.noreply.github.com>
Date: 2024-05-13 (Mon, 13 May 2024)
Changed paths:
M clang-tools-extra/clang-query/Query.cpp
M clang-tools-extra/clang-query/Query.h
M clang-tools-extra/clang-query/QueryParser.cpp
M clang-tools-extra/clang-query/tool/ClangQuery.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/test/clang-query/Inputs/empty.script
A clang-tools-extra/test/clang-query/Inputs/file.script
A clang-tools-extra/test/clang-query/Inputs/runtime_file.script
M clang-tools-extra/test/clang-query/errors.c
A clang-tools-extra/test/clang-query/file-empty.c
A clang-tools-extra/test/clang-query/file-query.c
M clang-tools-extra/unittests/clang-query/QueryParserTest.cpp
Log Message:
-----------
[clang-query] Load queries and matchers from file during REPL cycle (#90603)
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.
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