aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-08-22 14:26:51 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-08-24 13:40:24 +0100
commit701ce3c723623af13597c05df09a049c57c52fc0 (patch)
treef5d93829a52630088e252da03605bf7d2799613f /gcc
parenta6303a09f946837927a6581d1b1c38e162b0aa1b (diff)
downloadgcc-701ce3c723623af13597c05df09a049c57c52fc0.zip
gcc-701ce3c723623af13597c05df09a049c57c52fc0.tar.gz
gcc-701ce3c723623af13597c05df09a049c57c52fc0.tar.bz2
libstdc++: Declutter std::optional and std:variant pretty printers [PR110944]
As the PR says, including the template arguments in the GDB output of these class templates can result in very long names, especially for std::variant. You can use 'whatis' or other GDB commands to get details of the type, we don't need to include it in the value. We could consider including the type if it's not too long, but I think consistency is better (and we already omit the template arguments for std::vector and other class templates). libstdc++-v3/ChangeLog: PR libstdc++/110944 * python/libstdcxx/v6/printers.py (StdExpOptionalPrinter): Do not show template arguments. (StdVariantPrinter): Likewise. * testsuite/libstdc++-prettyprinters/compat.cc: Adjust expected output. * testsuite/libstdc++-prettyprinters/cxx17.cc: Likewise. * testsuite/libstdc++-prettyprinters/libfundts.cc: Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions