r243652 - in /trunk/libstdc++-v3: ChangeLog pyt...

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Dec 14 16:07:00 GMT 2016


Author: redi
Date: Wed Dec 14 16:07:29 2016
New Revision: 243652

URL: https://gcc.gnu.org/viewcvs?rev=243652&root=gcc&view=rev
Log:
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.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/python/libstdcxx/v6/printers.py
    trunk/libstdc++-v3/testsuite/libstdc++-prettyprinters/cxx11.cc
    trunk/libstdc++-v3/testsuite/libstdc++-prettyprinters/debug.cc
    trunk/libstdc++-v3/testsuite/libstdc++-prettyprinters/debug_cxx11.cc
    trunk/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple.cc
    trunk/libstdc++-v3/testsuite/libstdc++-prettyprinters/simple11.cc
    trunk/libstdc++-v3/testsuite/libstdc++-prettyprinters/tr1.cc



More information about the Libstdc++-cvs mailing list