]> gcc.gnu.org Git - gcc.git/commit
Make Python printers and xmethods work with versioned namespace
authorFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 10 Jan 2017 12:38:42 +0000 (12:38 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 10 Jan 2017 12:38:42 +0000 (12:38 +0000)
commitf9a27859dffe12c32364e2d7be40d2142e85c5f0
tree349d9a3e975a301c7525eea270832328bbfca32b
parentad730facfbf77c30042b711802b1aff317e2b8e2
Make Python printers and xmethods work with versioned namespace

2017-01-10  François Dumont  <fdumont@gcc.gnu.org>
    Jonathan Wakely  <jwakely@redhat.com>

* python/libstdcxx/v6/printers.py (_versioned_namespace): Define.
(is_specialization, strip_versioned_namespace): New helpers functions
to work with symbols in the versioned namespace.
(Printer.add_version): Add second name using versioned namespace.
(add_one_template_type_printer, add_one_type_printer): Add second
type printers using versioned namespace.
(register_type_printers): Add template type printer for basic_string.
(build_libstdcxx_dictionary): Remove dead code.
* python/libstdcxx/v6/xmethods.py: Make all matchers look for
versioned namespace.
* testsuite/libstdc++-prettyprinters/48362.cc: Adjust expected
results.
* testsuite/libstdc++-prettyprinters/whatis.cc: Likewise.

Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r244262
libstdc++-v3/ChangeLog
libstdc++-v3/python/libstdcxx/v6/printers.py
libstdc++-v3/python/libstdcxx/v6/xmethods.py
libstdc++-v3/testsuite/libstdc++-prettyprinters/48362.cc
libstdc++-v3/testsuite/libstdc++-prettyprinters/whatis.cc
This page took 0.053833 seconds and 5 git commands to generate.