class.c (type_has_user_declared_move_constructor, [...]): Combine into ...
authorNathan Sidwell <nathan@acm.org>
Mon, 17 Jul 2017 15:57:59 +0000 (15:57 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 17 Jul 2017 15:57:59 +0000 (15:57 +0000)
commit619018d4b9c3458e2d4aadfa42d30f5cd429f155
tree3c5ec1dc05587e8598c06b9f0124ce3a6f062e68
parentaac595770c4b008290640441fe51bb29e740d295
class.c (type_has_user_declared_move_constructor, [...]): Combine into ...

* class.c (type_has_user_declared_move_constructor,
type_has_user_declared_move_assign): Combine into ...
(classtype_has_user_move_assign_or_move_ctor_p): ... this new function.
* cp-tree.h (type_has_user_declared_move_constructor,
type_has_user_declared_move_assign): Combine into ...
(classtype_has_user_move_assign_or_move_ctor_p): ... this. Declare.
* method.c (maybe_explain_implicit_delete): Use it.
(lazily_declare_fn): Use it.
* tree.c (type_has_nontrivial_copy_init): Use it.

From-SVN: r250280
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/method.c
gcc/cp/tree.c