[C++ DR 2336] Clean up synth walkers first
authorNathan Sidwell <nathan@acm.org>
Thu, 15 Nov 2018 13:22:15 +0000 (13:22 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 15 Nov 2018 13:22:15 +0000 (13:22 +0000)
commit3f5a0fdefbb4bd69547b7275da08f712b18a972e
tree1d908115a1451ca2b4c7fedf642f79dfcfc55297
parente99d38d0e1193a931741341af75a8c86ef654306
[C++ DR 2336] Clean up synth walkers first

https://gcc.gnu.org/ml/gcc-patches/2018-11/msg01376.html
* cp-tree.h (enum special_function_kind): Reorder and comment.
* method.c (SFK_CTOR_P, SFK_DTOR_P, SFK_ASSIGN_P, SFK_COPY_P)
(SFK_MOVE_P): New predicates.
(walk_field_subobs, synthesized_method_base_walk): Drop
copy_arg_p, move_p, assign_p args.  Use new SFK predicates.  Order
parameters consistently.
(synthesized_method_walk): Drop ctor_p, copy_arg_p, move_p,
assign_p calculations.  Use new SFK predicates.  Adjust calls to
worker functions.

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