Author: enrico
Date: Thu Oct 29 18:53:34 2015
New Revision: 251670

URL: http://llvm.org/viewvc/llvm-project?rev=251670&view=rev
Log:
Remove two #if0ed regions of code that we were using for an experiment but 
don't really want

Modified:
    lldb/trunk/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp

Modified: lldb/trunk/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp?rev=251670&r1=251669&r2=251670&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp 
(original)
+++ lldb/trunk/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp Thu Oct 
29 18:53:34 2015
@@ -620,14 +620,6 @@ LoadLibStdcppFormatters(lldb::TypeCatego
     
cpp_category_sp->GetRegexTypeSyntheticsContainer()->Add(RegularExpressionSP(new 
RegularExpression("^std::(__cxx11::)?list<.+>(( )?&)?$")),
                                                             
SyntheticChildrenSP(new ScriptedSyntheticChildren(stl_synth_flags,
                                                                                
                               
"lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider")));
-#if 0
-    // With only this, I get std::list showing the content, all children on 
the same line.
-    // With this and the section below, I see one child element per line.
-    
cpp_category_sp->GetRegexTypeSyntheticsContainer()->Add(RegularExpressionSP(new 
RegularExpression("^std::__cxx11::_List_base<.+>(( )?&)?$")),
-                                                            
SyntheticChildrenSP(new ScriptedSyntheticChildren(stl_synth_flags,
-                                                                               
                               
"lldb.formatters.cpp.gnu_libstdcpp.StdListSynthProvider")));
-#endif
-    
     
stl_summary_flags.SetDontShowChildren(false);stl_summary_flags.SetSkipPointers(true);
     
cpp_category_sp->GetRegexTypeSummariesContainer()->Add(RegularExpressionSP(new 
RegularExpression("^std::vector<.+>(( )?&)?$")),
                                                            
TypeSummaryImplSP(new StringSummaryFormat(stl_summary_flags,
@@ -638,12 +630,6 @@ LoadLibStdcppFormatters(lldb::TypeCatego
     
cpp_category_sp->GetRegexTypeSummariesContainer()->Add(RegularExpressionSP(new 
RegularExpression("^std::(__cxx11::)?list<.+>(( )?&)?$")),
                                                            
TypeSummaryImplSP(new StringSummaryFormat(stl_summary_flags,
                                                                                
                      "size=${svar%#}")));
-#if 0
-    // With this, I get std::list showing one child per line.  Requires the 
change above to get anything, though.
-    
cpp_category_sp->GetRegexTypeSummariesContainer()->Add(RegularExpressionSP(new 
RegularExpression("^std::__cxx11::_List_base<.+>(( )?&)?$")),
-                                                           
TypeSummaryImplSP(new StringSummaryFormat(stl_summary_flags,
-                                                                               
                      "size=${svar%#}")));
-#endif
 
     AddCXXSynthetic(cpp_category_sp, 
lldb_private::formatters::LibStdcppVectorIteratorSyntheticFrontEndCreator, 
"std::vector iterator synthetic children", 
ConstString("^__gnu_cxx::__normal_iterator<.+>$"), stl_synth_flags, true);
     


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to