[clang-tools-extra] r343532 - [clang-query] Sort command options

Stephen Kelly via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 1 13:34:15 PDT 2018


Author: steveire
Date: Mon Oct  1 13:34:15 2018
New Revision: 343532

URL: http://llvm.org/viewvc/llvm-project?rev=343532&view=rev
Log:
[clang-query] Sort command options

Modified:
    clang-tools-extra/trunk/clang-query/QueryParser.cpp

Modified: clang-tools-extra/trunk/clang-query/QueryParser.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-query/QueryParser.cpp?rev=343532&r1=343531&r2=343532&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-query/QueryParser.cpp (original)
+++ clang-tools-extra/trunk/clang-query/QueryParser.cpp Mon Oct  1 13:34:15 2018
@@ -162,12 +162,12 @@ QueryRef QueryParser::doParse() {
   ParsedQueryKind QKind = LexOrCompleteWord<ParsedQueryKind>(this, CommandStr)
                               .Case("", PQK_NoOp)
                               .Case("help", PQK_Help)
-                              .Case("m", PQK_Match, /*IsCompletion=*/false)
                               .Case("let", PQK_Let)
+                              .Case("m", PQK_Match, /*IsCompletion=*/false)
                               .Case("match", PQK_Match)
+                              .Case("quit", PQK_Quit)
                               .Case("set", PQK_Set)
                               .Case("unlet", PQK_Unlet)
-                              .Case("quit", PQK_Quit)
                               .Default(PQK_Invalid);
 
   switch (QKind) {




More information about the cfe-commits mailing list