[PATCH] D53498: Re-word command help for clang-query

Stephen Kelly via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 24 13:35:26 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE345192: [clang-query] Re-word command help (authored by steveire, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D53498?vs=170419&id=170972#toc

Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D53498

Files:
  clang-query/Query.cpp


Index: clang-query/Query.cpp
===================================================================
--- clang-query/Query.cpp
+++ clang-query/Query.cpp
@@ -43,12 +43,18 @@
         "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;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53498.170972.patch
Type: text/x-patch
Size: 1190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181024/c5449e47/attachment-0001.bin>


More information about the cfe-commits mailing list