================
@@ -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);
----------------
Nerixyz wrote:

> Would that make `std::atomic` look like:
> 
> ```
> (std::atomic<int>) val = 5
> ```
> 
> ?

Yes. I don't think that's always desired. Atomics can store structs as well 
(not sure why) and users might want to inspect these. This is also done in the 
tests 
[here](https://github.com/llvm/llvm-project/blob/b184dd9c6f4facf3c4c513ef826c584ead8220d9/lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/atomic/main.cpp#L21).

https://github.com/llvm/llvm-project/pull/149801
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to