aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorVille Voutilainen <ville.voutilainen@gmail.com>2020-12-02 00:20:46 +0200
committerVille Voutilainen <ville.voutilainen@gmail.com>2020-12-02 00:23:41 +0200
commitbec21c625d50276651410452e792718d228cfb5c (patch)
treefb435a56f3ba3c4a3741eb2787d9e416ef2949f0 /gcc
parentb76f83e3859f738809d3aa8bd9dc14e10fc40e24 (diff)
downloadgcc-bec21c625d50276651410452e792718d228cfb5c.zip
gcc-bec21c625d50276651410452e792718d228cfb5c.tar.gz
gcc-bec21c625d50276651410452e792718d228cfb5c.tar.bz2
Add pretty-printing support for __is_nothrow_{assignable,constructible}.
gcc/cp/ChangeLog: PR c++/98054 * cxx-pretty-print.c (pp_cxx_trait_expression): Add support for __is_nothrow_{assignable,constructible}.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/cxx-pretty-print.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c
index 058b9c2..1cdf077 100644
--- a/gcc/cp/cxx-pretty-print.c
+++ b/gcc/cp/cxx-pretty-print.c
@@ -2666,6 +2666,12 @@ pp_cxx_trait_expression (cxx_pretty_printer *pp, tree t)
case CPTK_IS_CONSTRUCTIBLE:
pp_cxx_ws_string (pp, "__is_constructible");
break;
+ case CPTK_IS_NOTHROW_ASSIGNABLE:
+ pp_cxx_ws_string (pp, "__is_nothrow_assignable");
+ break;
+ case CPTK_IS_NOTHROW_CONSTRUCTIBLE:
+ pp_cxx_ws_string (pp, "__is_nothrow_constructible");
+ break;
default:
gcc_unreachable ();