#include "CommandObjectRegexCommand.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
usingnamespacelldb;
usingnamespacelldb_private;
CommandObjectRegexCommand::CommandObjectRegexCommand(
CommandInterpreter &interpreter, llvm::StringRef name, llvm::StringRef help,
llvm::StringRef syntax, uint32_t completion_type_mask, bool is_removable)
: … { … }
CommandObjectRegexCommand::~CommandObjectRegexCommand() = default;
llvm::Expected<std::string> CommandObjectRegexCommand::SubstituteVariables(
llvm::StringRef input,
const llvm::SmallVectorImpl<llvm::StringRef> &replacements) { … }
void CommandObjectRegexCommand::DoExecute(llvm::StringRef command,
CommandReturnObject &result) { … }
bool CommandObjectRegexCommand::AddRegexCommand(llvm::StringRef re_cstr,
llvm::StringRef command_cstr) { … }
void CommandObjectRegexCommand::HandleCompletion(CompletionRequest &request) { … }