diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-05-09 18:18:01 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-05-09 20:36:56 +0100 |
commit | 7bd251ca751317385f7e2e4e031736a99f376012 (patch) | |
tree | 98898ff10952d0bab23ee711e0050e0e5cc513f5 /gcc | |
parent | bbb6cf926f1732559b3a8aaf2796d34e8651c066 (diff) | |
download | gcc-7bd251ca751317385f7e2e4e031736a99f376012.zip gcc-7bd251ca751317385f7e2e4e031736a99f376012.tar.gz gcc-7bd251ca751317385f7e2e4e031736a99f376012.tar.bz2 |
libstdc++: Fix <chrono> pretty printers and add tests
This fixes a couple of errors in the printers for chrono types, and adds
tests to ensure they keep working.
libstdc++-v3/ChangeLog:
* python/libstdcxx/v6/printers.py (StdChronoDurationPrinter):
Print floating-point durations correctly.
(StdChronoTimePointPrinter): Support printing only the value,
not the type name. Uncomment handling for known clocks.
(StdChronoZonedTimePrinter): Remove type names from output.
(StdChronoCalendarPrinter): Fix hh_mm_ss member access.
(StdChronoTimeZonePrinter): Add equals sign to output.
* testsuite/libstdc++-prettyprinters/chrono.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions