<div dir="ltr">This is unused by anything in lldb. Any reason to put it in explicitly? (It's triggering on a Werror build of llvm+lldb).<div><br></div><div>-eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 16, 2014 at 10:41 AM, Enrico Granata <span dir="ltr"><<a href="mailto:egranata@apple.com" target="_blank">egranata@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: enrico<br>
Date: Tue Sep 16 12:41:54 2014<br>
New Revision: 217891<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=217891&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=217891&view=rev</a><br>
Log:<br>
Add a convenience function to FormatManager to setup an empty filter (one that suppresses all children, that is)<br>
<br>
Modified:<br>
lldb/trunk/source/DataFormatters/FormatManager.cpp<br>
<br>
Modified: lldb/trunk/source/DataFormatters/FormatManager.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/FormatManager.cpp?rev=217891&r1=217890&r2=217891&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/FormatManager.cpp?rev=217891&r1=217890&r2=217891&view=diff</a><br>
==============================================================================<br>
--- lldb/trunk/source/DataFormatters/FormatManager.cpp (original)<br>
+++ lldb/trunk/source/DataFormatters/FormatManager.cpp Tue Sep 16 12:41:54 2014<br>
@@ -957,6 +957,15 @@ static void AddFilter (TypeCategoryImpl<br>
else<br>
category_sp->GetTypeFiltersContainer()->Add(type_name,filter_sp);<br>
}<br>
+<br>
+static void AddEmptyFilter (TypeCategoryImpl::SharedPointer category_sp,<br>
+ const char* description,<br>
+ ConstString type_name,<br>
+ ScriptedSyntheticChildren::Flags flags,<br>
+ bool regex = false)<br>
+{<br>
+ AddFilter(category_sp, {}, description, type_name, flags, regex);<br>
+}<br>
#endif<br>
<br>
void<br>
<br>
<br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@cs.uiuc.edu">lldb-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><br>
</blockquote></div><br></div>