LLDB mainline
lldb_private::Property Class Reference

#include <Property.h>

Public Member Functions

 Property (const PropertyDefinition &definition)
 Property (llvm::StringRef name, llvm::StringRef desc, bool is_global, const lldb::OptionValueSP &value_sp)
llvm::StringRef GetName () const
llvm::StringRef GetDescription () const
const lldb::OptionValueSP & GetValue () const
void SetOptionValue (const lldb::OptionValueSP &value_sp)
bool IsValid () const
bool IsGlobal () const
bool IsDeprecated () const
llvm::StringRef GetDeprecationMessage () const
 What users of this deprecated property should do instead.
bool IsHidden (bool include_deprecated) const
 Whether listings should leave this property out.
void DumpDeprecatedTag (Stream &strm, uint32_t dump_mask) const
 If this property is deprecated, and output produced with dump_mask can be tagged, write the deprecation tag that follows the property's name.
std::string GetTaggedDescription () const
 The description, starting with a deprecation tag if this property is deprecated.
void Dump (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask) const
bool DumpQualifiedName (Stream &strm, std::optional< Stream::HighlightSettings > highlight=std::nullopt) const
void DumpDescription (CommandInterpreter &interpreter, Stream &strm, uint32_t output_width, bool display_qualified_name, bool include_deprecated, std::optional< Stream::HighlightSettings > highlight=std::nullopt) const
void SetValueChangedCallback (std::function< void()> callback)

Protected Attributes

std::string m_name
std::string m_description
lldb::OptionValueSP m_value_sp
bool m_is_global
bool m_is_deprecated = false
const char * m_deprecation_message = nullptr
 Points into the static PropertyDefinition table, or is nullptr.

Detailed Description

Definition at line 45 of file Property.h.

Constructor & Destructor Documentation

◆ Property() [1/2]

◆ Property() [2/2]

Property::Property ( llvm::StringRef name,
llvm::StringRef desc,
bool is_global,
const lldb::OptionValueSP & value_sp )

Definition at line 233 of file Property.cpp.

References m_description, m_is_global, m_name, and m_value_sp.

Member Function Documentation

◆ Dump()

◆ DumpDeprecatedTag()

void Property::DumpDeprecatedTag ( Stream & strm,
uint32_t dump_mask ) const

If this property is deprecated, and output produced with dump_mask can be tagged, write the deprecation tag that follows the property's name.

Definition at line 255 of file Property.cpp.

References lldb_private::OptionValue::eDumpGroupFilter, lldb_private::OptionValue::eDumpOptionCommand, lldb_private::OptionValue::eDumpOptionName, g_deprecated_tag(), and m_is_deprecated.

Referenced by Dump().

◆ DumpDescription()

◆ DumpQualifiedName()

bool Property::DumpQualifiedName ( Stream & strm,
std::optional< Stream::HighlightSettings > highlight = std::nullopt ) const

◆ GetDeprecationMessage()

llvm::StringRef lldb_private::Property::GetDeprecationMessage ( ) const
inline

What users of this deprecated property should do instead.

Definition at line 68 of file Property.h.

References m_deprecation_message.

◆ GetDescription()

llvm::StringRef lldb_private::Property::GetDescription ( ) const
inline

Definition at line 53 of file Property.h.

References m_description.

Referenced by Dump(), and DumpDescription().

◆ GetName()

llvm::StringRef lldb_private::Property::GetName ( ) const
inline

Definition at line 52 of file Property.h.

References m_name.

◆ GetTaggedDescription()

std::string Property::GetTaggedDescription ( ) const

The description, starting with a deprecation tag if this property is deprecated.

Definition at line 265 of file Property.cpp.

References g_deprecated_tag(), m_description, and m_is_deprecated.

Referenced by DumpDescription().

◆ GetValue()

◆ IsDeprecated()

bool lldb_private::Property::IsDeprecated ( ) const
inline

Definition at line 65 of file Property.h.

References m_is_deprecated.

◆ IsGlobal()

bool lldb_private::Property::IsGlobal ( ) const
inline

Definition at line 63 of file Property.h.

References m_is_global.

◆ IsHidden()

bool lldb_private::Property::IsHidden ( bool include_deprecated) const
inline

Whether listings should leave this property out.

Deprecated properties are only listed when include_deprecated is set.

Definition at line 74 of file Property.h.

References m_is_deprecated.

◆ IsValid()

bool lldb_private::Property::IsValid ( ) const
inline

Definition at line 61 of file Property.h.

References m_value_sp.

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

◆ SetOptionValue()

void lldb_private::Property::SetOptionValue ( const lldb::OptionValueSP & value_sp)
inline

Definition at line 57 of file Property.h.

References m_value_sp.

◆ SetValueChangedCallback()

void Property::SetValueChangedCallback ( std::function< void()> callback)

Definition at line 342 of file Property.cpp.

References m_value_sp.

Member Data Documentation

◆ m_deprecation_message

const char* lldb_private::Property::m_deprecation_message = nullptr
protected

Points into the static PropertyDefinition table, or is nullptr.

Definition at line 107 of file Property.h.

Referenced by GetDeprecationMessage(), and Property().

◆ m_description

std::string lldb_private::Property::m_description
protected

Definition at line 102 of file Property.h.

Referenced by GetDescription(), GetTaggedDescription(), Property(), and Property().

◆ m_is_deprecated

bool lldb_private::Property::m_is_deprecated = false
protected

◆ m_is_global

bool lldb_private::Property::m_is_global
protected

Definition at line 104 of file Property.h.

Referenced by IsGlobal(), Property(), and Property().

◆ m_name

std::string lldb_private::Property::m_name
protected

Definition at line 101 of file Property.h.

Referenced by Dump(), DumpDescription(), DumpQualifiedName(), GetName(), Property(), and Property().

◆ m_value_sp

lldb::OptionValueSP lldb_private::Property::m_value_sp
protected

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