summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-08-22 09:14:42 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-08-22 09:14:42 +0000
commit494370c101e27c5a4561df864825992087a2d69f (patch)
tree720181d1b2674237d5930ab21ffc0a8288e238cf /lldb/source/Commands/CommandObjectProcess.cpp
parent26f42623986e6d701ab7a17164b490b61fa75e6f (diff)
downloadbcm5719-llvm-494370c101e27c5a4561df864825992087a2d69f.tar.gz
bcm5719-llvm-494370c101e27c5a4561df864825992087a2d69f.zip
[lldb][NFC] Remove unused return value from HandleOptionArgumentCompletion
llvm-svn: 369635
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 1a1378b1938..866964bc719 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -320,7 +320,7 @@ public:
return llvm::makeArrayRef(g_process_attach_options);
}
- bool HandleOptionArgumentCompletion(
+ void HandleOptionArgumentCompletion(
CompletionRequest &request, OptionElementVector &opt_element_vector,
int opt_element_index, CommandInterpreter &interpreter) override {
int opt_arg_pos = opt_element_vector[opt_element_index].opt_arg_pos;
@@ -330,7 +330,7 @@ public:
// Are we in the name?
if (GetDefinitions()[opt_defs_index].short_option != 'n')
- return false;
+ return;
// Look to see if there is a -P argument provided, and if so use that
// plugin, otherwise use the default plugin.
@@ -340,7 +340,7 @@ public:
PlatformSP platform_sp(interpreter.GetPlatform(true));
if (!platform_sp)
- return false;
+ return;
ProcessInstanceInfoList process_infos;
ProcessInstanceInfoMatch match_info;
if (partial_name) {
@@ -351,14 +351,12 @@ public:
platform_sp->FindProcesses(match_info, process_infos);
const size_t num_matches = process_infos.GetSize();
if (num_matches == 0)
- return false;
+ return;
for (size_t i = 0; i < num_matches; ++i) {
request.AddCompletion(
llvm::StringRef(process_infos.GetProcessNameAtIndex(i),
process_infos.GetProcessNameLengthAtIndex(i)));
}
-
- return false;
}
// Instance variables to hold the values for command options.
OpenPOWER on IntegriCloud