[Lldb-commits] [lldb] [lldb] Add generic string view summary provider (PR #171854)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 15 02:27:06 PST 2025


================
@@ -59,21 +59,8 @@ bool LibcxxWStringSummaryProvider(
     ValueObject &valobj, Stream &stream,
     const TypeSummaryOptions &options); // libc++ std::wstring
 
-bool LibcxxStringViewSummaryProviderASCII(
----------------
Michael137 wrote:

Can we keep these? So instead of having a `GenericStringViewSummaryProvider`, each STL has its own `XXXStringViewSummaryProvider`. Inside of it it will extract the data and size according to that STL. Then your `GenericStringViewSummaryProvider` can take the data/size and all it does is format the data (e.g., by just calling the `formatStringViewImpl`.

Does that make sense?

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


More information about the lldb-commits mailing list