[Lldb-commits] [lldb] [lldb][Formatter] Consolidate libstdc++ and libc++ unique_ptr formatter tests into generic test (PR #147031)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 4 09:39:42 PDT 2025
Michael137 wrote:
> Looks good modulo the failure in the libstdc++ version. The type name comes out different, presumably because libstdc++ doesn't contain the magic to print the template as std::string.
>
> Testing string name printing is not really relevant for the unique_ptr formatter, so I'd delete the check from there. Testing that `SomeTemplate<std::string>` prints the right way is useful, but would be better of in the test for preferred name printing (if we don't do that already).
Agreed. Removed the typename checks
One final difference between the formatters was that the libstdc++ formatter created a synthetic child for the dereferenced object and calls it `object`. I removed that and made it do what libc++ does: just dereference and present that ValueObject (instead of cloning and renaming it).
https://github.com/llvm/llvm-project/pull/147031
More information about the lldb-commits
mailing list