mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
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:
@@ -485,21 +485,6 @@ FormatManager::GetValidatorForType (lldb::TypeNameSpecifierImplSP type_sp)
|
||||
return validator_chosen_sp;
|
||||
}
|
||||
|
||||
void
|
||||
FormatManager::LoopThroughCategories (CategoryCallback callback, void* param)
|
||||
{
|
||||
m_categories_map.LoopThrough(callback, param);
|
||||
Mutex::Locker locker(m_language_categories_mutex);
|
||||
for (const auto& entry : m_language_categories_map)
|
||||
{
|
||||
if (auto category_sp = entry.second->GetCategory())
|
||||
{
|
||||
if (!callback(param, category_sp))
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
FormatManager::ForEachCategory(TypeCategoryMap::ForEachCallback callback)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user