[Lldb-commits] [lldb] [lldb][DataFormatter] Format libstdc++ unique_ptr like we do libc++ (PR #146909)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 3 07:45:45 PDT 2025


================
@@ -55,6 +55,12 @@ void AddFilter(TypeCategoryImpl::SharedPointer category_sp,
 
 std::optional<size_t> ExtractIndexFromString(const char *item_name);
 
+/// Returns \c false if the smart pointer formatters shouldn't continue
+/// formatting the rest of the object. Currently this is the case when the
+/// pointer is a nullptr.
+bool DumpCxxSmartPtrPointerSummary(Stream &stream, ValueObject &ptr,
+                                   const TypeSummaryOptions &options);
----------------
Michael137 wrote:

The return value is a bit awkward. Happy to consider alternatives.

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


More information about the lldb-commits mailing list