LLDB mainline
|
#include "lldb/Interpreter/Options.h"
#include <algorithm>
#include <bitset>
#include <map>
#include <set>
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/CommandCompletions.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandObject.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Target/Target.h"
#include "lldb/Utility/DiagnosticsRendering.h"
#include "lldb/Utility/StreamString.h"
#include "llvm/ADT/STLExtras.h"
Go to the source code of this file.
Classes | |
class | lldb_private::OptionParseError |
An llvm::Error that represents an option parsing diagnostic. More... | |
Namespaces | |
namespace | lldb_private |
A class that represents a running process on the host machine. | |
Enumerations | |
enum | OptionDisplayType { eDisplayBestOption , eDisplayShortOption , eDisplayLongOption } |
Functions | |
static bool | PrintOption (const OptionDefinition &opt_def, OptionDisplayType display_type, const char *header, const char *footer, bool show_optional, Stream &strm) |
static std::vector< char * > | GetArgvForParsing (const Args &args) |
static Args::const_iterator | FindOriginalIter (const char *arg, const Args &original) |
static size_t | FindOriginalIndex (const char *arg, const Args &original) |
static Args | ReconstituteArgsAfterParsing (llvm::ArrayRef< char * > parsed, const Args &original) |
static size_t | FindArgumentIndexForOption (const Args &args, const Option &long_option) |
static std::string | BuildShortOptions (const Option *long_options) |
enum OptionDisplayType |
Enumerator | |
---|---|
eDisplayBestOption | |
eDisplayShortOption | |
eDisplayLongOption |
Definition at line 385 of file Options.cpp.
|
static |
Definition at line 935 of file Options.cpp.
References lldb_private::Option::definition, lldb_private::OptionParser::eNoArgument, lldb_private::OptionParser::eOptionalArgument, and lldb_private::OptionParser::eRequiredArgument.
Referenced by lldb_private::Options::Parse(), lldb_private::Options::ParseAlias(), and lldb_private::Options::ParseForCompletion().
Definition at line 921 of file Options.cpp.
References lldb_private::Option::definition, lldb_private::OptionDefinition::long_option, and lldb_private::Option::val.
Referenced by lldb_private::Options::ParseAlias().
|
static |
Definition at line 904 of file Options.cpp.
References lldb_private::Args::begin(), and FindOriginalIter().
Referenced by lldb_private::Options::ParseForCompletion().
|
static |
Definition at line 897 of file Options.cpp.
References lldb_private::Args::ArgEntry::c_str().
Referenced by FindOriginalIndex(), and ReconstituteArgsAfterParsing().
|
static |
Definition at line 886 of file Options.cpp.
Referenced by lldb_private::Options::Parse(), lldb_private::Options::ParseAlias(), and lldb_private::Options::ParseForCompletion().
|
static |
Definition at line 391 of file Options.cpp.
References lldb_private::OptionDefinition::argument_type, eDisplayLongOption, eDisplayShortOption, lldb_private::OptionParser::eNoArgument, lldb_private::OptionParser::eOptionalArgument, lldb_private::OptionParser::eRequiredArgument, lldb_private::CommandObject::GetArgumentName(), lldb_private::OptionDefinition::HasShortOption(), lldb_private::OptionDefinition::long_option, lldb_private::OptionDefinition::option_has_arg, lldb_private::Stream::Printf(), lldb_private::Stream::PutChar(), lldb_private::Stream::PutCString(), lldb_private::OptionDefinition::required, and lldb_private::OptionDefinition::short_option.
Referenced by lldb_private::Options::GenerateOptionUsage().
|
static |
Definition at line 910 of file Options.cpp.
References lldb_private::Args::AppendArgument(), lldb_private::Args::end(), and FindOriginalIter().
Referenced by lldb_private::Options::Parse().