LLDB
mainline
|
#include <TypeCategory.h>
Classes | |
class | ForEachCallbacks |
Public Types | |
typedef uint16_t | FormatCategoryItems |
typedef FormatContainer::ExactMatchContainerSP | FormatContainerSP |
typedef FormatContainer::RegexMatchContainerSP | RegexFormatContainerSP |
typedef SummaryContainer::ExactMatchContainerSP | SummaryContainerSP |
typedef SummaryContainer::RegexMatchContainerSP | RegexSummaryContainerSP |
typedef FilterContainer::ExactMatchContainerSP | FilterContainerSP |
typedef FilterContainer::RegexMatchContainerSP | RegexFilterContainerSP |
typedef SynthContainer::ExactMatchContainerSP | SynthContainerSP |
typedef SynthContainer::RegexMatchContainerSP | RegexSynthContainerSP |
typedef std::shared_ptr< TypeCategoryImpl > | SharedPointer |
Static Public Attributes | |
static const uint16_t | ALL_ITEM_TYPES = UINT16_MAX |
Private Types | |
typedef FormatterContainerPair< TypeFormatImpl > | FormatContainer |
typedef FormatterContainerPair< TypeSummaryImpl > | SummaryContainer |
typedef FormatterContainerPair< TypeFilterImpl > | FilterContainer |
typedef FormatterContainerPair< SyntheticChildren > | SynthContainer |
Private Member Functions | |
void | Enable (bool value, uint32_t position) |
void | Disable () |
bool | IsApplicable (lldb::LanguageType lang) |
uint32_t | GetLastEnabledPosition () |
void | SetEnabledPosition (uint32_t p) |
Private Attributes | |
FormatContainer | m_format_cont |
SummaryContainer | m_summary_cont |
FilterContainer | m_filter_cont |
SynthContainer | m_synth_cont |
bool | m_enabled |
IFormatChangeListener * | m_change_listener |
std::recursive_mutex | m_mutex |
ConstString | m_name |
std::vector< lldb::LanguageType > | m_languages |
uint32_t | m_enabled_position |
Friends | |
class | FormatManager |
class | LanguageCategory |
class | TypeCategoryMap |
class | FormattersContainer< TypeFormatImpl > |
class | FormattersContainer< TypeSummaryImpl > |
class | FormattersContainer< TypeFilterImpl > |
class | FormattersContainer< ScriptedSyntheticChildren > |
Definition at line 63 of file TypeCategory.h.
|
private |
Definition at line 67 of file TypeCategory.h.
Definition at line 80 of file TypeCategory.h.
Definition at line 71 of file TypeCategory.h.
|
private |
Definition at line 65 of file TypeCategory.h.
Definition at line 74 of file TypeCategory.h.
typedef FilterContainer::RegexMatchContainerSP lldb_private::TypeCategoryImpl::RegexFilterContainerSP |
Definition at line 81 of file TypeCategory.h.
typedef FormatContainer::RegexMatchContainerSP lldb_private::TypeCategoryImpl::RegexFormatContainerSP |
Definition at line 75 of file TypeCategory.h.
typedef SummaryContainer::RegexMatchContainerSP lldb_private::TypeCategoryImpl::RegexSummaryContainerSP |
Definition at line 78 of file TypeCategory.h.
Definition at line 84 of file TypeCategory.h.
typedef std::shared_ptr<TypeCategoryImpl> lldb_private::TypeCategoryImpl::SharedPointer |
Definition at line 316 of file TypeCategory.h.
|
private |
Definition at line 66 of file TypeCategory.h.
Definition at line 77 of file TypeCategory.h.
|
private |
Definition at line 68 of file TypeCategory.h.
Definition at line 83 of file TypeCategory.h.
TypeCategoryImpl::TypeCategoryImpl | ( | IFormatChangeListener * | clist, |
ConstString | name | ||
) |
Definition at line 16 of file TypeCategory.cpp.
void TypeCategoryImpl::AddLanguage | ( | lldb::LanguageType | lang | ) |
Definition at line 81 of file TypeCategory.cpp.
References m_languages.
bool TypeCategoryImpl::AnyMatches | ( | ConstString | type_name, |
FormatCategoryItems | items = ALL_ITEM_TYPES , |
||
bool | only_enabled = true , |
||
const char ** | matching_category = nullptr , |
||
FormatCategoryItems * | matching_type = nullptr |
||
) |
Definition at line 224 of file TypeCategory.cpp.
References lldb_private::eFormatCategoryItemFilter, lldb_private::eFormatCategoryItemRegexFilter, lldb_private::eFormatCategoryItemRegexSummary, lldb_private::eFormatCategoryItemRegexSynth, lldb_private::eFormatCategoryItemRegexValue, lldb_private::eFormatCategoryItemSummary, lldb_private::eFormatCategoryItemSynth, lldb_private::eFormatCategoryItemValue, Get(), lldb_private::ConstString::GetCString(), GetRegexTypeFiltersContainer(), GetRegexTypeFormatsContainer(), GetRegexTypeSummariesContainer(), GetRegexTypeSyntheticsContainer(), GetTypeFiltersContainer(), GetTypeFormatsContainer(), GetTypeSummariesContainer(), GetTypeSyntheticsContainer(), IsEnabled(), and m_name.
void TypeCategoryImpl::Clear | ( | FormatCategoryItems | items = ALL_ITEM_TYPES | ) |
Definition at line 144 of file TypeCategory.cpp.
References lldb_private::eFormatCategoryItemFilter, lldb_private::eFormatCategoryItemRegexFilter, lldb_private::eFormatCategoryItemRegexSummary, lldb_private::eFormatCategoryItemRegexSynth, lldb_private::eFormatCategoryItemRegexValue, lldb_private::eFormatCategoryItemSummary, lldb_private::eFormatCategoryItemSynth, lldb_private::eFormatCategoryItemValue, GetRegexTypeFiltersContainer(), GetRegexTypeFormatsContainer(), GetRegexTypeSummariesContainer(), GetRegexTypeSyntheticsContainer(), GetTypeFiltersContainer(), GetTypeFormatsContainer(), GetTypeSummariesContainer(), and GetTypeSyntheticsContainer().
bool TypeCategoryImpl::Delete | ( | ConstString | name, |
FormatCategoryItems | items = ALL_ITEM_TYPES |
||
) |
Definition at line 168 of file TypeCategory.cpp.
References lldb_private::eFormatCategoryItemFilter, lldb_private::eFormatCategoryItemRegexFilter, lldb_private::eFormatCategoryItemRegexSummary, lldb_private::eFormatCategoryItemRegexSynth, lldb_private::eFormatCategoryItemRegexValue, lldb_private::eFormatCategoryItemSummary, lldb_private::eFormatCategoryItemSynth, lldb_private::eFormatCategoryItemValue, GetRegexTypeFiltersContainer(), GetRegexTypeFormatsContainer(), GetRegexTypeSummariesContainer(), GetRegexTypeSyntheticsContainer(), GetTypeFiltersContainer(), GetTypeFormatsContainer(), GetTypeSummariesContainer(), and GetTypeSyntheticsContainer().
|
inlineprivate |
Definition at line 338 of file TypeCategory.h.
References Enable(), and UINT32_MAX.
|
private |
Definition at line 455 of file TypeCategory.cpp.
References lldb_private::IFormatChangeListener::Changed(), m_change_listener, m_enabled, m_enabled_position, and m_mutex.
Referenced by Disable().
|
inline |
Definition at line 189 of file TypeCategory.h.
References GetRegexTypeFiltersContainer(), GetRegexTypeFormatsContainer(), GetRegexTypeSummariesContainer(), GetRegexTypeSyntheticsContainer(), GetTypeFiltersContainer(), GetTypeFormatsContainer(), GetTypeSummariesContainer(), and GetTypeSyntheticsContainer().
bool TypeCategoryImpl::Get | ( | lldb::LanguageType | lang, |
const FormattersMatchVector & | candidates, | ||
lldb::SyntheticChildrenSP & | entry | ||
) |
Definition at line 107 of file TypeCategory.cpp.
References Get(), GetRegexTypeFiltersContainer(), GetRegexTypeSyntheticsContainer(), GetTypeFiltersContainer(), GetTypeSyntheticsContainer(), IsApplicable(), and IsEnabled().
bool TypeCategoryImpl::Get | ( | lldb::LanguageType | lang, |
const FormattersMatchVector & | candidates, | ||
lldb::TypeFormatImplSP & | entry | ||
) |
Definition at line 85 of file TypeCategory.cpp.
References GetRegexTypeFormatsContainer(), GetTypeFormatsContainer(), IsApplicable(), and IsEnabled().
Referenced by AnyMatches(), and Get().
bool TypeCategoryImpl::Get | ( | lldb::LanguageType | lang, |
const FormattersMatchVector & | candidates, | ||
lldb::TypeSummaryImplSP & | entry | ||
) |
Definition at line 96 of file TypeCategory.cpp.
References Get(), GetRegexTypeSummariesContainer(), GetTypeSummariesContainer(), IsApplicable(), and IsEnabled().
uint32_t TypeCategoryImpl::GetCount | ( | FormatCategoryItems | items = ALL_ITEM_TYPES | ) |
Definition at line 196 of file TypeCategory.cpp.
References lldb_private::eFormatCategoryItemFilter, lldb_private::eFormatCategoryItemRegexFilter, lldb_private::eFormatCategoryItemRegexSummary, lldb_private::eFormatCategoryItemRegexSynth, lldb_private::eFormatCategoryItemRegexValue, lldb_private::eFormatCategoryItemSummary, lldb_private::eFormatCategoryItemSynth, lldb_private::eFormatCategoryItemValue, GetRegexTypeFiltersContainer(), GetRegexTypeFormatsContainer(), GetRegexTypeSummariesContainer(), GetRegexTypeSyntheticsContainer(), GetTypeFiltersContainer(), GetTypeFormatsContainer(), GetTypeSummariesContainer(), and GetTypeSyntheticsContainer().
Referenced by GetFilterAtIndex(), GetFormatAtIndex(), GetSummaryAtIndex(), GetSyntheticAtIndex(), GetTypeNameSpecifierForFilterAtIndex(), GetTypeNameSpecifierForFormatAtIndex(), GetTypeNameSpecifierForSummaryAtIndex(), and GetTypeNameSpecifierForSyntheticAtIndex().
std::string TypeCategoryImpl::GetDescription | ( | ) |
Definition at line 463 of file TypeCategory.cpp.
References lldb::eLanguageTypeUnknown, GetLanguageAtIndex(), GetName(), lldb_private::Language::GetNameForLanguageType(), GetNumLanguages(), lldb_private::StreamString::GetString(), IsEnabled(), lldb_private::Stream::Printf(), lldb_private::Stream::PutChar(), lldb_private::Stream::PutCString(), and string().
|
inline |
Definition at line 278 of file TypeCategory.h.
References m_enabled, m_enabled_position, and UINT32_MAX.
TypeCategoryImpl::FilterContainer::MapValueType TypeCategoryImpl::GetFilterAtIndex | ( | size_t | index | ) |
Definition at line 411 of file TypeCategory.cpp.
References GetCount(), GetRegexTypeFiltersContainer(), and GetTypeFiltersContainer().
|
inline |
Definition at line 232 of file TypeCategory.h.
References m_filter_cont.
TypeCategoryImpl::FilterContainer::MapValueType TypeCategoryImpl::GetFilterForType | ( | lldb::TypeNameSpecifierImplSP | type_sp | ) |
Definition at line 352 of file TypeCategory.cpp.
References GetRegexTypeFiltersContainer(), and GetTypeFiltersContainer().
TypeCategoryImpl::FormatContainer::MapValueType TypeCategoryImpl::GetFormatAtIndex | ( | size_t | index | ) |
Definition at line 393 of file TypeCategory.cpp.
References GetCount(), GetRegexTypeFormatsContainer(), and GetTypeFormatsContainer().
|
inline |
Definition at line 212 of file TypeCategory.h.
References m_format_cont.
TypeCategoryImpl::FormatContainer::MapValueType TypeCategoryImpl::GetFormatForType | ( | lldb::TypeNameSpecifierImplSP | type_sp | ) |
Definition at line 320 of file TypeCategory.cpp.
References GetRegexTypeFormatsContainer(), and GetTypeFormatsContainer().
lldb::LanguageType TypeCategoryImpl::GetLanguageAtIndex | ( | size_t | idx | ) |
Definition at line 75 of file TypeCategory.cpp.
References lldb::eLanguageTypeUnknown, and m_languages.
Referenced by GetDescription(), and IsApplicable().
|
inlineprivate |
Definition at line 342 of file TypeCategory.h.
References m_enabled_position.
|
inline |
Definition at line 300 of file TypeCategory.h.
References lldb_private::ConstString::GetCString(), and m_name.
Referenced by GetDescription().
size_t TypeCategoryImpl::GetNumLanguages | ( | ) |
Definition at line 69 of file TypeCategory.cpp.
References m_languages.
Referenced by GetDescription(), and IsApplicable().
|
inline |
Definition at line 228 of file TypeCategory.h.
References lldb_private::FormatterContainerPair< FormatterImpl >::GetRegexMatch(), and m_filter_cont.
Referenced by AnyMatches(), Clear(), Delete(), ForEach(), Get(), GetCount(), GetFilterAtIndex(), GetFilterForType(), and GetTypeNameSpecifierForFilterAtIndex().
|
inline |
Definition at line 208 of file TypeCategory.h.
References lldb_private::FormatterContainerPair< FormatterImpl >::GetRegexMatch(), and m_format_cont.
Referenced by AnyMatches(), Clear(), Delete(), ForEach(), Get(), GetCount(), GetFormatAtIndex(), GetFormatForType(), and GetTypeNameSpecifierForFormatAtIndex().
|
inline |
Definition at line 218 of file TypeCategory.h.
References lldb_private::FormatterContainerPair< FormatterImpl >::GetRegexMatch(), and m_summary_cont.
Referenced by AnyMatches(), Clear(), Delete(), ForEach(), Get(), GetCount(), GetSummaryAtIndex(), GetSummaryForType(), and GetTypeNameSpecifierForSummaryAtIndex().
|
inline |
Definition at line 265 of file TypeCategory.h.
References lldb_private::FormatterContainerPair< FormatterImpl >::GetRegexMatch(), and m_synth_cont.
Referenced by AnyMatches(), Clear(), Delete(), ForEach(), Get(), GetCount(), GetSyntheticAtIndex(), GetSyntheticForType(), and GetTypeNameSpecifierForSyntheticAtIndex().
TypeCategoryImpl::SummaryContainer::MapValueType TypeCategoryImpl::GetSummaryAtIndex | ( | size_t | index | ) |
Definition at line 402 of file TypeCategory.cpp.
References GetCount(), GetRegexTypeSummariesContainer(), and GetTypeSummariesContainer().
|
inline |
Definition at line 222 of file TypeCategory.h.
References m_summary_cont.
TypeCategoryImpl::SummaryContainer::MapValueType TypeCategoryImpl::GetSummaryForType | ( | lldb::TypeNameSpecifierImplSP | type_sp | ) |
Definition at line 336 of file TypeCategory.cpp.
References GetRegexTypeSummariesContainer(), and GetTypeSummariesContainer().
TypeCategoryImpl::SynthContainer::MapValueType TypeCategoryImpl::GetSyntheticAtIndex | ( | size_t | index | ) |
Definition at line 438 of file TypeCategory.cpp.
References GetCount(), GetRegexTypeSyntheticsContainer(), and GetTypeSyntheticsContainer().
TypeCategoryImpl::SynthContainer::MapValueType TypeCategoryImpl::GetSyntheticForType | ( | lldb::TypeNameSpecifierImplSP | type_sp | ) |
Definition at line 368 of file TypeCategory.cpp.
References GetRegexTypeSyntheticsContainer(), and GetTypeSyntheticsContainer().
|
inline |
Definition at line 269 of file TypeCategory.h.
References m_synth_cont.
|
inline |
Definition at line 224 of file TypeCategory.h.
References lldb_private::FormatterContainerPair< FormatterImpl >::GetExactMatch(), and m_filter_cont.
Referenced by AnyMatches(), Clear(), Delete(), ForEach(), Get(), GetCount(), GetFilterAtIndex(), GetFilterForType(), and GetTypeNameSpecifierForFilterAtIndex().
|
inline |
Definition at line 204 of file TypeCategory.h.
References lldb_private::FormatterContainerPair< FormatterImpl >::GetExactMatch(), and m_format_cont.
Referenced by AnyMatches(), Clear(), Delete(), ForEach(), Get(), GetCount(), GetFormatAtIndex(), GetFormatForType(), and GetTypeNameSpecifierForFormatAtIndex().
lldb::TypeNameSpecifierImplSP TypeCategoryImpl::GetTypeNameSpecifierForFilterAtIndex | ( | size_t | index | ) |
Definition at line 429 of file TypeCategory.cpp.
References GetCount(), GetRegexTypeFiltersContainer(), and GetTypeFiltersContainer().
lldb::TypeNameSpecifierImplSP TypeCategoryImpl::GetTypeNameSpecifierForFormatAtIndex | ( | size_t | index | ) |
Definition at line 420 of file TypeCategory.cpp.
References GetCount(), GetRegexTypeFormatsContainer(), and GetTypeFormatsContainer().
lldb::TypeNameSpecifierImplSP TypeCategoryImpl::GetTypeNameSpecifierForSummaryAtIndex | ( | size_t | index | ) |
Definition at line 384 of file TypeCategory.cpp.
References GetCount(), GetRegexTypeSummariesContainer(), and GetTypeSummariesContainer().
lldb::TypeNameSpecifierImplSP TypeCategoryImpl::GetTypeNameSpecifierForSyntheticAtIndex | ( | size_t | index | ) |
Definition at line 447 of file TypeCategory.cpp.
References GetCount(), GetRegexTypeSyntheticsContainer(), and GetTypeSyntheticsContainer().
|
inline |
Definition at line 214 of file TypeCategory.h.
References lldb_private::FormatterContainerPair< FormatterImpl >::GetExactMatch(), and m_summary_cont.
Referenced by AnyMatches(), Clear(), Delete(), ForEach(), Get(), GetCount(), GetSummaryAtIndex(), GetSummaryForType(), and GetTypeNameSpecifierForSummaryAtIndex().
|
inline |
Definition at line 261 of file TypeCategory.h.
References lldb_private::FormatterContainerPair< FormatterImpl >::GetExactMatch(), and m_synth_cont.
Referenced by AnyMatches(), Clear(), Delete(), ForEach(), Get(), GetCount(), GetSyntheticAtIndex(), GetSyntheticForType(), and GetTypeNameSpecifierForSyntheticAtIndex().
|
private |
Definition at line 60 of file TypeCategory.cpp.
References GetLanguageAtIndex(), and GetNumLanguages().
Referenced by Get().
|
inline |
Definition at line 276 of file TypeCategory.h.
References m_enabled.
Referenced by AnyMatches(), Get(), and GetDescription().
|
inlineprivate |
Definition at line 344 of file TypeCategory.h.
References m_enabled_position.
|
friend |
Definition at line 346 of file TypeCategory.h.
|
friend |
Definition at line 356 of file TypeCategory.h.
|
friend |
Definition at line 354 of file TypeCategory.h.
|
friend |
Definition at line 350 of file TypeCategory.h.
|
friend |
Definition at line 352 of file TypeCategory.h.
|
friend |
Definition at line 347 of file TypeCategory.h.
|
friend |
Definition at line 348 of file TypeCategory.h.
|
static |
Definition at line 72 of file TypeCategory.h.
|
private |
Definition at line 326 of file TypeCategory.h.
Referenced by Enable().
|
private |
Definition at line 324 of file TypeCategory.h.
Referenced by Enable(), GetEnabledPosition(), and IsEnabled().
|
private |
Definition at line 334 of file TypeCategory.h.
Referenced by Enable(), GetEnabledPosition(), GetLastEnabledPosition(), and SetEnabledPosition().
|
private |
Definition at line 321 of file TypeCategory.h.
Referenced by GetFilterContainer(), GetRegexTypeFiltersContainer(), and GetTypeFiltersContainer().
|
private |
Definition at line 319 of file TypeCategory.h.
Referenced by GetFormatContainer(), GetRegexTypeFormatsContainer(), and GetTypeFormatsContainer().
|
private |
Definition at line 332 of file TypeCategory.h.
Referenced by AddLanguage(), GetLanguageAtIndex(), and GetNumLanguages().
|
private |
Definition at line 328 of file TypeCategory.h.
Referenced by Enable().
|
private |
Definition at line 330 of file TypeCategory.h.
Referenced by AnyMatches(), and GetName().
|
private |
Definition at line 320 of file TypeCategory.h.
Referenced by GetRegexTypeSummariesContainer(), GetSummaryContainer(), and GetTypeSummariesContainer().
|
private |
Definition at line 322 of file TypeCategory.h.
Referenced by GetRegexTypeSyntheticsContainer(), GetSyntheticsContainer(), and GetTypeSyntheticsContainer().