]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Get rid of convert_like* macros.
authorMarek Polacek <polacek@redhat.com>
Wed, 15 Jul 2020 20:40:54 +0000 (16:40 -0400)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:18:14 +0000 (13:18 -0300)
commit38940f322d5f85866fcf09e5673db129b6b0c72c
tree6b97d1d677ec62fad159e9584ff2c8ff08380770
parent058598cb71652ff96a361484c7a6255fe5c48436
c++: Get rid of convert_like* macros.

The convert_like* macros were introduced in

  2000-03-05  Nathan Sidwell  <nathan@codesourcery.com>

        * call.c (convert_like): Macrofy.
        (convert_like_with_context): New macro.

but now we can use overloading so we can do away with the macros.
I've also taken this chance to rename _real to _internal to make it
clear that it should not be called directly.

No functional change intended.

gcc/cp/ChangeLog:

* call.c (convert_like): Remove macro and introduce a new
wrapper instead.
(convert_like_with_context): Likewise.
(convert_like_real): Rename to convert_like.
(convert_like_real_1): Rename to convert_like_internal.  Call
convert_like instead of convert_like_real therein.
(perform_direct_initialization_if_possible): Call convert_like
instead of convert_like_real.
gcc/cp/call.c