aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorShubham Sandeep Rastogi <srastogi22@apple.com>2024-02-19 18:19:36 -0800
committerShubham Sandeep Rastogi <srastogi22@apple.com>2024-02-19 18:19:59 -0800
commit9ed8b272c30a01c450616f0ed8b2373d5d618ebb (patch)
tree767aa897f69692523a196a128d954ba408482708 /lldb/source/Commands/CommandObjectCommands.cpp
parent744616b3aebd008a5ad0e9de9f82f5e284440ab1 (diff)
downloadllvm-9ed8b272c30a01c450616f0ed8b2373d5d618ebb.zip
llvm-9ed8b272c30a01c450616f0ed8b2373d5d618ebb.tar.gz
llvm-9ed8b272c30a01c450616f0ed8b2373d5d618ebb.tar.bz2
Revert "Centralize the handling of completion for simple argument lists. (#82085)"
This reverts commit 21631494b068d9364b8dc8f18e59adee9131a0a5. Reverted because of greendragon failure: ******************** TEST 'lldb-api :: functionalities/completion/TestCompletion.py' FAILED ******************** Script:
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectCommands.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp
index 7c459bd..b7cd650 100644
--- a/lldb/source/Commands/CommandObjectCommands.cpp
+++ b/lldb/source/Commands/CommandObjectCommands.cpp
@@ -63,6 +63,13 @@ public:
return std::string("");
}
+ void
+ HandleArgumentCompletion(CompletionRequest &request,
+ OptionElementVector &opt_element_vector) override {
+ lldb_private::CommandCompletions::InvokeCommonCompletionCallbacks(
+ GetCommandInterpreter(), lldb::eDiskFileCompletion, request, nullptr);
+ }
+
Options *GetOptions() override { return &m_options; }
protected:
@@ -1961,6 +1968,13 @@ public:
~CommandObjectCommandsScriptImport() override = default;
+ void
+ HandleArgumentCompletion(CompletionRequest &request,
+ OptionElementVector &opt_element_vector) override {
+ lldb_private::CommandCompletions::InvokeCommonCompletionCallbacks(
+ GetCommandInterpreter(), lldb::eDiskFileCompletion, request, nullptr);
+ }
+
Options *GetOptions() override { return &m_options; }
protected: