[Lldb-commits] [lldb] r217891 - Add a convenience function to FormatManager to setup an empty filter (one that suppresses all children, that is)
Enrico Granata
egranata at apple.com
Tue Sep 16 10:41:54 PDT 2014
Author: enrico
Date: Tue Sep 16 12:41:54 2014
New Revision: 217891
URL: http://llvm.org/viewvc/llvm-project?rev=217891&view=rev
Log:
Add a convenience function to FormatManager to setup an empty filter (one that suppresses all children, that is)
Modified:
lldb/trunk/source/DataFormatters/FormatManager.cpp
Modified: lldb/trunk/source/DataFormatters/FormatManager.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/FormatManager.cpp?rev=217891&r1=217890&r2=217891&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/FormatManager.cpp (original)
+++ lldb/trunk/source/DataFormatters/FormatManager.cpp Tue Sep 16 12:41:54 2014
@@ -957,6 +957,15 @@ static void AddFilter (TypeCategoryImpl
else
category_sp->GetTypeFiltersContainer()->Add(type_name,filter_sp);
}
+
+static void AddEmptyFilter (TypeCategoryImpl::SharedPointer category_sp,
+ const char* description,
+ ConstString type_name,
+ ScriptedSyntheticChildren::Flags flags,
+ bool regex = false)
+{
+ AddFilter(category_sp, {}, description, type_name, flags, regex);
+}
#endif
void
More information about the lldb-commits
mailing list