[clang-tools-extra] r230768 - Add 'let' to the help message.

Samuel Benzaquen sbenza at google.com
Fri Feb 27 09:53:23 PST 2015


Author: sbenza
Date: Fri Feb 27 11:53:23 2015
New Revision: 230768

URL: http://llvm.org/viewvc/llvm-project?rev=230768&view=rev
Log:
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

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=230768&r1=230767&r2=230768&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-query/Query.cpp (original)
+++ clang-tools-extra/trunk/clang-query/Query.cpp Fri Feb 27 11:53:23 2015
@@ -33,13 +33,17 @@ bool NoOpQuery::run(llvm::raw_ostream &O
 
 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;
 }





More information about the cfe-commits mailing list