This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Add a std::string_view pretty printer for libcxx.
ClosedPublic

Authored by tamur on Jan 27 2020, 5:24 PM.

Details

Summary

This adds a std::string_view pretty printer for libcxx and updates the gdb pretty printer test.

Event Timeline

tamur created this revision.Jan 27 2020, 5:24 PM
EricWF accepted this revision.Jan 29 2020, 8:47 AM
EricWF added a reviewer: saugustine.

LGTM. But I would also like the opinion of Sterling, since they work in this code most often.

libcxx/utils/gdb/libcxx/printers.py
935

Should we have a basic_string_view printer as well?

This revision is now accepted and ready to land.Jan 29 2020, 8:47 AM
saugustine accepted this revision.Jan 29 2020, 9:06 AM
saugustine added inline comments.
libcxx/utils/gdb/libcxx/printers.py
935

Yes we should, but otherwise looks good.

EricWF closed this revision.Jan 29 2020, 10:10 AM

Committed as: b4c911eccc4cccdd8cb536dc003ff9d4eb3bdc70

Please follow up with the additional basic_string_view tests.