The existing logic to loop over formatters is very pre-C++11, using void* batons, and function pointers, and raw memory allocations instead of safer more modern constructs
This is a first pass at a cleanup of that code, modernizing the "type X clear" commands, and providing the basic infrastructure I plan to use all over More cleanup will come over the next few days llvm-svn: 253125
This commit is contained in:
@@ -231,6 +231,12 @@ DataVisualization::Categories::LoopThrough (FormatManager::CategoryCallback call
|
||||
GetFormatManager().LoopThroughCategories(callback, callback_baton);
|
||||
}
|
||||
|
||||
void
|
||||
DataVisualization::Categories::ForEach (TypeCategoryMap::ForEachCallback callback)
|
||||
{
|
||||
GetFormatManager().ForEachCategory(callback);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
DataVisualization::Categories::GetCount ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user