Skip to content

Commit

Permalink
[lldb][NFC] Fix indentation in CommandObjectProcess
Browse files Browse the repository at this point in the history
llvm-svn: 369652
  • Loading branch information
Teemperor committed Aug 22, 2019
1 parent 545e993 commit 00235e1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lldb/source/Commands/CommandObjectProcess.cpp
Expand Up @@ -348,15 +348,15 @@ class CommandObjectProcessAttach : public CommandObjectProcessLaunchOrAttach {
partial_name, FileSpec::Style::native);
match_info.SetNameMatchType(NameMatch::StartsWith);
}
platform_sp->FindProcesses(match_info, process_infos);
const size_t num_matches = process_infos.GetSize();
if (num_matches == 0)
return;
for (size_t i = 0; i < num_matches; ++i) {
request.AddCompletion(
llvm::StringRef(process_infos.GetProcessNameAtIndex(i),
process_infos.GetProcessNameLengthAtIndex(i)));
}
platform_sp->FindProcesses(match_info, process_infos);
const size_t num_matches = process_infos.GetSize();
if (num_matches == 0)
return;
for (size_t i = 0; i < num_matches; ++i) {
request.AddCompletion(
llvm::StringRef(process_infos.GetProcessNameAtIndex(i),
process_infos.GetProcessNameLengthAtIndex(i))));
}
}

// Instance variables to hold the values for command options.
Expand Down

0 comments on commit 00235e1

Please sign in to comment.