22 : m_category_sp(), m_hardcoded_formats(), m_hardcoded_summaries(),
23 m_hardcoded_synthetics(), m_format_cache(), m_enabled(false) {
33template<
typename ImplSP>
44 return (
bool)retval_sp;
51 (!retval_sp || !retval_sp->NonCacheable())) {
73auto &LanguageCategory::GetHardcodedFinder<lldb::TypeFormatImplSP>() {
74 return m_hardcoded_formats;
78auto &LanguageCategory::GetHardcodedFinder<lldb::TypeSummaryImplSP>() {
79 return m_hardcoded_summaries;
83auto &LanguageCategory::GetHardcodedFinder<lldb::SyntheticChildrenSP>() {
84 return m_hardcoded_synthetics;
89template <
typename ImplSP>
99 for (
auto &candidate : GetHardcodedFinder<ImplSP>()) {
100 if (
auto result = candidate(valobj, use_dynamic, fmt_mgr)) {
105 return (
bool)retval_sp;
110template bool LanguageCategory::GetHardcoded<lldb::TypeFormatImplSP>(
112template bool LanguageCategory::GetHardcoded<lldb::TypeSummaryImplSP>(
114template bool LanguageCategory::GetHardcoded<lldb::SyntheticChildrenSP>(
HardcodedFormatters::HardcodedSummaryFinder m_hardcoded_summaries
FormatCache & GetFormatCache()
lldb::TypeCategoryImplSP GetCategory() const
HardcodedFormatters::HardcodedFormatFinder m_hardcoded_formats
HardcodedFormatters::HardcodedSyntheticFinder m_hardcoded_synthetics
LanguageCategory(lldb::LanguageType lang_type)
bool Get(FormattersMatchData &match_data, ImplSP &format_sp)
lldb::TypeCategoryImplSP m_category_sp
lldb_private::FormatCache m_format_cache
bool GetHardcoded(FormatManager &fmt_mgr, FormattersMatchData &match_data, ImplSP &format_sp)
static Language * FindPlugin(lldb::LanguageType language)
static const Position Default
lldb::LanguageType GetObjectRuntimeLanguage()
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::TypeSummaryImpl > TypeSummaryImplSP
std::shared_ptr< lldb_private::TypeFormatImpl > TypeFormatImplSP
LanguageType
Programming language type.
std::shared_ptr< lldb_private::SyntheticChildren > SyntheticChildrenSP
std::shared_ptr< lldb_private::TypeCategoryImpl > TypeCategoryImplSP