9#ifndef LLDB_INTERPRETER_COMMANDOBJECTMULTIWORD_H
10#define LLDB_INTERPRETER_COMMANDOBJECTMULTIWORD_H
27 const char *help =
nullptr,
28 const char *syntax =
nullptr, uint32_t flags = 0);
41 bool can_replace)
override;
60 uint32_t index)
override;
82 const char *help =
nullptr,
const char *syntax =
nullptr,
93 llvm::StringRef
GetHelp()
override;
127 uint32_t index)
override;
A command line argument class.
void Execute(const char *args_string, CommandReturnObject &result) override
llvm::Error LoadUserSubcommand(llvm::StringRef cmd_name, const lldb::CommandObjectSP &command_obj, bool can_replace) override
void GenerateHelpText(Stream &output_stream) override
bool IsMultiwordObject() override
CommandObject::CommandMap m_subcommand_dict
bool IsRemovable() const override
CommandObject::CommandMap & GetSubcommandDictionary()
void HandleCompletion(CompletionRequest &request) override
This default version handles calling option argument completions and then calls HandleArgumentComplet...
~CommandObjectMultiword() override
std::string GetSubcommandsHintText()
void SetRemovable(bool removable)
bool WantsRawCommandString() override
std::optional< std::string > GetRepeatCommand(Args ¤t_command_args, uint32_t index) override
Get the command that appropriate for a "repeat" of the current command.
friend class CommandObjectSyntax
bool LoadSubCommand(llvm::StringRef cmd_name, const lldb::CommandObjectSP &command_obj) override
CommandObject * GetSubcommandObject(llvm::StringRef sub_cmd, StringList *matches=nullptr) override
llvm::Error RemoveUserSubcommand(llvm::StringRef cmd_name, bool multiword_okay)
lldb::CommandObjectSP GetSubcommandSPExact(llvm::StringRef sub_cmd) override
CommandObjectMultiword * GetAsMultiwordCommand() override
lldb::CommandObjectSP GetSubcommandSP(llvm::StringRef sub_cmd, StringList *matches=nullptr) override
void GenerateHelpText(Stream &result) override
bool WantsCompletion() override
virtual CommandObject * GetProxyCommandObject()=0
llvm::StringRef GetHelpLong() override
void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector) override
The default version handles argument definitions that have only one argument type,...
lldb::CommandObjectSP GetSubcommandSP(llvm::StringRef sub_cmd, StringList *matches=nullptr) override
bool LoadSubCommand(llvm::StringRef cmd_name, const lldb::CommandObjectSP &command_obj) override
CommandObjectMultiword * GetAsMultiwordCommand() override
llvm::StringRef GetSyntax() override
CommandObject * GetSubcommandObject(llvm::StringRef sub_cmd, StringList *matches=nullptr) override
void Execute(const char *args_string, CommandReturnObject &result) override
Options * GetOptions() override
bool IsMultiwordObject() override
friend class CommandObjectSyntax
virtual llvm::StringRef GetUnsupportedError()
bool WantsRawCommandString() override
void HandleCompletion(CompletionRequest &request) override
This default version handles calling option argument completions and then calls HandleArgumentComplet...
std::optional< std::string > GetRepeatCommand(Args ¤t_command_args, uint32_t index) override
Get the command that appropriate for a "repeat" of the current command.
bool IsRemovable() const override
~CommandObjectProxy() override
llvm::StringRef GetHelp() override
std::map< std::string, lldb::CommandObjectSP, std::less<> > CommandMap
"lldb/Utility/ArgCompletionRequest.h"
A command line option parsing protocol class.
A stream class that can stream formatted output to a file.
A class that represents a running process on the host machine.
std::vector< OptionArgElement > OptionElementVector
std::shared_ptr< lldb_private::CommandObject > CommandObjectSP