[clang-tools-extra] r345192 - [clang-query] Re-word command help
Stephen Kelly via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 24 13:33:14 PDT 2018
Author: steveire
Date: Wed Oct 24 13:33:14 2018
New Revision: 345192
URL: http://llvm.org/viewvc/llvm-project?rev=345192&view=rev
Log:
[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
Modified:
clang-tools-extra/trunk/clang-query/Query.cpp
Modified: clang-tools-extra/trunk/clang-query/Query.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-query/Query.cpp?rev=345192&r1=345191&r2=345192&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-query/Query.cpp (original)
+++ clang-tools-extra/trunk/clang-query/Query.cpp Wed Oct 24 13:33:14 2018
@@ -43,12 +43,18 @@ bool HelpQuery::run(llvm::raw_ostream &O
"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;
}
More information about the cfe-commits
mailing list