diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-12-14 16:07:29 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-12-14 16:07:29 +0000 |
commit | d33c00e1ceb82fa46561ee076b9cb40ad44dc0dc (patch) | |
tree | c923fb7a40da6938459bdbe00266f38ccce2a7e9 /gcc | |
parent | 3c760f4a79c221408122b3f265a8039b04ce697e (diff) | |
download | gcc-d33c00e1ceb82fa46561ee076b9cb40ad44dc0dc.zip gcc-d33c00e1ceb82fa46561ee076b9cb40ad44dc0dc.tar.gz gcc-d33c00e1ceb82fa46561ee076b9cb40ad44dc0dc.tar.bz2 |
Make printers use singular noun for a single element
* python/libstdcxx/v6/printers.py (num_elements): New function.
(StdMapPrinter.to_string, StdSetPrinter.to_string)
(StdDequePrinter.to_string, Tr1UnorderedSetPrinter.to_string)
(Tr1UnorderedMapPrinter.to_string): Use num_elements.
* testsuite/libstdc++-prettyprinters/cxx11.cc: Adjust expected results
to use singular noun when there is only one element.
* testsuite/libstdc++-prettyprinters/debug.cc: Likewise.
* testsuite/libstdc++-prettyprinters/debug_cxx11.cc: Likewise.
* testsuite/libstdc++-prettyprinters/simple.cc: Likewise.
* testsuite/libstdc++-prettyprinters/simple11.cc: Likewise.
* testsuite/libstdc++-prettyprinters/tr1.cc: Likewise.
From-SVN: r243652
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions