summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query/Query.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2018-10-24 20:33:14 +0000
committerStephen Kelly <steveire@gmail.com>2018-10-24 20:33:14 +0000
commit4c3d7a969aa61fa9333a88f22320e48e8afe228c (patch)
tree578bb40ad076f4a97cb831ec620685f7267d4564 /clang-tools-extra/clang-query/Query.cpp
parentd00d449f8e51483591b86a27eb7140136625b6c6 (diff)
downloadbcm5719-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.cpp16
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;
}
OpenPOWER on IntegriCloud