From bec21c625d50276651410452e792718d228cfb5c Mon Sep 17 00:00:00 2001 From: Ville Voutilainen Date: Wed, 2 Dec 2020 00:20:46 +0200 Subject: [PATCH] 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}. --- gcc/cp/cxx-pretty-print.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c index 058b9c2f4fc..1cdf0772a6b 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 (); -- 2.30.2