[Lldb-commits] [lldb] [LLDB] Add formatters for MSVC STL	std::atomic (PR #149801)
    Michael Buch via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Mon Jul 21 07:43:29 PDT 2025
    
    
  
================
@@ -1784,6 +1787,17 @@ static void LoadMsvcStlFormatters(lldb::TypeCategoryImplSP cpp_category_sp) {
           stl_summary_flags,
           MsvcStlStringSummaryProvider<StringElementType::UTF32>,
           "MSVC STL std::u32string summary provider"));
+
+  stl_summary_flags.SetDontShowChildren(false);
----------------
Michael137 wrote:
What happens if you don't set this? I think we probably do want this to be `true`? Would that make `std::atomic` look like:
```
(std::atomic<int>) val = 5
```
?
(i.e., just not print the synthetic child?)
I know that's not what libc++/libstdc++ does, but we probably should?
https://github.com/llvm/llvm-project/pull/149801
    
    
More information about the lldb-commits
mailing list