[Bash-autocompletion] Fixed formatting

Fixed a trivial formatting and indent.

llvm-svn: 326685
This commit is contained in:
Yuka Takahashi 2018-03-05 09:01:31 +00:00
parent 41789e46a6
commit 503da8ff1f
1 changed files with 4 additions and 3 deletions

View 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