|
LLDB mainline
|
#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. | |
Definition at line 45 of file Property.h.
| Property::Property | ( | const PropertyDefinition & | definition | ) |
Definition at line 22 of file Property.cpp.
References lldb_private::OptionValue::ConvertTypeToMask(), lldb_private::PropertyDefinition::default_uint_value, lldb_private::PropertyDefinition::enum_values, lldb_private::OptionValue::eTypeDictionary, lldb_private::OptionValue::eTypeEnum, m_deprecation_message, m_description, m_is_deprecated, m_is_global, m_name, m_value_sp, and lldb_private::PropertyDefinition::type.
| 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.
| void Property::Dump | ( | const ExecutionContext * | exe_ctx, |
| Stream & | strm, | ||
| uint32_t | dump_mask ) const |
Definition at line 271 of file Property.cpp.
References DumpDeprecatedTag(), DumpQualifiedName(), lldb_private::OptionValue::eDumpGroupFilter, lldb_private::OptionValue::eDumpOptionCommand, lldb_private::OptionValue::eDumpOptionDescription, lldb_private::OptionValue::eDumpOptionName, lldb_private::Stream::EOL(), GetDescription(), m_name, m_value_sp, and lldb_private::Stream::PutChar().
| 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().
| void Property::DumpDescription | ( | CommandInterpreter & | interpreter, |
| Stream & | strm, | ||
| uint32_t | output_width, | ||
| bool | display_qualified_name, | ||
| bool | include_deprecated, | ||
| std::optional< Stream::HighlightSettings > | highlight = std::nullopt ) const |
Definition at line 302 of file Property.cpp.
References lldb_private::OptionValueProperties::DumpAllDescriptions(), DumpQualifiedName(), lldb_private::Stream::EOL(), lldb_private::StreamString::GetData(), GetDescription(), lldb_private::StreamString::GetString(), GetTaggedDescription(), m_is_deprecated, m_name, m_value_sp, lldb_private::CommandInterpreter::OutputFormattedHelpText(), and lldb_private::Stream::Printf().
| bool Property::DumpQualifiedName | ( | Stream & | strm, |
| std::optional< Stream::HighlightSettings > | highlight = std::nullopt ) const |
Definition at line 238 of file Property.cpp.
References m_name, m_value_sp, lldb_private::Stream::PutChar(), and lldb_private::Stream::PutCStringColorHighlighted().
Referenced by Dump(), and DumpDescription().
|
inline |
What users of this deprecated property should do instead.
Definition at line 68 of file Property.h.
References m_deprecation_message.
|
inline |
Definition at line 53 of file Property.h.
References m_description.
Referenced by Dump(), and DumpDescription().
|
inline |
Definition at line 52 of file Property.h.
References m_name.
| 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().
|
inline |
Definition at line 55 of file Property.h.
References m_value_sp.
Referenced by lldb_private::TargetProperties::GetExperimentalPropertyValue(), lldb_private::OptionValueProperties::GetPropertyValueAtIndex(), lldb_private::TargetProperties::GetUseDILForCreatingValues(), lldb_private::OptionValueProperties::GetValueForKey(), and lldb_private::TargetProperties::SetUseDILForCreatingValues().
|
inline |
Definition at line 65 of file Property.h.
References m_is_deprecated.
|
inline |
Definition at line 63 of file Property.h.
References m_is_global.
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.
|
inline |
Definition at line 61 of file Property.h.
References m_value_sp.
Referenced by lldb_private::OptionValueProperties::Initialize().
|
inline |
Definition at line 57 of file Property.h.
References m_value_sp.
| void Property::SetValueChangedCallback | ( | std::function< void()> | callback | ) |
Definition at line 342 of file Property.cpp.
References m_value_sp.
|
protected |
Points into the static PropertyDefinition table, or is nullptr.
Definition at line 107 of file Property.h.
Referenced by GetDeprecationMessage(), and Property().
|
protected |
Definition at line 102 of file Property.h.
Referenced by GetDescription(), GetTaggedDescription(), Property(), and Property().
|
protected |
Definition at line 105 of file Property.h.
Referenced by DumpDeprecatedTag(), DumpDescription(), GetTaggedDescription(), IsDeprecated(), IsHidden(), and Property().
|
protected |
Definition at line 104 of file Property.h.
Referenced by IsGlobal(), Property(), and Property().
|
protected |
Definition at line 101 of file Property.h.
Referenced by Dump(), DumpDescription(), DumpQualifiedName(), GetName(), Property(), and Property().
|
protected |
Definition at line 103 of file Property.h.
Referenced by Dump(), DumpDescription(), DumpQualifiedName(), GetValue(), IsValid(), Property(), Property(), SetOptionValue(), and SetValueChangedCallback().