]> granicus.if.org Git - clang/commitdiff
[Bash-autocompletion] Fixed formatting
authorYuka Takahashi <yukatkh@gmail.com>
Mon, 5 Mar 2018 09:01:31 +0000 (09:01 +0000)
committerYuka Takahashi <yukatkh@gmail.com>
Mon, 5 Mar 2018 09:01:31 +0000 (09:01 +0000)
Fixed a trivial formatting and indent.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326685 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index b0a64354f8db1936fcbc5f15bd0aaf7109e325ad..4712daf0e19f57c3478b2d6bf7c9ebc50592a962 100644 (file)
@@ -1420,7 +1420,8 @@ static void PrintDiagnosticCategories(raw_ostream &OS) {
 }
 
 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(StringRef PassedFlags) const {
 
   // 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(StringRef PassedFlags) const {
         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