From: Ville Voutilainen Date: Tue, 1 Dec 2020 22:20:46 +0000 (+0200) Subject: Add pretty-printing support for __is_nothrow_{assignable,constructible}. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bec21c625d50276651410452e792718d228cfb5c;p=gcc.git 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}. --- 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 ();