steveire created this revision.
steveire added a reviewer: aaron.ballman.
Herald added a subscriber: cfe-commits.

This will make it possible to easily

- Add new commands which accept <feature> parameters
- Extend the list of features


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,17 @@
         "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;
 }
 


Index: clang-query/Query.cpp
===================================================================
--- clang-query/Query.cpp
+++ clang-query/Query.cpp
@@ -43,12 +43,17 @@
         "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;
 }
 
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to