[Lldb-commits] [lldb] [LLDB] Add formatters for MSVC STL std::atomic (PR #149801)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 21 09:34:49 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);
----------------
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
More information about the lldb-commits
mailing list