diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-08-14 16:53:43 -0700 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-08-14 16:55:35 -0700 |
commit | f00008b45ade9e63edf785838b34f5e55909af5e (patch) | |
tree | 5969a610a4d5c4e3af6a545e8d68fe116785cdb8 /gcc/cp/semantics.c | |
parent | 866626efd749ed3e2b7014e88e4340b5a4c73560 (diff) | |
download | gcc-f00008b45ade9e63edf785838b34f5e55909af5e.zip gcc-f00008b45ade9e63edf785838b34f5e55909af5e.tar.gz gcc-f00008b45ade9e63edf785838b34f5e55909af5e.tar.bz2 |
c++: Final bit of name-lookup api simplification
We no longer need to give name_lookup_real not name_lookup_nonclass
different names to the name_lookup functions. This renames the lookup
functions thusly.
gcc/cp/
* name-lookup.h (lookup_name_real, lookup_name_nonclass): Rename
to ...
(lookup_name): ... these new overloads.
* name-lookup.c (identifier_type_value_1): Rename lookup_name_real
call.
(lookup_name_real_1): Rename to ...
(lookup_name_1): ... here.
(lookup_name_real): Rename to ...
(lookup_name): ... here. Rename lookup_name_real_1 call.
(lookup_name_nonclass): Delete.
* call.c (build_operator_new_call): Rename lookup_name_real call.
(add_operator_candidates): Likewise.
(build_op_delete_call): Rename lookup_name_nonclass call.
* parser.c (cp_parser_lookup_name): Likewise.
* pt.c (tsubst_friend_class, lookup_init_capture_pack): Likewise.
(tsubst_expr): Likewise.
* semantics.c (capture_decltype): Likewise.
libcc1/
* libcp1plugin.cc (plugin_build_dependent_expr): Rename
lookup_name_real call.
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index da452c5..b71ca07 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -10322,8 +10322,8 @@ static tree capture_decltype (tree decl) { tree lam = CLASSTYPE_LAMBDA_EXPR (DECL_CONTEXT (current_function_decl)); - tree cap = lookup_name_real (DECL_NAME (decl), LOOK_where::BLOCK, - LOOK_want::NORMAL | LOOK_want::HIDDEN_LAMBDA); + tree cap = lookup_name (DECL_NAME (decl), LOOK_where::BLOCK, + LOOK_want::HIDDEN_LAMBDA); tree type; if (cap && is_capture_proxy (cap)) |