summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/lldb/source/DataFormatters/FormatManager.cpp
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-09-06 15:21:47 +0000
committerdim <dim@FreeBSD.org>2015-09-06 15:21:47 +0000
commiteaea1142467bd061be671b7775195ea69422a53f (patch)
tree6dbe733cbb748d293bbaa2b7616e76faff7118d5 /contrib/llvm/tools/lldb/source/DataFormatters/FormatManager.cpp
parentee8d011a70fa14b1e123f58d0139125f5e36173e (diff)
parent80b639cd40df427b9e325318efeec2d885a65f62 (diff)
downloadFreeBSD-src-eaea1142467bd061be671b7775195ea69422a53f.zip
FreeBSD-src-eaea1142467bd061be671b7775195ea69422a53f.tar.gz
Update lldb to upstream trunk r242221.
Diffstat (limited to 'contrib/llvm/tools/lldb/source/DataFormatters/FormatManager.cpp')
-rw-r--r--contrib/llvm/tools/lldb/source/DataFormatters/FormatManager.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/llvm/tools/lldb/source/DataFormatters/FormatManager.cpp b/contrib/llvm/tools/lldb/source/DataFormatters/FormatManager.cpp
index 47456ba..4e0fffb 100644
--- a/contrib/llvm/tools/lldb/source/DataFormatters/FormatManager.cpp
+++ b/contrib/llvm/tools/lldb/source/DataFormatters/FormatManager.cpp
@@ -1608,6 +1608,26 @@ FormatManager::LoadHardcodedFormatters()
}
return nullptr;
});
+ m_hardcoded_summaries.push_back(
+ [](lldb_private::ValueObject& valobj,
+ lldb::DynamicValueType,
+ FormatManager& fmt_mgr) -> TypeSummaryImpl::SharedPointer {
+ static CXXFunctionSummaryFormat::SharedPointer formatter_sp(new CXXFunctionSummaryFormat(TypeSummaryImpl::Flags()
+ .SetCascades(true)
+ .SetDontShowChildren(true)
+ .SetHideItemNames(true)
+ .SetShowMembersOneLiner(true)
+ .SetSkipPointers(true)
+ .SetSkipReferences(false),
+ lldb_private::formatters::VectorTypeSummaryProvider,
+ "vector_type pointer summary provider"));
+ if (valobj.GetClangType().IsVectorType(nullptr, nullptr))
+ {
+ if (fmt_mgr.GetCategory(fmt_mgr.m_vectortypes_category_name)->IsEnabled())
+ return formatter_sp;
+ }
+ return nullptr;
+ });
}
{
// insert code to load synthetics here
OpenPOWER on IntegriCloud