diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectPlatform.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectPlatform.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectPlatform.cpp b/lldb/source/Commands/CommandObjectPlatform.cpp index 8433fbdc985..43a06310738 100644 --- a/lldb/source/Commands/CommandObjectPlatform.cpp +++ b/lldb/source/Commands/CommandObjectPlatform.cpp @@ -1432,7 +1432,7 @@ public: return llvm::makeArrayRef(g_platform_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; @@ -1442,7 +1442,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. @@ -1452,7 +1452,7 @@ public: PlatformSP platform_sp(interpreter.GetPlatform(true)); if (!platform_sp) - return false; + return; ProcessInstanceInfoList process_infos; ProcessInstanceInfoMatch match_info; @@ -1464,14 +1464,14 @@ public: platform_sp->FindProcesses(match_info, process_infos); const uint32_t num_matches = process_infos.GetSize(); if (num_matches == 0) - return false; + return; for (uint32_t i = 0; i < num_matches; ++i) { request.AddCompletion( llvm::StringRef(process_infos.GetProcessNameAtIndex(i), process_infos.GetProcessNameLengthAtIndex(i))); } - return false; + return; } // Options table: Required for subclasses of Options. |