aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cxx-pretty-print.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2014-09-30 13:13:10 -0400
committerJason Merrill <jason@gcc.gnu.org>2014-09-30 13:13:10 -0400
commitdd5d5481bebf401a855eb362fa5ffc2101ba06f2 (patch)
treec1f56382a31559ddcfb99ad632527d6e8849d1e8 /gcc/cp/cxx-pretty-print.c
parentb752325e946487109cd3301f81b0301d0bad346d (diff)
downloadgcc-dd5d5481bebf401a855eb362fa5ffc2101ba06f2.zip
gcc-dd5d5481bebf401a855eb362fa5ffc2101ba06f2.tar.gz
gcc-dd5d5481bebf401a855eb362fa5ffc2101ba06f2.tar.bz2
c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and RID_IS_TRIVIALLY_CONSTRUCTIBLE.
c-family/ * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and RID_IS_TRIVIALLY_CONSTRUCTIBLE. * c-common.c (c_common_reswords): Add __is_trivially_copyable. cp/ * cp-tree.h (cp_trait_kind): Add CPTK_IS_TRIVIALLY_ASSIGNABLE and CPTK_IS_TRIVIALLY_CONSTRUCTIBLE. * cxx-pretty-print.c (pp_cxx_trait_expression): Likewise. * parser.c (cp_parser_primary_expression): Likewise. (cp_parser_trait_expr): Likewise. Handle variadic trait. * semantics.c (trait_expr_value): Likewise. (finish_trait_expr): Likewise. (check_trait_type): Handle variadic trait. Return bool. * method.c (build_stub_object): Add rvalue reference here. (locate_fn_flags): Not here. (check_nontriv, assignable_expr, constructible_expr): New. (is_trivially_xible): New. From-SVN: r215738
Diffstat (limited to 'gcc/cp/cxx-pretty-print.c')
-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 7b2d7fd..67e84c0 100644
--- a/gcc/cp/cxx-pretty-print.c
+++ b/gcc/cp/cxx-pretty-print.c
@@ -2393,6 +2393,12 @@ pp_cxx_trait_expression (cxx_pretty_printer *pp, tree t)
case CPTK_IS_TRIVIAL:
pp_cxx_ws_string (pp, "__is_trivial");
break;
+ case CPTK_IS_TRIVIALLY_ASSIGNABLE:
+ pp_cxx_ws_string (pp, "__is_trivially_assignable");
+ break;
+ case CPTK_IS_TRIVIALLY_CONSTRUCTIBLE:
+ pp_cxx_ws_string (pp, "__is_trivially_constructible");
+ break;
case CPTK_IS_TRIVIALLY_COPYABLE:
pp_cxx_ws_string (pp, "__is_trivially_copyable");
break;