[libcxx-commits] [libcxx] [libc++] Fix gdb pretty printer for strings (PR #176882)

Johan Bengtsson via libcxx-commits libcxx-commits at lists.llvm.org
Tue Feb 3 06:00:24 PST 2026


================
@@ -172,6 +172,19 @@ template <typename T> class UncompressibleAllocator : public std::allocator<T> {
   };
 };
 
+// Helper function to check pretty printing of short strings returned by
+// debugger-called functions.
+std::string return_short_string() {
----------------
JohanBengtssonIAR wrote:

I extended the tests for u16string and u32string to test strings returned by evaluating expressions. I will continue and try to add tests for wstring as there were none, but their representation is target system depdendent.

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


More information about the libcxx-commits mailing list