diff options
| author | Stephen Kelly <steveire@gmail.com> | 2018-10-20 09:13:59 +0000 |
|---|---|---|
| committer | Stephen Kelly <steveire@gmail.com> | 2018-10-20 09:13:59 +0000 |
| commit | 4a5b01ddd7dd12f9a5826741e57104e8bf54748b (patch) | |
| tree | 2f0ca8c7ec49a337b095c90827577c0ee9ec26d1 /clang-tools-extra/clang-query/QuerySession.h | |
| parent | d0e5eca0fdd54ca9dc896843781abb46656c17be (diff) | |
| download | bcm5719-llvm-4a5b01ddd7dd12f9a5826741e57104e8bf54748b.tar.gz bcm5719-llvm-4a5b01ddd7dd12f9a5826741e57104e8bf54748b.zip | |
[clang-query] Add option to print matcher expression
Summary:
This is useful if using clang-query -f with a file containing multiple
matchers.
Reviewers: aaron.ballman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D52859
llvm-svn: 344840
Diffstat (limited to 'clang-tools-extra/clang-query/QuerySession.h')
| -rw-r--r-- | clang-tools-extra/clang-query/QuerySession.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-query/QuerySession.h b/clang-tools-extra/clang-query/QuerySession.h index 162289f8c3a..a211aa0f78c 100644 --- a/clang-tools-extra/clang-query/QuerySession.h +++ b/clang-tools-extra/clang-query/QuerySession.h @@ -25,11 +25,13 @@ namespace query { class QuerySession { public: QuerySession(llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs) - : ASTs(ASTs), OutKind(OK_Diag), BindRoot(true), Terminate(false) {} + : ASTs(ASTs), OutKind(OK_Diag), BindRoot(true), PrintMatcher(false), + Terminate(false) {} llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs; OutputKind OutKind; bool BindRoot; + bool PrintMatcher; bool Terminate; llvm::StringMap<ast_matchers::dynamic::VariantValue> NamedValues; }; |

