This is an archive of the discontinued LLVM Phabricator instance.

Adapt C++ std::string dataformatter for D125496
ClosedPublic

Authored by aprantl on May 20 2022, 11:22 AM.

Details

Summary

https://reviews.llvm.org/D125496 changed the layout of std::string without updating the LLDB dataformatter. This patch adds code to recognize the now format.

How do we usually add tests for STL data structures?

Diff Detail

Event Timeline

aprantl created this revision.May 20 2022, 11:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2022, 11:22 AM

I'm going to land this quickly to get the bots going again, but a thorough review would still be very much appreciated!

This revision was not accepted when it landed; it landed in state Needs Review.May 20 2022, 11:25 AM
This revision was automatically updated to reflect the committed changes.

That seemed to have done the trick.

How do we usually add tests for STL data structures?

I guess that matrix bot sort of covers this.
https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake-matrix/

labath added a subscriber: labath.Jun 10 2022, 2:03 AM

How do we usually add tests for STL data structures?

I have https://reviews.llvm.org/D124155, which would allow testing of different string layouts in one go. It remains to be seen how maintainable will that test be when it starts supporting many string layouts. OTOH, one could say it will be as maintainable as a data formatter which supports all those string layouts...