From c16b82c59e482b89c42a456982335f71aece84cb Mon Sep 17 00:00:00 2001 From: Yuka Takahashi Date: Mon, 5 Mar 2018 09:01:31 +0000 Subject: [PATCH] [Bash-autocompletion] Fixed formatting 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index b0a64354f8..4712daf0e1 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -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 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 -- 2.50.1