llvm/lldb/source/Interpreter/CommandObject.cpp

//===-- CommandObject.cpp -------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "lldb/Interpreter/CommandObject.h"

#include <map>
#include <sstream>
#include <string>

#include <cctype>
#include <cstdlib>

#include "lldb/Core/Address.h"
#include "lldb/Interpreter/CommandOptionArgumentTable.h"
#include "lldb/Interpreter/Options.h"
#include "lldb/Utility/ArchSpec.h"
#include "llvm/ADT/ScopeExit.h"

// These are for the Sourcename completers.
// FIXME: Make a separate file for the completers.
#include "lldb/DataFormatters/FormatManager.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/Target.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/FileSpecList.h"

#include "lldb/Target/Language.h"

#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandOptionArgumentTable.h"
#include "lldb/Interpreter/CommandReturnObject.h"

usingnamespacelldb;
usingnamespacelldb_private;

// CommandObject

CommandObject::CommandObject(CommandInterpreter &interpreter,
                             llvm::StringRef name, llvm::StringRef help,
                             llvm::StringRef syntax, uint32_t flags)
    :{}

Debugger &CommandObject::GetDebugger() {}

llvm::StringRef CommandObject::GetHelp() {}

llvm::StringRef CommandObject::GetHelpLong() {}

llvm::StringRef CommandObject::GetSyntax() {}

llvm::StringRef CommandObject::GetCommandName() const {}

void CommandObject::SetCommandName(llvm::StringRef name) {}

void CommandObject::SetHelp(llvm::StringRef str) {}

void CommandObject::SetHelpLong(llvm::StringRef str) {}

void CommandObject::SetSyntax(llvm::StringRef str) {}

Options *CommandObject::GetOptions() {}

bool CommandObject::ParseOptions(Args &args, CommandReturnObject &result) {}

bool CommandObject::CheckRequirements(CommandReturnObject &result) {}

void CommandObject::Cleanup() {}

void CommandObject::HandleCompletion(CompletionRequest &request) {}

void CommandObject::HandleArgumentCompletion(
    CompletionRequest &request, OptionElementVector &opt_element_vector) {}


bool CommandObject::HelpTextContainsWord(llvm::StringRef search_word,
                                         bool search_short_help,
                                         bool search_long_help,
                                         bool search_syntax,
                                         bool search_options) {}

bool CommandObject::ParseOptionsAndNotify(Args &args,
                                          CommandReturnObject &result,
                                          OptionGroupOptions &group_options,
                                          ExecutionContext &exe_ctx) {}

void CommandObject::AddSimpleArgumentList(
    CommandArgumentType arg_type, ArgumentRepetitionType repetition_type) {}

int CommandObject::GetNumArgumentEntries() {}

CommandObject::CommandArgumentEntry *
CommandObject::GetArgumentEntryAtIndex(int idx) {}

const CommandObject::ArgumentTableEntry *
CommandObject::FindArgumentDataByType(CommandArgumentType arg_type) {}

void CommandObject::GetArgumentHelp(Stream &str, CommandArgumentType arg_type,
                                    CommandInterpreter &interpreter) {}

const char *CommandObject::GetArgumentName(CommandArgumentType arg_type) {}

bool CommandObject::IsPairType(ArgumentRepetitionType arg_repeat_type) {}

std::optional<ArgumentRepetitionType> 
CommandObject::ArgRepetitionFromString(llvm::StringRef string) {}

static CommandObject::CommandArgumentEntry
OptSetFiltered(uint32_t opt_set_mask,
               CommandObject::CommandArgumentEntry &cmd_arg_entry) {}

// Default parameter value of opt_set_mask is LLDB_OPT_SET_ALL, which means
// take all the argument data into account.  On rare cases where some argument
// sticks with certain option sets, this function returns the option set
// filtered args.
void CommandObject::GetFormattedCommandArguments(Stream &str,
                                                 uint32_t opt_set_mask) {}

CommandArgumentType
CommandObject::LookupArgumentName(llvm::StringRef arg_name) {}

void CommandObject::FormatLongHelpText(Stream &output_strm,
                                       llvm::StringRef long_help) {}

void CommandObject::GenerateHelpText(CommandReturnObject &result) {}

void CommandObject::GenerateHelpText(Stream &output_strm) {}

void CommandObject::AddIDsArgumentData(CommandObject::IDType type) {}

const char *CommandObject::GetArgumentTypeAsCString(
    const lldb::CommandArgumentType arg_type) {}

const char *CommandObject::GetArgumentDescriptionAsCString(
    const lldb::CommandArgumentType arg_type) {}

Target &CommandObject::GetDummyTarget() {}

Target &CommandObject::GetTarget() {}

Thread *CommandObject::GetDefaultThread() {}

void CommandObjectParsed::Execute(const char *args_string,
                                  CommandReturnObject &result) {}

void CommandObjectRaw::Execute(const char *args_string,
                               CommandReturnObject &result) {}