[Lldb-commits] [lldb] [lldb] Provide TrackingOutputBufferDeleter for custom unique_ptr deleter (PR #142815)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 4 10:27:27 PDT 2025


================
@@ -159,4 +160,23 @@ struct TrackingOutputBuffer : public llvm::itanium_demangle::OutputBuffer {
 };
 } // namespace lldb_private
 
+/// Custom deleter to use with unique_ptr.
+///
+/// Usage:
+/// \code{.cpp}
+///
+/// auto OB =
+///     std::unique_ptr<TrackingOutputBuffer, TrackingOutputBufferDeleter>(
+///         new TrackingOutputBuffer());
+///
+/// \endcode
+struct TrackingOutputBufferDeleter {
----------------
Michael137 wrote:

Can we just put it into the test file for now? And put it back into the header once we actually need it elsewhere?

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


More information about the lldb-commits mailing list