LLDB mainline
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
lldb_private::OptionValue Class Referenceabstract

#include <OptionValue.h>

Inheritance diagram for lldb_private::OptionValue:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::OptionValue:
Collaboration graph
[legend]

Public Types

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)
}
 

Public Member Functions

 OptionValue ()=default
 
virtual ~OptionValue ()=default
 
virtual Type GetType () const =0
 
virtual bool ValueIsTransparent () const
 
virtual const char * GetTypeAsCString () const
 
virtual void DumpValue (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask)=0
 
virtual llvm::json::Value ToJSON (const ExecutionContext *exe_ctx)
 
virtual Status SetValueFromString (llvm::StringRef value, VarSetOperationType op=eVarSetOperationAssign)
 
virtual void Clear ()=0
 
virtual lldb::OptionValueSP DeepCopy (const lldb::OptionValueSP &new_parent) const
 
virtual void AutoComplete (CommandInterpreter &interpreter, CompletionRequest &request)
 
virtual lldb::OptionValueSP GetSubValue (const ExecutionContext *exe_ctx, llvm::StringRef name, bool will_modify, Status &error) const
 
virtual Status SetSubValue (const ExecutionContext *exe_ctx, VarSetOperationType op, llvm::StringRef name, llvm::StringRef value)
 
virtual bool IsAggregateValue () const
 
virtual ConstString GetName () const
 
virtual bool DumpQualifiedName (Stream &strm) const
 
uint32_t GetTypeAsMask ()
 
uint64_t GetUInt64Value (uint64_t fail_value, bool *success_ptr)
 
OptionValueArchGetAsArch ()
 
const OptionValueArchGetAsArch () const
 
OptionValueArrayGetAsArray ()
 
const OptionValueArrayGetAsArray () const
 
OptionValueArgsGetAsArgs ()
 
const OptionValueArgsGetAsArgs () const
 
OptionValueBooleanGetAsBoolean ()
 
OptionValueCharGetAsChar ()
 
const OptionValueBooleanGetAsBoolean () const
 
const OptionValueCharGetAsChar () const
 
OptionValueDictionaryGetAsDictionary ()
 
const OptionValueDictionaryGetAsDictionary () const
 
OptionValueEnumerationGetAsEnumeration ()
 
const OptionValueEnumerationGetAsEnumeration () const
 
OptionValueFileSpecGetAsFileSpec ()
 
const OptionValueFileSpecGetAsFileSpec () const
 
OptionValueFileSpecListGetAsFileSpecList ()
 
const OptionValueFileSpecListGetAsFileSpecList () const
 
OptionValueFormatGetAsFormat ()
 
const OptionValueFormatGetAsFormat () const
 
OptionValueLanguageGetAsLanguage ()
 
const OptionValueLanguageGetAsLanguage () const
 
OptionValuePathMappingsGetAsPathMappings ()
 
const OptionValuePathMappingsGetAsPathMappings () const
 
OptionValuePropertiesGetAsProperties ()
 
const OptionValuePropertiesGetAsProperties () const
 
OptionValueRegexGetAsRegex ()
 
const OptionValueRegexGetAsRegex () const
 
OptionValueSInt64GetAsSInt64 ()
 
const OptionValueSInt64GetAsSInt64 () const
 
OptionValueStringGetAsString ()
 
const OptionValueStringGetAsString () const
 
OptionValueUInt64GetAsUInt64 ()
 
const OptionValueUInt64GetAsUInt64 () const
 
OptionValueUUIDGetAsUUID ()
 
const OptionValueUUIDGetAsUUID () const
 
OptionValueFormatEntityGetAsFormatEntity ()
 
const OptionValueFormatEntityGetAsFormatEntity () const
 
bool GetBooleanValue (bool fail_value=false) const
 
bool SetBooleanValue (bool new_value)
 
char GetCharValue (char fail_value) const
 
char SetCharValue (char new_value)
 
int64_t GetEnumerationValue (int64_t fail_value=-1) const
 
bool SetEnumerationValue (int64_t value)
 
FileSpec GetFileSpecValue () const
 
bool SetFileSpecValue (const FileSpec &file_spec)
 
FileSpecList GetFileSpecListValue () const
 
lldb::Format GetFormatValue (lldb::Format fail_value=lldb::eFormatDefault) const
 
bool SetFormatValue (lldb::Format new_value)
 
lldb::LanguageType GetLanguageValue (lldb::LanguageType fail_value=lldb::eLanguageTypeUnknown) const
 
bool SetLanguageValue (lldb::LanguageType new_language)
 
const FormatEntity::EntryGetFormatEntity () const
 
const RegularExpressionGetRegexValue () const
 
int64_t GetSInt64Value (int64_t fail_value=0) const
 
bool SetSInt64Value (int64_t new_value)
 
llvm::StringRef GetStringValue (llvm::StringRef fail_value) const
 
llvm::StringRef GetStringValue () const
 
bool SetStringValue (llvm::StringRef new_value)
 
uint64_t GetUInt64Value (uint64_t fail_value=0) const
 
bool SetUInt64Value (uint64_t new_value)
 
UUID GetUUIDValue () const
 
bool SetUUIDValue (const UUID &uuid)
 
bool OptionWasSet () const
 
void SetOptionWasSet ()
 
void SetParent (const lldb::OptionValueSP &parent_sp)
 
lldb::OptionValueSP GetParent () const
 
void SetValueChangedCallback (std::function< void()> callback)
 
void NotifyValueChanged ()
 

Static Public Member Functions

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

using TopmostBase = OptionValue
 

Protected Member Functions

virtual lldb::OptionValueSP Clone () const =0
 

Protected Attributes

lldb::OptionValueWP m_parent_wp
 
std::function< void()> m_callback
 
bool m_value_was_set = false
 

Detailed Description

Definition at line 25 of file OptionValue.h.

Member Typedef Documentation

◆ TopmostBase

Definition at line 334 of file OptionValue.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
eDumpOptionName 
eDumpOptionType 
eDumpOptionValue 
eDumpOptionDescription 
eDumpOptionRaw 
eDumpOptionCommand 
eDumpGroupValue 
eDumpGroupHelp 
eDumpGroupExport 

Definition at line 51 of file OptionValue.h.

◆ Type

Enumerator
eTypeInvalid 
eTypeArch 
eTypeArgs 
eTypeArray 
eTypeBoolean 
eTypeChar 
eTypeDictionary 
eTypeEnum 
eTypeFileLineColumn 
eTypeFileSpec 
eTypeFileSpecList 
eTypeFormat 
eTypeLanguage 
eTypePathMap 
eTypeProperties 
eTypeRegex 
eTypeSInt64 
eTypeString 
eTypeUInt64 
eTypeUUID 
eTypeFormatEntity 

Definition at line 27 of file OptionValue.h.

Constructor & Destructor Documentation

◆ OptionValue()

lldb_private::OptionValue::OptionValue ( )
default

◆ ~OptionValue()

virtual lldb_private::OptionValue::~OptionValue ( )
virtualdefault

Member Function Documentation

◆ AutoComplete()

void OptionValue::AutoComplete ( CommandInterpreter interpreter,
CompletionRequest request 
)
virtual

◆ Clear()

virtual void lldb_private::OptionValue::Clear ( )
pure virtual

◆ Clone()

virtual lldb::OptionValueSP lldb_private::OptionValue::Clone ( ) const
protectedpure virtual

Implemented in lldb_private::OptionValueFileSpecList, lldb_private::Cloneable< ProcessExperimentalOptionValueProperties, OptionValueProperties >, lldb_private::Cloneable< ProcessOptionValueProperties, OptionValueProperties >, lldb_private::Cloneable< TargetExperimentalOptionValueProperties, OptionValueProperties >, lldb_private::Cloneable< TargetOptionValueProperties, OptionValueProperties >, lldb_private::Cloneable< ThreadOptionValueProperties, OptionValueProperties >, lldb_private::Cloneable< OptionValueArch, OptionValue >, lldb_private::Cloneable< OptionValueArgs, OptionValueArray >, lldb_private::Cloneable< OptionValueArray, OptionValue >, lldb_private::Cloneable< OptionValueBoolean, OptionValue >, lldb_private::Cloneable< OptionValueChar, OptionValue >, lldb_private::Cloneable< OptionValueDictionary, OptionValue >, lldb_private::Cloneable< OptionValueEnumeration, OptionValue >, lldb_private::Cloneable< OptionValueFileColonLine, OptionValue >, lldb_private::Cloneable< OptionValueFileSpec, OptionValue >, lldb_private::Cloneable< OptionValueFileSpecList, OptionValue >, lldb_private::Cloneable< OptionValueFormat, OptionValue >, lldb_private::Cloneable< OptionValueFormatEntity, OptionValue >, lldb_private::Cloneable< OptionValueLanguage, OptionValue >, lldb_private::Cloneable< OptionValuePathMappings, OptionValue >, lldb_private::Cloneable< OptionValueProperties, OptionValue >, lldb_private::Cloneable< OptionValueRegex, OptionValue >, lldb_private::Cloneable< OptionValueSInt64, OptionValue >, lldb_private::Cloneable< OptionValueString, OptionValue >, lldb_private::Cloneable< OptionValueUInt64, OptionValue >, and lldb_private::Cloneable< OptionValueUUID, OptionValue >.

Referenced by DeepCopy().

◆ ConvertTypeMaskToType()

static OptionValue::Type lldb_private::OptionValue::ConvertTypeMaskToType ( uint32_t  type_mask)
inlinestatic

◆ ConvertTypeToMask()

static uint32_t lldb_private::OptionValue::ConvertTypeToMask ( OptionValue::Type  type)
inlinestatic

Definition at line 131 of file OptionValue.h.

Referenced by lldb_private::Property::Property().

◆ CreateValueFromCStringForTypeMask()

lldb::OptionValueSP OptionValue::CreateValueFromCStringForTypeMask ( const char *  value_cstr,
uint32_t  type_mask,
Status error 
)
static

◆ DeepCopy()

OptionValueSP OptionValue::DeepCopy ( const lldb::OptionValueSP &  new_parent) const
virtual

◆ DumpQualifiedName()

bool OptionValue::DumpQualifiedName ( Stream strm) const
virtual

Definition at line 552 of file OptionValue.cpp.

References GetName(), m_parent_wp, and lldb_private::Stream::PutChar().

◆ DumpValue()

virtual void lldb_private::OptionValue::DumpValue ( const ExecutionContext exe_ctx,
Stream strm,
uint32_t  dump_mask 
)
pure virtual

◆ GetAsArch() [1/2]

OptionValueArch * OptionValue::GetAsArch ( )

Definition at line 94 of file OptionValue.cpp.

References eTypeArch, and GetType().

◆ GetAsArch() [2/2]

const OptionValueArch * OptionValue::GetAsArch ( ) const

Definition at line 100 of file OptionValue.cpp.

References eTypeArch, and GetType().

◆ GetAsArgs() [1/2]

OptionValueArgs * OptionValue::GetAsArgs ( )

◆ GetAsArgs() [2/2]

const OptionValueArgs * OptionValue::GetAsArgs ( ) const

Definition at line 124 of file OptionValue.cpp.

References eTypeArgs, and GetType().

◆ GetAsArray() [1/2]

OptionValueArray * OptionValue::GetAsArray ( )

◆ GetAsArray() [2/2]

const OptionValueArray * OptionValue::GetAsArray ( ) const

Definition at line 112 of file OptionValue.cpp.

References eTypeArray, and GetType().

◆ GetAsBoolean() [1/2]

OptionValueBoolean * OptionValue::GetAsBoolean ( )

Definition at line 46 of file OptionValue.cpp.

References eTypeBoolean, and GetType().

Referenced by GetBooleanValue(), and SetBooleanValue().

◆ GetAsBoolean() [2/2]

const OptionValueBoolean * OptionValue::GetAsBoolean ( ) const

Definition at line 52 of file OptionValue.cpp.

References eTypeBoolean, and GetType().

◆ GetAsChar() [1/2]

OptionValueChar * OptionValue::GetAsChar ( )

Definition at line 64 of file OptionValue.cpp.

References eTypeChar, and GetType().

Referenced by GetCharValue(), and SetCharValue().

◆ GetAsChar() [2/2]

const OptionValueChar * OptionValue::GetAsChar ( ) const

Definition at line 58 of file OptionValue.cpp.

References eTypeChar, and GetType().

◆ GetAsDictionary() [1/2]

OptionValueDictionary * OptionValue::GetAsDictionary ( )

◆ GetAsDictionary() [2/2]

const OptionValueDictionary * OptionValue::GetAsDictionary ( ) const

Definition at line 136 of file OptionValue.cpp.

References eTypeDictionary, and GetType().

◆ GetAsEnumeration() [1/2]

OptionValueEnumeration * OptionValue::GetAsEnumeration ( )

Definition at line 142 of file OptionValue.cpp.

References eTypeEnum, and GetType().

Referenced by GetEnumerationValue(), and SetEnumerationValue().

◆ GetAsEnumeration() [2/2]

const OptionValueEnumeration * OptionValue::GetAsEnumeration ( ) const

Definition at line 148 of file OptionValue.cpp.

References eTypeEnum, and GetType().

◆ GetAsFileSpec() [1/2]

OptionValueFileSpec * OptionValue::GetAsFileSpec ( )

◆ GetAsFileSpec() [2/2]

const OptionValueFileSpec * OptionValue::GetAsFileSpec ( ) const

Definition at line 76 of file OptionValue.cpp.

References eTypeFileSpec, and GetType().

◆ GetAsFileSpecList() [1/2]

OptionValueFileSpecList * OptionValue::GetAsFileSpecList ( )

Definition at line 82 of file OptionValue.cpp.

References eTypeFileSpecList, and GetType().

Referenced by GetFileSpecListValue().

◆ GetAsFileSpecList() [2/2]

const OptionValueFileSpecList * OptionValue::GetAsFileSpecList ( ) const

Definition at line 88 of file OptionValue.cpp.

References eTypeFileSpecList, and GetType().

◆ GetAsFormat() [1/2]

OptionValueFormat * OptionValue::GetAsFormat ( )

Definition at line 154 of file OptionValue.cpp.

References eTypeFormat, and GetType().

Referenced by GetFormatValue(), and SetFormatValue().

◆ GetAsFormat() [2/2]

const OptionValueFormat * OptionValue::GetAsFormat ( ) const

Definition at line 160 of file OptionValue.cpp.

References eTypeFormat, and GetType().

◆ GetAsFormatEntity() [1/2]

OptionValueFormatEntity * OptionValue::GetAsFormatEntity ( )

Definition at line 178 of file OptionValue.cpp.

References eTypeFormatEntity, and GetType().

Referenced by GetFormatEntity().

◆ GetAsFormatEntity() [2/2]

const OptionValueFormatEntity * OptionValue::GetAsFormatEntity ( ) const

Definition at line 184 of file OptionValue.cpp.

References eTypeFormatEntity, and GetType().

◆ GetAsLanguage() [1/2]

OptionValueLanguage * OptionValue::GetAsLanguage ( )

Definition at line 166 of file OptionValue.cpp.

References eTypeLanguage, and GetType().

Referenced by GetLanguageValue(), and SetLanguageValue().

◆ GetAsLanguage() [2/2]

const OptionValueLanguage * OptionValue::GetAsLanguage ( ) const

Definition at line 172 of file OptionValue.cpp.

References eTypeLanguage, and GetType().

◆ GetAsPathMappings() [1/2]

OptionValuePathMappings * OptionValue::GetAsPathMappings ( )

Definition at line 190 of file OptionValue.cpp.

References eTypePathMap, and GetType().

◆ GetAsPathMappings() [2/2]

const OptionValuePathMappings * OptionValue::GetAsPathMappings ( ) const

Definition at line 196 of file OptionValue.cpp.

References eTypePathMap, and GetType().

◆ GetAsProperties() [1/2]

OptionValueProperties * OptionValue::GetAsProperties ( )

◆ GetAsProperties() [2/2]

const OptionValueProperties * OptionValue::GetAsProperties ( ) const

Definition at line 208 of file OptionValue.cpp.

References eTypeProperties, and GetType().

◆ GetAsRegex() [1/2]

OptionValueRegex * OptionValue::GetAsRegex ( )

◆ GetAsRegex() [2/2]

const OptionValueRegex * OptionValue::GetAsRegex ( ) const

Definition at line 220 of file OptionValue.cpp.

References eTypeRegex, and GetType().

◆ GetAsSInt64() [1/2]

OptionValueSInt64 * OptionValue::GetAsSInt64 ( )

◆ GetAsSInt64() [2/2]

const OptionValueSInt64 * OptionValue::GetAsSInt64 ( ) const

Definition at line 232 of file OptionValue.cpp.

References eTypeSInt64, and GetType().

◆ GetAsString() [1/2]

OptionValueString * OptionValue::GetAsString ( )

Definition at line 238 of file OptionValue.cpp.

References eTypeString, and GetType().

Referenced by GetStringValue(), and SetStringValue().

◆ GetAsString() [2/2]

const OptionValueString * OptionValue::GetAsString ( ) const

Definition at line 244 of file OptionValue.cpp.

References eTypeString, and GetType().

◆ GetAsUInt64() [1/2]

OptionValueUInt64 * OptionValue::GetAsUInt64 ( )

◆ GetAsUInt64() [2/2]

const OptionValueUInt64 * OptionValue::GetAsUInt64 ( ) const

Definition at line 256 of file OptionValue.cpp.

References eTypeUInt64, and GetType().

◆ GetAsUUID() [1/2]

OptionValueUUID * OptionValue::GetAsUUID ( )

Definition at line 262 of file OptionValue.cpp.

References eTypeUUID, and GetType().

Referenced by GetUUIDValue(), and SetUUIDValue().

◆ GetAsUUID() [2/2]

const OptionValueUUID * OptionValue::GetAsUUID ( ) const

Definition at line 268 of file OptionValue.cpp.

References eTypeUUID, and GetType().

◆ GetBooleanValue()

bool OptionValue::GetBooleanValue ( bool  fail_value = false) const

◆ GetBuiltinTypeAsCString()

const char * OptionValue::GetBuiltinTypeAsCString ( Type  t)
static

◆ GetCharValue()

char OptionValue::GetCharValue ( char  fail_value) const

◆ GetEnumerationValue()

int64_t OptionValue::GetEnumerationValue ( int64_t  fail_value = -1) const

◆ GetFileSpecListValue()

FileSpecList OptionValue::GetFileSpecListValue ( ) const

◆ GetFileSpecValue()

FileSpec OptionValue::GetFileSpecValue ( ) const

◆ GetFormatEntity()

const FormatEntity::Entry * OptionValue::GetFormatEntity ( ) const

◆ GetFormatValue()

lldb::Format OptionValue::GetFormatValue ( lldb::Format  fail_value = lldb::eFormatDefault) const

◆ GetLanguageValue()

lldb::LanguageType OptionValue::GetLanguageValue ( lldb::LanguageType  fail_value = lldb::eLanguageTypeUnknown) const

◆ GetName()

virtual ConstString lldb_private::OptionValue::GetName ( ) const
inlinevirtual

Reimplemented in lldb_private::OptionValueProperties.

Definition at line 123 of file OptionValue.h.

Referenced by DumpQualifiedName().

◆ GetParent()

lldb::OptionValueSP lldb_private::OptionValue::GetParent ( ) const
inline

Definition at line 322 of file OptionValue.h.

References m_parent_wp.

◆ GetRegexValue()

const RegularExpression * OptionValue::GetRegexValue ( ) const

◆ GetSInt64Value()

int64_t OptionValue::GetSInt64Value ( int64_t  fail_value = 0) const

◆ GetStringValue() [1/2]

llvm::StringRef lldb_private::OptionValue::GetStringValue ( ) const
inline

Definition at line 302 of file OptionValue.h.

References GetStringValue().

Referenced by GetStringValue().

◆ GetStringValue() [2/2]

llvm::StringRef OptionValue::GetStringValue ( llvm::StringRef  fail_value) const

◆ GetSubValue()

virtual lldb::OptionValueSP lldb_private::OptionValue::GetSubValue ( const ExecutionContext exe_ctx,
llvm::StringRef  name,
bool  will_modify,
Status error 
) const
inlinevirtual

◆ GetType()

virtual Type lldb_private::OptionValue::GetType ( ) const
pure virtual

◆ GetTypeAsCString()

virtual const char * lldb_private::OptionValue::GetTypeAsCString ( ) const
inlinevirtual

◆ GetTypeAsMask()

uint32_t lldb_private::OptionValue::GetTypeAsMask ( )
inline

Definition at line 129 of file OptionValue.h.

References GetType().

◆ GetUInt64Value() [1/2]

uint64_t OptionValue::GetUInt64Value ( uint64_t  fail_value,
bool *  success_ptr 
)

◆ GetUInt64Value() [2/2]

uint64_t OptionValue::GetUInt64Value ( uint64_t  fail_value = 0) const

◆ GetUUIDValue()

UUID OptionValue::GetUUIDValue ( ) const

◆ IsAggregateValue()

virtual bool lldb_private::OptionValue::IsAggregateValue ( ) const
inlinevirtual

◆ NotifyValueChanged()

void lldb_private::OptionValue::NotifyValueChanged ( )
inline

◆ OptionWasSet()

bool lldb_private::OptionValue::OptionWasSet ( ) const
inline

◆ SetBooleanValue()

bool OptionValue::SetBooleanValue ( bool  new_value)

◆ SetCharValue()

char OptionValue::SetCharValue ( char  new_value)

◆ SetEnumerationValue()

bool OptionValue::SetEnumerationValue ( int64_t  value)

◆ SetFileSpecValue()

bool OptionValue::SetFileSpecValue ( const FileSpec file_spec)

◆ SetFormatValue()

bool OptionValue::SetFormatValue ( lldb::Format  new_value)

◆ SetLanguageValue()

bool OptionValue::SetLanguageValue ( lldb::LanguageType  new_language)

◆ SetOptionWasSet()

void lldb_private::OptionValue::SetOptionWasSet ( )
inline

◆ SetParent()

void lldb_private::OptionValue::SetParent ( const lldb::OptionValueSP &  parent_sp)
inline

Definition at line 318 of file OptionValue.h.

References m_parent_wp.

◆ SetSInt64Value()

bool OptionValue::SetSInt64Value ( int64_t  new_value)

◆ SetStringValue()

bool OptionValue::SetStringValue ( llvm::StringRef  new_value)

◆ SetSubValue()

Status OptionValue::SetSubValue ( const ExecutionContext exe_ctx,
VarSetOperationType  op,
llvm::StringRef  name,
llvm::StringRef  value 
)
virtual

Reimplemented in lldb_private::OptionValueDictionary, and lldb_private::OptionValueProperties.

Definition at line 38 of file OptionValue.cpp.

References error().

◆ SetUInt64Value()

bool OptionValue::SetUInt64Value ( uint64_t  new_value)

◆ SetUUIDValue()

bool OptionValue::SetUUIDValue ( const UUID uuid)

◆ SetValueChangedCallback()

void lldb_private::OptionValue::SetValueChangedCallback ( std::function< void()>  callback)
inline

Definition at line 324 of file OptionValue.h.

References m_callback.

◆ SetValueFromString()

Status OptionValue::SetValueFromString ( llvm::StringRef  value,
VarSetOperationType  op = eVarSetOperationAssign 
)
virtual

Reimplemented in lldb_private::OptionValueArch, lldb_private::OptionValueArray, lldb_private::OptionValueBoolean, lldb_private::OptionValueChar, lldb_private::OptionValueDictionary, lldb_private::OptionValueEnumeration, lldb_private::OptionValueFileColonLine, lldb_private::OptionValueFileSpec, lldb_private::OptionValueFileSpecList, lldb_private::OptionValueFormat, lldb_private::OptionValueFormatEntity, lldb_private::OptionValueLanguage, lldb_private::OptionValuePathMappings, lldb_private::OptionValueProperties, lldb_private::OptionValueRegex, lldb_private::OptionValueSInt64, lldb_private::OptionValueString, lldb_private::OptionValueUInt64, and lldb_private::OptionValueUUID.

Definition at line 579 of file OptionValue.cpp.

References 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, and GetTypeAsCString().

Referenced by lldb_private::OptionValueDictionary::SetArgs(), lldb_private::OptionValueArch::SetValueFromString(), lldb_private::OptionValueBoolean::SetValueFromString(), lldb_private::OptionValueChar::SetValueFromString(), lldb_private::OptionValueEnumeration::SetValueFromString(), lldb_private::OptionValueFileColonLine::SetValueFromString(), lldb_private::OptionValueFileSpec::SetValueFromString(), lldb_private::OptionValueFileSpecList::SetValueFromString(), lldb_private::OptionValueFormat::SetValueFromString(), lldb_private::OptionValueFormatEntity::SetValueFromString(), lldb_private::OptionValueLanguage::SetValueFromString(), lldb_private::OptionValuePathMappings::SetValueFromString(), lldb_private::OptionValueProperties::SetValueFromString(), lldb_private::OptionValueRegex::SetValueFromString(), lldb_private::OptionValueSInt64::SetValueFromString(), lldb_private::OptionValueString::SetValueFromString(), lldb_private::OptionValueUInt64::SetValueFromString(), and lldb_private::OptionValueUUID::SetValueFromString().

◆ ToJSON()

virtual llvm::json::Value lldb_private::OptionValue::ToJSON ( const ExecutionContext exe_ctx)
inlinevirtual

◆ ValueIsTransparent()

virtual bool lldb_private::OptionValue::ValueIsTransparent ( ) const
inlinevirtual

Definition at line 73 of file OptionValue.h.

References eTypeProperties, and GetType().

Referenced by lldb_private::OptionValueProperties::DumpValue().

Member Data Documentation

◆ m_callback

std::function<void()> lldb_private::OptionValue::m_callback
protected

Definition at line 341 of file OptionValue.h.

Referenced by NotifyValueChanged(), and SetValueChangedCallback().

◆ m_parent_wp

lldb::OptionValueWP lldb_private::OptionValue::m_parent_wp
protected

Definition at line 340 of file OptionValue.h.

Referenced by DumpQualifiedName(), GetParent(), and SetParent().

◆ m_value_was_set

bool lldb_private::OptionValue::m_value_was_set = false
protected

Definition at line 342 of file OptionValue.h.

Referenced by lldb_private::OptionValueArch::Clear(), lldb_private::OptionValueArray::Clear(), lldb_private::OptionValueBoolean::Clear(), lldb_private::OptionValueChar::Clear(), lldb_private::OptionValueDictionary::Clear(), lldb_private::OptionValueEnumeration::Clear(), lldb_private::OptionValueFileSpec::Clear(), lldb_private::OptionValueFileSpecList::Clear(), lldb_private::OptionValueFormat::Clear(), lldb_private::OptionValueFormatEntity::Clear(), lldb_private::OptionValueLanguage::Clear(), lldb_private::OptionValuePathMappings::Clear(), lldb_private::OptionValueRegex::Clear(), lldb_private::OptionValueSInt64::Clear(), lldb_private::OptionValueString::Clear(), lldb_private::OptionValueUInt64::Clear(), lldb_private::OptionValueUUID::Clear(), lldb_private::OptionValueString::DumpValue(), OptionWasSet(), lldb_private::OptionValueArray::SetArgs(), lldb_private::OptionValueDictionary::SetArgs(), lldb_private::OptionValueArch::SetCurrentValue(), lldb_private::OptionValueFileSpec::SetCurrentValue(), SetOptionWasSet(), lldb_private::OptionValueArch::SetValueFromString(), lldb_private::OptionValueBoolean::SetValueFromString(), lldb_private::OptionValueChar::SetValueFromString(), lldb_private::OptionValueFileColonLine::SetValueFromString(), lldb_private::OptionValueFileSpec::SetValueFromString(), lldb_private::OptionValueFileSpecList::SetValueFromString(), lldb_private::OptionValueFormat::SetValueFromString(), lldb_private::OptionValueFormatEntity::SetValueFromString(), lldb_private::OptionValueLanguage::SetValueFromString(), lldb_private::OptionValuePathMappings::SetValueFromString(), lldb_private::OptionValueRegex::SetValueFromString(), lldb_private::OptionValueSInt64::SetValueFromString(), lldb_private::OptionValueString::SetValueFromString(), lldb_private::OptionValueUInt64::SetValueFromString(), and lldb_private::OptionValueUUID::SetValueFromString().


The documentation for this class was generated from the following files: