LLDB mainline
|
#include <OptionValueString.h>
Public Types | |
enum | Options { eOptionEncodeCharacterEscapeSequences = (1u << 0) } |
typedef Status(* | ValidatorCallback) (const char *string, void *baton) |
Public Types inherited from lldb_private::OptionValue | |
enum | Type { eTypeInvalid = 0 , eTypeArch , eTypeArgs , eTypeArray , eTypeBoolean , eTypeChar , eTypeDictionary , eTypeEnum , eTypeFileLineColumn , eTypeFileSpec , eTypeFileSpecList , eTypeFormat , eTypeLanguage , eTypePathMap , eTypeProperties , eTypeRegex , eTypeSInt64 , eTypeString , eTypeUInt64 , eTypeUUID , eTypeFormatEntity } |
enum | { eDumpOptionName = (1u << 0) , eDumpOptionType = (1u << 1) , eDumpOptionValue = (1u << 2) , eDumpOptionDescription = (1u << 3) , eDumpOptionRaw = (1u << 4) , eDumpOptionCommand = (1u << 5) , eDumpGroupValue = (eDumpOptionName | eDumpOptionType | eDumpOptionValue) , eDumpGroupHelp , eDumpGroupExport = (eDumpOptionCommand | eDumpOptionName | eDumpOptionValue) } |
Protected Attributes | |
std::string | m_current_value |
std::string | m_default_value |
Flags | m_options |
ValidatorCallback | m_validator = nullptr |
void * | m_validator_baton = nullptr |
Protected Attributes inherited from lldb_private::OptionValue | |
lldb::OptionValueWP | m_parent_wp |
std::function< void()> | m_callback |
bool | m_value_was_set = false |
Additional Inherited Members | |
Static Public Member Functions inherited from lldb_private::OptionValue | |
static const char * | GetBuiltinTypeAsCString (Type t) |
static uint32_t | ConvertTypeToMask (OptionValue::Type type) |
static OptionValue::Type | ConvertTypeMaskToType (uint32_t type_mask) |
static lldb::OptionValueSP | CreateValueFromCStringForTypeMask (const char *value_cstr, uint32_t type_mask, Status &error) |
Protected Types inherited from lldb_private::OptionValue | |
using | TopmostBase = OptionValue |
virtual lldb::OptionValueSP | Clone () const =0 |
Definition at line 20 of file OptionValueString.h.
typedef Status(* lldb_private::OptionValueString::ValidatorCallback) (const char *string, void *baton) |
Definition at line 22 of file OptionValueString.h.
Enumerator | |
---|---|
eOptionEncodeCharacterEscapeSequences |
Definition at line 24 of file OptionValueString.h.
|
default |
|
inline |
Definition at line 28 of file OptionValueString.h.
|
inline |
Definition at line 31 of file OptionValueString.h.
References m_current_value, and m_default_value.
|
inline |
Definition at line 38 of file OptionValueString.h.
References m_current_value, and m_default_value.
|
inline |
Definition at line 45 of file OptionValueString.h.
References m_current_value, and m_default_value.
|
inline |
Definition at line 54 of file OptionValueString.h.
References m_current_value, and m_default_value.
|
overridedefault |
Status OptionValueString::AppendToCurrentValue | ( | const char * | value | ) |
Definition at line 130 of file OptionValueString.cpp.
References error(), m_current_value, m_validator, and m_validator_baton.
|
inlineoverridevirtual |
Implements lldb_private::OptionValue.
Definition at line 80 of file OptionValueString.h.
References m_current_value, m_default_value, and lldb_private::OptionValue::m_value_was_set.
Referenced by lldb_private::OptionGroupString::OptionParsingStarting(), lldb_private::OptionGroupVariable::OptionParsingStarting(), BreakpointNameOptionGroup::OptionParsingStarting(), CommandObjectCommandsAlias::CommandOptions::OptionParsingStarting(), OptionGroupReadMemory::OptionParsingStarting(), CommandObjectMemoryFind::OptionGroupFindMemory::OptionParsingStarting(), CommandObjectTypeFormatterList< FormatterType >::CommandOptions::OptionParsingStarting(), and SetValueFromString().
|
overridevirtual |
Implements lldb_private::OptionValue.
Definition at line 18 of file OptionValueString.cpp.
References lldb_private::OptionValue::eDumpOptionRaw, lldb_private::OptionValue::eDumpOptionType, lldb_private::OptionValue::eDumpOptionValue, eOptionEncodeCharacterEscapeSequences, lldb_private::Args::ExpandEscapedCharacters(), lldb_private::OptionValue::GetTypeAsCString(), m_current_value, m_options, lldb_private::OptionValue::m_value_was_set, lldb_private::Stream::Printf(), lldb_private::Stream::PutCString(), and lldb_private::Flags::Test().
|
inline |
Definition at line 96 of file OptionValueString.h.
References m_current_value.
Referenced by CommandObjectTargetModulesLoad::DoExecute(), CommandObjectBreakpointNameAdd::DoExecute(), CommandObjectBreakpointNameDelete::DoExecute(), CommandObjectFrameVariable::DoExecute(), CommandObjectMemoryRead::DoExecute(), CommandObjectProcessKDPPacketSend::DoExecute(), and PlatformDarwinProperties::GetIgnoredExceptions().
|
inline |
Definition at line 97 of file OptionValueString.h.
References m_current_value.
Referenced by CommandObjectTargetCreate::DoExecute(), and CommandObjectTypeFormatterList< FormatterType >::DoExecute().
|
inline |
Definition at line 99 of file OptionValueString.h.
References m_default_value.
|
inline |
Definition at line 100 of file OptionValueString.h.
References m_default_value.
|
inline |
Definition at line 87 of file OptionValueString.h.
References m_options.
Referenced by lldb_private::Property::Property().
|
inline |
Definition at line 89 of file OptionValueString.h.
References m_options.
|
inlineoverridevirtual |
Implements lldb_private::OptionValue.
Definition at line 67 of file OptionValueString.h.
References lldb_private::OptionValue::eTypeString.
|
inline |
Definition at line 113 of file OptionValueString.h.
References m_current_value.
Referenced by CommandObjectFrameVariable::DoExecute().
|
inline |
Definition at line 115 of file OptionValueString.h.
References m_default_value.
|
inline |
Definition at line 91 of file OptionValueString.h.
References m_current_value, and SetCurrentValue().
Status OptionValueString::SetCurrentValue | ( | llvm::StringRef | value | ) |
Definition at line 120 of file OptionValueString.cpp.
References error(), m_current_value, m_validator, and m_validator_baton.
Referenced by operator=(), CommandObjectTypeFormatterList< FormatterType >::CommandOptions::SetOptionValue(), lldb_private::OptionGroupVariable::SetOptionValue(), CommandObjectCommandsAlias::CommandOptions::SetOptionValue(), and SetValueFromString().
|
inline |
Definition at line 106 of file OptionValueString.h.
References m_default_value.
|
inline |
Definition at line 117 of file OptionValueString.h.
References m_validator, m_validator_baton, and lldb_private::validator.
Referenced by lldb_private::PlatformDarwin::DebuggerInitialize().
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 44 of file OptionValueString.cpp.
References Clear(), lldb_private::Args::EncodeEscapeSequences(), eOptionEncodeCharacterEscapeSequences, error(), lldb_private::eVarSetOperationAppend, lldb_private::eVarSetOperationAssign, lldb_private::eVarSetOperationClear, lldb_private::eVarSetOperationInsertAfter, lldb_private::eVarSetOperationInsertBefore, lldb_private::eVarSetOperationInvalid, lldb_private::eVarSetOperationRemove, lldb_private::eVarSetOperationReplace, m_current_value, m_options, m_validator, m_validator_baton, lldb_private::OptionValue::m_value_was_set, lldb_private::OptionValue::NotifyValueChanged(), SetCurrentValue(), lldb_private::OptionValue::SetValueFromString(), and lldb_private::Flags::Test().
Referenced by BreakpointNameOptionGroup::SetOptionValue(), lldb_private::OptionGroupString::SetOptionValue(), OptionGroupReadMemory::SetOptionValue(), and CommandObjectMemoryFind::OptionGroupFindMemory::SetOptionValue().
|
inlineoverridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 72 of file OptionValueString.h.
References m_current_value.
|
protected |
Definition at line 123 of file OptionValueString.h.
Referenced by AppendToCurrentValue(), Clear(), DumpValue(), GetCurrentValue(), GetCurrentValueAsRef(), IsCurrentValueEmpty(), operator=(), OptionValueString(), SetCurrentValue(), SetValueFromString(), and ToJSON().
|
protected |
Definition at line 124 of file OptionValueString.h.
Referenced by Clear(), GetDefaultValue(), GetDefaultValueAsRef(), IsDefaultValueEmpty(), OptionValueString(), and SetDefaultValue().
|
protected |
Definition at line 125 of file OptionValueString.h.
Referenced by DumpValue(), GetOptions(), and SetValueFromString().
|
protected |
Definition at line 126 of file OptionValueString.h.
Referenced by AppendToCurrentValue(), SetCurrentValue(), SetValidator(), and SetValueFromString().
|
protected |
Definition at line 127 of file OptionValueString.h.
Referenced by AppendToCurrentValue(), SetCurrentValue(), SetValidator(), and SetValueFromString().