r326685 - [Bash-autocompletion] Fixed formatting

Yuka Takahashi via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 5 01:01:31 PST 2018


Author: yamaguchi
Date: Mon Mar  5 01:01:31 2018
New Revision: 326685

URL: http://llvm.org/viewvc/llvm-project?rev=326685&view=rev
Log:
[Bash-autocompletion] Fixed formatting

Fixed a trivial formatting and indent.

Modified:
    cfe/trunk/lib/Driver/Driver.cpp

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=326685&r1=326684&r2=326685&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Mon Mar  5 01:01:31 2018
@@ -1420,7 +1420,8 @@ static void PrintDiagnosticCategories(ra
 }
 
 void Driver::HandleAutocompletions(StringRef PassedFlags) const {
-  if (PassedFlags == "") return;
+  if (PassedFlags == "")
+    return;
   // Print out all options that start with a given argument. This is used for
   // shell autocompletion.
   std::vector<std::string> SuggestedCompletions;
@@ -1440,7 +1441,8 @@ void Driver::HandleAutocompletions(Strin
 
   // We want to show cc1-only options only when clang is invoked with -cc1 or
   // -Xclang.
-  if (std::find(Flags.begin(), Flags.end(), "-Xclang") != Flags.end() || std::find(Flags.begin(), Flags.end(), "-cc1") != Flags.end())
+  if (std::find(Flags.begin(), Flags.end(), "-Xclang") != Flags.end() ||
+      std::find(Flags.begin(), Flags.end(), "-cc1") != Flags.end())
     DisableFlags &= ~options::NoDriverOption;
 
   StringRef Cur;
@@ -1468,7 +1470,6 @@ void Driver::HandleAutocompletions(Strin
         SuggestedCompletions.push_back(S);
   }
 
-
   // Sort the autocomplete candidates so that shells print them out in a
   // deterministic order. We could sort in any way, but we chose
   // case-insensitive sorting for consistency with the -help option




More information about the cfe-commits mailing list