Home
last modified time | relevance | path

Searched refs:CP_DECL_CONTEXT (Results 1 – 16 of 16) sorted by relevance

/freebsd-12.1/contrib/gcc/cp/
H A Dmangle.c458 return (DECL_NAMESPACE_STD_P (CP_DECL_CONTEXT (decl)) in is_std_substitution()
693 && (CP_DECL_CONTEXT (decl) == global_namespace in write_mangled_name()
797 context = (DECL_CONTEXT (decl) == NULL) ? NULL : CP_DECL_CONTEXT (decl); in write_name()
850 context = CP_DECL_CONTEXT (context); in write_name()
867 tree context = CP_DECL_CONTEXT (decl); in write_unscoped_name()
1005 write_prefix (CP_DECL_CONTEXT (decl)); in write_prefix()
1021 tree context = CP_DECL_CONTEXT (decl); in write_template_prefix()
H A Dname-lookup.c1018 ? NAMESPACE_LEVEL (CP_DECL_CONTEXT (x)) in pushdecl_maybe_friend()
2510 context = CP_DECL_CONTEXT (OVL_CURRENT (decl)); in set_inherited_value_binding_p()
3139 current_namespace = CP_DECL_CONTEXT (current_namespace); in pop_namespace()
3154 push_nested_namespace (CP_DECL_CONTEXT (ns)); in push_nested_namespace()
3169 ns = CP_DECL_CONTEXT (ns); in pop_nested_namespace()
3205 namespace_ancestor (CP_DECL_CONTEXT (ns1), ns2)); in namespace_ancestor()
3692 for (; !val; scope = CP_DECL_CONTEXT (scope)) in unqualified_namespace_lookup()
3722 siter = CP_DECL_CONTEXT (siter); in unqualified_namespace_lookup()
4464 tree ctx = CP_DECL_CONTEXT (arg); in arg_assoc_template_arg()
4526 if (CP_DECL_CONTEXT (fn) != context) in arg_assoc_class()
[all …]
H A Derror.c450 dump_scope (CP_DECL_CONTEXT (name), flags | TFF_SCOPE); in dump_aggr_type()
711 dump_scope (CP_DECL_CONTEXT (t), flags); in dump_simple_decl()
773 dump_scope (CP_DECL_CONTEXT (t), flags); in dump_decl()
1056 dump_scope (CP_DECL_CONTEXT (t), flags); in dump_function_decl()
1993 dump_type (CP_DECL_CONTEXT (decl), TFF_PLAIN_IDENTIFIER); in lang_decl_name()
H A Ddump.c292 if (TREE_CODE (CP_DECL_CONTEXT (t)) == RECORD_TYPE) in cp_dump_tree()
H A Ddecl.c948 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) in decls_match()
1011 && CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl) in decls_match()
1342 if (CP_DECL_CONTEXT (newdecl) != CP_DECL_CONTEXT (olddecl)) in duplicate_decls()
5599 && CP_DECL_CONTEXT (decl) == current_class_type in cp_finish_decl()
9329 && !TYPE_P (CP_DECL_CONTEXT (t)) in local_variable_p()
9809 if (CP_DECL_CONTEXT (decl) != global_namespace) in grok_op_properties()
H A Dtree.c1391 decl = CP_DECL_CONTEXT (TYPE_MAIN_DECL (decl)); in decl_namespace_context()
1393 decl = CP_DECL_CONTEXT (decl); in decl_namespace_context()
H A Dpt.c281 ? CP_DECL_CONTEXT (type) : TYPE_CONTEXT (type)) in template_class_depth()
1972 fns = lookup_qualified_name (CP_DECL_CONTEXT (decl), dname, in check_explicit_specialization()
1982 if (!is_associated_namespace (CP_DECL_CONTEXT (decl), in check_explicit_specialization()
1983 CP_DECL_CONTEXT (fn))) in check_explicit_specialization()
2865 if (TREE_CODE (CP_DECL_CONTEXT (decl)) == FUNCTION_DECL) in check_default_tmpl_args()
3053 else if (CP_DECL_CONTEXT (decl) in push_template_decl_real()
3054 && TREE_CODE (CP_DECL_CONTEXT (decl)) != NAMESPACE_DECL) in push_template_decl_real()
3057 ctx = CP_DECL_CONTEXT (decl); in push_template_decl_real()
4774 && TREE_CODE (CP_DECL_CONTEXT (template)) == NAMESPACE_DECL) in lookup_template_class()
13224 if (TYPE_P (CP_DECL_CONTEXT (tmpl))) in dependent_template_p()
H A Dcp-tree.h1977 #define CP_DECL_CONTEXT(NODE) \ macro
1986 && TREE_CODE (CP_DECL_CONTEXT (NODE)) == NAMESPACE_DECL)
2048 && CP_DECL_CONTEXT (NODE) == global_namespace \
H A Dsemantics.c3866 else if (TREE_STATIC (v) && TYPE_P (CP_DECL_CONTEXT (v))) in finish_omp_threadprivate()
4096 tree ctx = CP_DECL_CONTEXT (decl); in cxx_omp_predetermined_sharing()
H A DChangeLog-20004472 * dump.c (dequeue_and_dump): Don't dump CP_DECL_CONTEXT twice.
6119 CP_DECL_CONTEXT.
6129 * decl.c (push_class_binding): Use CP_DECL_CONTEXT, not
6133 (decls_match): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
6137 (cp_finish_decl): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
6161 * dump.c (dequeue_and_dump): Use CP_DECL_CONTEXT, not
6171 (do_identifier): Use CP_DECL_CONTEXT, not DECL_REAL_CONTEXT.
6177 * pt.c (template_class_depth_real): Use CP_DECL_CONTEXT, not
6184 (check_default_tmpl_args): Use CP_DECL_CONTEXT, not
6196 (context_for_name_lookup): Use CP_DECL_CONTEXT, not
H A DChangeLog-19982205 * error.c (dump_decl): Use CP_DECL_CONTEXT, not DECL_CONTEXT, when
3090 (unqualified_namespace_lookup): Use CP_DECL_CONTEXT.
3229 * decl2.c (namespace_ancestor): Use CP_DECL_CONTEXT.
3286 (lookup_tag): Use CP_DECL_CONTEXT to iterate.
3417 * decl.c (lookup_tag): Use CP_DECL_CONTEXT.
3481 * cp-tree.h (CP_DECL_CONTEXT): New macro.
H A Dparser.c9579 tree scope = CP_DECL_CONTEXT (get_first_fn (decl)); in cp_parser_template_name()
13659 scope = CP_DECL_CONTEXT (TYPE_MAIN_DECL (type)); in cp_parser_class_specifier()
H A DChangeLog3444 * pt.c (check_explicit_specialization): Use CP_DECL_CONTEXT even more.
3446 * name-lookup.c (set_decl_namespace): Use CP_DECL_CONTEXT.
H A DChangeLog-20013359 of CP_DECL_CONTEXT.
H A DChangeLog-20033717 it to CP_DECL_CONTEXT.
H A DChangeLog-19994686 * method.c (bulid_overload_identifier): Use CP_DECL_CONTEXT, not