Mercurial > hg > CbC > CbC_gcc
diff gcc/cp/name-lookup.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line diff
--- a/gcc/cp/name-lookup.h Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/cp/name-lookup.h Thu Feb 13 11:34:05 2020 +0900 @@ -1,5 +1,5 @@ -/* Declarations for C++ name lookup routines. - Copyright (C) 2003-2018 Free Software Foundation, Inc. +/* Declarations for -*- C++ -*- name lookup routines. + Copyright (C) 2003-2020 Free Software Foundation, Inc. Contributed by Gabriel Dos Reis <gdr@integrable-solutions.net> This file is part of GCC. @@ -176,9 +176,6 @@ are wrapped in TREE_LISTs; the TREE_VALUE is the OVERLOAD. */ tree names; - /* A list of USING_DECL nodes. */ - tree usings; - /* Using directives. */ vec<tree, va_gc> *using_directives; @@ -236,7 +233,10 @@ 'this_entity'. */ unsigned defining_class_p : 1; - /* 23 bits left to fill a 32-bit word. */ + /* true for SK_FUNCTION_PARMS of immediate functions. */ + unsigned immediate_fn_ctx_p : 1; + + /* 22 bits left to fill a 32-bit word. */ }; /* The binding level currently in effect. */ @@ -287,7 +287,8 @@ { return get_namespace_binding (NULL_TREE, id); } -extern tree lookup_qualified_name (tree, tree, int, bool, /*hidden*/bool = false); +extern tree lookup_qualified_name (tree, tree, int = 0, bool = true, /*hidden*/bool = false); +extern tree lookup_qualified_name (tree t, const char *p, int = 0, bool = true, bool = false); extern tree lookup_name_nonclass (tree); extern bool is_local_extern (tree); extern bool pushdecl_class_level (tree); @@ -303,8 +304,8 @@ extern tree do_class_using_decl (tree, tree); extern tree lookup_arg_dependent (tree, tree, vec<tree, va_gc> *); extern tree search_anon_aggr (tree, tree, bool = false); -extern tree get_class_binding_direct (tree, tree, int type_or_fns = -1); -extern tree get_class_binding (tree, tree, int type_or_fns = -1); +extern tree get_class_binding_direct (tree, tree, bool want_type = false); +extern tree get_class_binding (tree, tree, bool want_type = false); extern tree *find_member_slot (tree klass, tree name); extern tree *add_member_slot (tree klass, tree name); extern void resort_type_member_vec (void *, void *, @@ -315,10 +316,8 @@ extern cxx_binding *outer_binding (tree, cxx_binding *, bool); extern void cp_emit_debug_info_for_using (tree, tree); -extern void finish_namespace_using_decl (tree, tree, tree); -extern void finish_local_using_decl (tree, tree, tree); -extern void finish_namespace_using_directive (tree, tree); -extern void finish_local_using_directive (tree, tree); +extern void finish_nonmember_using_decl (tree scope, tree name); +extern void finish_using_directive (tree target, tree attribs); extern tree pushdecl (tree, bool is_friend = false); extern tree pushdecl_outermost_localscope (tree); extern tree pushdecl_top_level (tree, bool is_friend = false); @@ -330,5 +329,8 @@ extern void pop_nested_namespace (tree); extern void push_to_top_level (void); extern void pop_from_top_level (void); +extern void maybe_save_operator_binding (tree); +extern void push_operator_bindings (void); +extern void discard_operator_bindings (tree); #endif /* GCC_CP_NAME_LOOKUP_H */