c++: Rename DECL_BUILTIN_P to DECL_UNDECLARED_BUILTIN_P
authorNathan Sidwell <nathan@acm.org>
Wed, 7 Oct 2020 12:02:34 +0000 (05:02 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 7 Oct 2020 12:06:52 +0000 (05:06 -0700)
commit99e9b54313dbb8fdb3d2a354c9554478cc33e234
tree951f89b82e5393a8fbdf3bd7e47ff961738e2811
parentba42c30445cef0aef15405d92361a536e12ae865
c++: Rename DECL_BUILTIN_P to DECL_UNDECLARED_BUILTIN_P

I realized I'd misnamed DECL_BUILTIN_P, it's only true of compiler
builtins unless and until the user declares them -- at that point
they're real decls, and will have a location in the user's source.
(BUILT_IN_FN and friends still work though).  This renames them so
future-me is not confused as to why the predicate becomes false.

gcc/cp/
* cp-tree.h (DECL_BUILTIN_P): Rename to ...
(DECL_UNDECLARED_BUILTIN_P): ... here.
* decl.c (duplicate_decls): Adjust.
* name-lookup.c (anticipated_builtin_p): Adjust.
(do_nonmember_using_decl): Likewise.
libcc1/
* libcp1plugin.cc (supplement_binding): Rename
DECL_BUILTIN_P.
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/name-lookup.c
libcc1/libcp1plugin.cc