Improve pretty printer for std::variant
authorJonathan Wakely <jwakely@redhat.com>
Mon, 19 Sep 2016 15:49:27 +0000 (16:49 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 19 Sep 2016 15:49:27 +0000 (16:49 +0100)
commita0a1009abf4802538f9f8687e99a27be0ab1dc17
treef3574c6554933316d371912c0eb49bd22a04fd2c
parent019270bcb3ff03b1dfb5a48b436af54e1d660421
Improve pretty printer for std::variant

* python/libstdcxx/v6/printers.py (SingleObjContainerPrinter): Allow
display_hint to be set by subclasses.
(StdVariantPrinter): Use array for display_hint. Adjust output to be
more similar to std::any and std::optional output.
(register_type_printers): Add type printers for basic_string_view
typedefs and experimental::any. Adjust type printers for
fundamentals_v1 templates to match fundamentals_v2 and later.
* testsuite/libstdc++-prettyprinters/cxx17.cc: New.

From-SVN: r240234
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx17.cc [new file with mode: 0644]