Reapply r253423 and r253424 (which cleanup the data formatters iteration model, as well as the type X list commands), along with a change by Zachary Turner to bypass a MSVC bug with SFINAE

llvm-svn: 253493
This commit is contained in:
Enrico Granata
2015-11-18 19:42:44 +00:00
parent e7891d033e
commit 3de08c5f0c
14 changed files with 231 additions and 917 deletions

View File

@@ -225,12 +225,6 @@ DataVisualization::Categories::DisableStar ()
GetFormatManager().DisableAllCategories();
}
void
DataVisualization::Categories::LoopThrough (FormatManager::CategoryCallback callback, void* callback_baton)
{
GetFormatManager().LoopThroughCategories(callback, callback_baton);
}
void
DataVisualization::Categories::ForEach (TypeCategoryMap::ForEachCallback callback)
{
@@ -274,9 +268,9 @@ DataVisualization::NamedSummaryFormats::Clear ()
}
void
DataVisualization::NamedSummaryFormats::LoopThrough (TypeSummaryImpl::SummaryCallback callback, void* callback_baton)
DataVisualization::NamedSummaryFormats::ForEach (std::function<bool(ConstString, const lldb::TypeSummaryImplSP&)> callback)
{
GetFormatManager().GetNamedSummaryContainer().LoopThrough(callback, callback_baton);
GetFormatManager().GetNamedSummaryContainer().ForEach(callback);
}
uint32_t