aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-12-14 16:07:29 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2016-12-14 16:07:29 +0000
commitd33c00e1ceb82fa46561ee076b9cb40ad44dc0dc (patch)
treec923fb7a40da6938459bdbe00266f38ccce2a7e9 /gcc
parent3c760f4a79c221408122b3f265a8039b04ce697e (diff)
downloadgcc-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