aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/DataFormatters/FormatManager.cpp
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-11-18 12:11:34 +0000
committerTamas Berghammer <tberghammer@google.com>2015-11-18 12:11:34 +0000
commit68aa90a11e29b77ccbccc7ae128d342bc8920b40 (patch)
tree805c8489bfbd6247238d6cbe41e392867d8c6c12 /lldb/source/DataFormatters/FormatManager.cpp
parentea3bb626d434b950985fc1dccdd3f1f4099fbc5b (diff)
downloadllvm-68aa90a11e29b77ccbccc7ae128d342bc8920b40.zip
llvm-68aa90a11e29b77ccbccc7ae128d342bc8920b40.tar.gz
llvm-68aa90a11e29b77ccbccc7ae128d342bc8920b40.tar.bz2
Revert 2 commits breaking the MSVC build
Revert "Remove a few vestigial typedefs from the old world" This reverts commit 05872cda2a00fbd988c4fc761b1f87fe9edce224. Revert "Cleanup the type X list commands to use the new ForEach goodness" This reverts commit 85b1d83819a22cdc9ef12f58fd4fa92b473a4f81. llvm-svn: 253455
Diffstat (limited to 'lldb/source/DataFormatters/FormatManager.cpp')
-rw-r--r--lldb/source/DataFormatters/FormatManager.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp
index 8edc8e5..3237f73 100644
--- a/lldb/source/DataFormatters/FormatManager.cpp
+++ b/lldb/source/DataFormatters/FormatManager.cpp
@@ -486,6 +486,21 @@ FormatManager::GetValidatorForType (lldb::TypeNameSpecifierImplSP type_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)
{
m_categories_map.ForEach(callback);