]> git.ipfire.org Git - thirdparty/gcc.git/commit
Improve pretty printer for std::variant
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Sep 2016 15:49:27 +0000 (15:49 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Sep 2016 15:49:27 +0000 (15:49 +0000)
commitbd4dc25fdbcf4694f98e4f6d38663af6f8169f86
treef3574c6554933316d371912c0eb49bd22a04fd2c
parent8c77b933f7db04be41fda3ff50454c288690a713
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240234 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx17.cc [new file with mode: 0644]