Add pretty-printing support for __is_nothrow_{assignable,constructible}.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 1 Dec 2020 22:20:46 +0000 (00:20 +0200)
committerVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 1 Dec 2020 22:23:41 +0000 (00:23 +0200)
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

index 058b9c2..1cdf077 100644 (file)
@@ -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 ();