[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 02:23:14 PDT 2026
================
@@ -1947,6 +1947,23 @@ static void LoadCommonStlFormatters(lldb::TypeCategoryImplSP cpp_category_sp) {
"MSVC STL/libstdc++ std::strong_ordering summary provider",
"std::strong_ordering",
eTypeOptionHideChildren | eTypeOptionHideValue, false);
+
+ // Keep children visible: the summary only prints the integer value, so
+ // the category pointer (_Mycat / _M_cat) must still be inspectable.
----------------
Nerixyz wrote:
All `std::error_code`s will have a category, so I think it'd be good if we showed this as a synthetic child. Like `{ Category = ... }`.
https://github.com/llvm/llvm-project/pull/217245
More information about the lldb-commits
mailing list