summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query
diff options
context:
space:
mode:
authorSamuel Benzaquen <sbenza@google.com>2015-02-27 17:53:23 +0000
committerSamuel Benzaquen <sbenza@google.com>2015-02-27 17:53:23 +0000
commite39269e7909354ca8137ecf9402fb4fd3533b52f (patch)
treeb98504be7161c1b9ccb5006c7b2d18aec2b2fbc2 /clang-tools-extra/clang-query
parent0b169c0cab663b8708d30e37bebe247852192df8 (diff)
downloadbcm5719-llvm-e39269e7909354ca8137ecf9402fb4fd3533b52f.tar.gz
bcm5719-llvm-e39269e7909354ca8137ecf9402fb4fd3533b52f.zip
Add 'let' to the help message.
Summary: Add 'let' to the help message. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D7940 llvm-svn: 230768
Diffstat (limited to 'clang-tools-extra/clang-query')
-rw-r--r--clang-tools-extra/clang-query/Query.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-query/Query.cpp b/clang-tools-extra/clang-query/Query.cpp
index 3733120a9cb..3b4962458c2 100644
--- a/clang-tools-extra/clang-query/Query.cpp
+++ b/clang-tools-extra/clang-query/Query.cpp
@@ -33,13 +33,17 @@ bool NoOpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
OS << "Available commands:\n\n"
- " match MATCHER, m MATCHER "
+ " match MATCHER, m MATCHER "
"Match the loaded ASTs against the given matcher.\n"
- " set bind-root (true|false) "
+ " let NAME MATCHER, l NAME MATCHER "
+ "Give a matcher expression a name, to be used later\n"
+ " "
+ "as part of other expressions.\n"
+ " set bind-root (true|false) "
"Set whether to bind the root matcher to \"root\".\n"
- " set output (diag|print|dump) "
+ " set output (diag|print|dump) "
"Set whether to print bindings as diagnostics,\n"
- " "
+ " "
"AST pretty prints or AST dumps.\n\n";
return true;
}
OpenPOWER on IntegriCloud