[Lldb-commits] [lldb] r253111 - Add a few useful accessors on the data formatters containers
Enrico Granata via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 13 16:58:37 PST 2015
Author: enrico
Date: Fri Nov 13 18:58:37 2015
New Revision: 253111
URL: http://llvm.org/viewvc/llvm-project?rev=253111&view=rev
Log:
Add a few useful accessors on the data formatters containers
Modified:
lldb/trunk/include/lldb/DataFormatters/TypeCategory.h
Modified: lldb/trunk/include/lldb/DataFormatters/TypeCategory.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/DataFormatters/TypeCategory.h?rev=253111&r1=253110&r2=253111&view=diff
==============================================================================
--- lldb/trunk/include/lldb/DataFormatters/TypeCategory.h (original)
+++ lldb/trunk/include/lldb/DataFormatters/TypeCategory.h Fri Nov 13 18:58:37 2015
@@ -64,6 +64,20 @@ namespace lldb_private {
return m_regex_sp;
}
+ void
+ LoopThrough (typename ExactMatchContainer::CallbackType exact_callback,
+ typename RegexMatchContainer::CallbackType regex_callback)
+ {
+ GetExactMatch()->LoopThrough(exact_callback);
+ GetRegexMatch()->LoopThrough(regex_callback);
+ }
+
+ uint32_t
+ GetCount ()
+ {
+ return GetExactMatch()->GetCount() + GetRegexMatch()->GetCount();
+ }
+
private:
ExactMatchContainerSP m_exact_sp;
RegexMatchContainerSP m_regex_sp;
@@ -117,6 +131,12 @@ namespace lldb_private {
return m_format_cont.GetRegexMatch();
}
+ FormatContainer&
+ GetFormatContainer ()
+ {
+ return m_format_cont;
+ }
+
SummaryContainerSP
GetTypeSummariesContainer ()
{
@@ -129,6 +149,12 @@ namespace lldb_private {
return m_summary_cont.GetRegexMatch();
}
+ SummaryContainer&
+ GetSummaryContainer ()
+ {
+ return m_summary_cont;
+ }
+
FilterContainerSP
GetTypeFiltersContainer ()
{
@@ -140,6 +166,12 @@ namespace lldb_private {
{
return m_filter_cont.GetRegexMatch();
}
+
+ FilterContainer&
+ GetFilterContainer ()
+ {
+ return m_filter_cont;
+ }
FormatContainer::MapValueType
GetFormatForType (lldb::TypeNameSpecifierImplSP type_sp);
@@ -189,6 +221,12 @@ namespace lldb_private {
return m_synth_cont.GetRegexMatch();
}
+ SynthContainer&
+ GetSyntheticsContainer ()
+ {
+ return m_synth_cont;
+ }
+
SynthContainer::MapValueType
GetSyntheticAtIndex (size_t index);
More information about the lldb-commits
mailing list