diff options
author | jimingham <jingham@apple.com> | 2024-09-24 10:00:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 10:00:00 -0700 |
commit | 04b443e77845cd20ab5acc4356cee509316135dd (patch) | |
tree | 72ee14a4a01bba2b99af12c0b7524a931205b4b4 /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | |
parent | c6bf59f26b2d74474a66182db6ebd576273bfb00 (diff) | |
download | llvm-04b443e77845cd20ab5acc4356cee509316135dd.zip llvm-04b443e77845cd20ab5acc4356cee509316135dd.tar.gz llvm-04b443e77845cd20ab5acc4356cee509316135dd.tar.bz2 |
Add the ability to define custom completers to the parsed_cmd template. (#109062)
If your arguments or option values are of a type that naturally uses one
of our common completion mechanisms, you will get completion for free.
But if you have your own custom values or if you want to do fancy things
like have `break set -s foo.dylib -n ba<TAB>` only complete on symbols
in foo.dylib, you can use this new mechanism to achieve that.
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
-rw-r--r-- | lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp index c67a2b4..3faeb58 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp @@ -211,6 +211,19 @@ LLDBSwigPythonGetRepeatCommandForScriptedCommand(PyObject *implementor, return std::nullopt; } +StructuredData::DictionarySP +LLDBSwigPythonHandleArgumentCompletionForScriptedCommand( + PyObject *implementor, std::vector<llvm::StringRef> &args, size_t args_pos, + size_t pos_in_arg) { + return {}; +} + +StructuredData::DictionarySP +LLDBSwigPythonHandleOptionArgumentCompletionForScriptedCommand( + PyObject *implementor, llvm::StringRef &long_options, size_t char_in_arg) { + return {}; +} + bool lldb_private::python::SWIGBridge::LLDBSwigPythonCallModuleInit( const char *python_module_name, const char *session_dictionary_name, lldb::DebuggerSP debugger) { |