[Lldb-commits] [lldb] [lldb] Add MSVC STL/libstdc++ formatters for error_code and error_condition (PR #217245)

via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 20 05:29:49 PDT 2026


================
@@ -1947,6 +1947,26 @@ static void LoadCommonStlFormatters(lldb::TypeCategoryImplSP cpp_category_sp) {
                 "MSVC STL/libstdc++ std::strong_ordering summary provider",
                 "std::strong_ordering",
                 eTypeOptionHideChildren | eTypeOptionHideValue, false);
+
+  // Keep the synthetic Category child visible alongside the integer summary.
+  TypeSummaryImpl::Flags error_code_flags;
+  error_code_flags.SetCascades(true)
+      .SetSkipPointers(false)
+      .SetSkipReferences(false)
+      .SetDontShowChildren(false)
+      .SetDontShowValue(false)
+      .SetShowMembersOneLiner(false)
+      .SetHideItemNames(false);
----------------
Nerixyz wrote:

Now that there are synthetic children, you can use the `stl_summary_flags`.

https://github.com/llvm/llvm-project/pull/217245


More information about the lldb-commits mailing list