diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-10-24 20:33:14 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-10-24 20:33:14 +0000 |
commit | 4c3d7a969aa61fa9333a88f22320e48e8afe228c (patch) | |
tree | 578bb40ad076f4a97cb831ec620685f7267d4564 /clang-tools-extra/clang-query/Query.cpp | |
parent | d00d449f8e51483591b86a27eb7140136625b6c6 (diff) | |
download | bcm5719-llvm-4c3d7a969aa61fa9333a88f22320e48e8afe228c.tar.gz bcm5719-llvm-4c3d7a969aa61fa9333a88f22320e48e8afe228c.zip |
[clang-query] Re-word command help
Summary:
This will make it possible to easily
* Add new commands which accept <feature> parameters
* Extend the list of features
Reviewers: aaron.ballman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D53498
llvm-svn: 345192
Diffstat (limited to 'clang-tools-extra/clang-query/Query.cpp')
-rw-r--r-- | clang-tools-extra/clang-query/Query.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/clang-tools-extra/clang-query/Query.cpp b/clang-tools-extra/clang-query/Query.cpp index 463e52c5806..3e83bbc92b2 100644 --- a/clang-tools-extra/clang-query/Query.cpp +++ b/clang-tools-extra/clang-query/Query.cpp @@ -43,12 +43,18 @@ bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { "Set whether to bind the root matcher to \"root\".\n" " set print-matcher (true|false) " "Set whether to print the current matcher,\n" - " set output (diag|print|dump) " - "Set whether to print bindings as diagnostics,\n" - " " - "AST pretty prints or AST dumps.\n" + " set output <feature> " + "Set whether to output only <feature> content.\n" " quit, q " - "Terminates the query session.\n\n"; + "Terminates the query session.\n\n" + "Several commands accept a <feature> parameter. The available features " + "are:\n\n" + " print " + "Pretty-print bound nodes.\n" + " diag " + "Diagnostic location for bound nodes.\n" + " dump " + "Detailed AST output for bound nodes.\n\n"; return true; } |