diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-10-29 18:59:56 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-10-29 18:59:56 +0000 |
commit | a49fe5d878fc8b9246e8ab53862077c21c22cc8c (patch) | |
tree | d54213b232998c059f1063d71a674689ee6875e6 /clang-tools-extra/clang-query/Query.cpp | |
parent | eb15d00193f75396c69cfa28b314fd5165d4c3fe (diff) | |
download | bcm5719-llvm-a49fe5d878fc8b9246e8ab53862077c21c22cc8c.tar.gz bcm5719-llvm-a49fe5d878fc8b9246e8ab53862077c21c22cc8c.zip |
[clang-query] Add non-exclusive output API
Summary:
Add granular options for AST dumping, text printing and diagnostics.
This makes it possible to
* Have both diag and dump active at once
* Extend the output with other queryable content in the future.
Reviewers: aaron.ballman, pcc, ioeric, ilya-biryukov, klimek, sammccall
Reviewed By: aaron.ballman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D52857
llvm-svn: 345522
Diffstat (limited to 'clang-tools-extra/clang-query/Query.cpp')
-rw-r--r-- | clang-tools-extra/clang-query/Query.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-query/Query.cpp b/clang-tools-extra/clang-query/Query.cpp index 48e20047701..ffa3b4566e8 100644 --- a/clang-tools-extra/clang-query/Query.cpp +++ b/clang-tools-extra/clang-query/Query.cpp @@ -45,6 +45,10 @@ bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { "Set whether to print the current matcher,\n" " set output <feature> " "Set whether to output only <feature> content.\n" + " enable output <feature> " + "Enable <feature> content non-exclusively.\n" + " disable output <feature> " + "Disable <feature> content non-exclusively.\n" " quit, q " "Terminates the query session.\n\n" "Several commands accept a <feature> parameter. The available features " |