Home
last modified time | relevance | path

Searched refs:DECL_CONTEXT (Results 1 – 25 of 76) sorted by relevance

1234

/NextBSD/contrib/gcc/cp/
HDdecl2.c191 && !CLASSTYPE_VBASECLASSES (DECL_CONTEXT (fn))) in maybe_retrofit_in_chrg()
202 if (CLASSTYPE_VBASECLASSES (DECL_CONTEXT (fn))) in maybe_retrofit_in_chrg()
273 DECL_CONTEXT (function) = ctype; in grokclassfn()
716 DECL_CONTEXT (decl) = current_class_type; in finish_static_data_member_decl()
791 && DECL_CONTEXT (value) != current_class_type) in grokfield()
804 DECL_CONTEXT (value) = current_class_type; in grokfield()
826 error ("%qD is already defined in %qT", value, DECL_CONTEXT (value)); in grokfield()
972 DECL_CONTEXT (value)); in grokbitfield()
1101 DECL_CONTEXT (anon_union_decl) = DECL_CONTEXT (TYPE_NAME (type)); in finish_anon_union()
1700 class_type = DECL_CONTEXT (decl); in determine_visibility()
[all …]
HDcxx-pretty-print.c239 tree scope = TYPE_P (t) ? TYPE_CONTEXT (t) : DECL_CONTEXT (t); in pp_cxx_nested_name_specifier()
273 pp_cxx_nested_name_specifier (pp, DECL_CONTEXT (t)); in pp_cxx_qualified_id()
275 (pp, DECL_CONSTRUCTOR_P (t) ? DECL_CONTEXT (t) : t); in pp_cxx_qualified_id()
287 tree scope = TYPE_P (t) ? TYPE_CONTEXT (t) : DECL_CONTEXT (t); in pp_cxx_qualified_id()
331 if (DECL_P (t) && DECL_CONTEXT (t)) in pp_cxx_id_expression()
1378 pp->enclosing_scope = DECL_CONTEXT (t); in pp_cxx_function_definition()
1544 if (DECL_CONTEXT (t)) in pp_cxx_statement()
1545 pp_cxx_nested_name_specifier (pp, DECL_CONTEXT (t)); in pp_cxx_statement()
1733 if (DECL_CONTEXT (t)) in pp_cxx_original_namespace_definition()
1734 pp_cxx_nested_name_specifier (pp, DECL_CONTEXT (t)); in pp_cxx_original_namespace_definition()
[all …]
HDexpr.c57 while (!same_type_p (DECL_CONTEXT (member), in cplus_expand_constant()
64 DECL_CONTEXT (member)); in cplus_expand_constant()
HDdecl.c1583 if (DECL_CONTEXT (olddecl)) in duplicate_decls()
1584 DECL_CONTEXT (newdecl) = DECL_CONTEXT (olddecl); in duplicate_decls()
2117 && DECL_CONTEXT (olddecl) != DECL_CONTEXT (newdecl) in redeclaration_error_message()
2242 DECL_CONTEXT (decl) = current_function_decl; in make_label_decl()
2290 if (decl != NULL_TREE && DECL_CONTEXT (decl) == current_function_decl) in lookup_label()
2791 DECL_CONTEXT (d) = FROB_CONTEXT (context); in build_typename_type()
2977 DECL_CONTEXT (d) = FROB_CONTEXT (context); in make_unbound_class_template()
3281 DECL_CONTEXT (bad_alloc_decl) = current_namespace; in cxx_init_decl_processing()
3372 DECL_CONTEXT (decl) = current_function_decl; in cp_make_fname_decl()
3420 DECL_CONTEXT (decl) = context; in builtin_function_1()
[all …]
HDmethod.c128 gcc_assert (TYPE_SIZE (DECL_CONTEXT (function)) in make_thunk()
129 && TYPE_BEING_DEFINED (DECL_CONTEXT (function))); in make_thunk()
136 DECL_CONTEXT (thunk) = DECL_CONTEXT (function); in make_thunk()
269 DECL_CONTEXT (alias) = NULL; in make_alias_for()
416 DECL_CONTEXT (x) = thunk_fndecl; in use_thunk()
757 = DECL_SOURCE_LOCATION (TYPE_NAME (DECL_CONTEXT (fndecl))); in synthesize_method()
HDpt.c179 push_nested_class (DECL_CONTEXT (t)); in push_access_scope()
802 && CLASS_TYPE_P (DECL_CONTEXT (tmpl)) in optimize_specialization_lookup_p()
808 && !CLASSTYPE_TEMPLATE_SPECIALIZATION (DECL_CONTEXT (tmpl)) in optimize_specialization_lookup_p()
860 class_template = CLASSTYPE_TI_TEMPLATE (DECL_CONTEXT (tmpl)); in retrieve_specialization()
1014 template_depth = template_class_depth (DECL_CONTEXT (friend)); in is_specialization_of_friend()
1017 && is_specialization_of (TYPE_NAME (DECL_CONTEXT (decl)), in is_specialization_of_friend()
1018 CLASSTYPE_TI_TEMPLATE (DECL_CONTEXT (friend)))) in is_specialization_of_friend()
1036 tree context = DECL_CONTEXT (decl); in is_specialization_of_friend()
1255 DECL_CONTEXT (spec) = FROB_CONTEXT (decl_namespace_context (tmpl)); in register_specialization()
2198 DECL_CONTEXT (decl) = DECL_CONTEXT (tmpl); in check_explicit_specialization()
[all …]
HDerror.c753 gcc_assert (TYPE_P (DECL_CONTEXT (t))); in dump_decl()
754 dump_type (DECL_CONTEXT (t), flags); in dump_decl()
830 dump_type (DECL_CONTEXT (t), flags); in dump_decl()
833 else if (DECL_CONTEXT (t)) in dump_decl()
835 dump_decl (DECL_CONTEXT (t), flags); in dump_decl()
1030 cname = DECL_CONTEXT (t); in dump_function_decl()
1177 name = constructor_name (DECL_CONTEXT (t)); in dump_function_name()
1409 dump_type (DECL_CONTEXT (fn), flags); in dump_expr()
2010 if (TREE_CODE (t) == PARM_DECL && DECL_CONTEXT (t)) in location_of()
2011 t = DECL_CONTEXT (t); in location_of()
HDname-lookup.c586 && !DECL_CONTEXT (x)) in pushdecl_maybe_friend()
587 DECL_CONTEXT (x) = current_function_decl; in pushdecl_maybe_friend()
610 t = namespace_binding (name, DECL_CONTEXT (x)); in pushdecl_maybe_friend()
627 t = namespace_binding (name, DECL_CONTEXT (x)); in pushdecl_maybe_friend()
694 gcc_assert (DECL_CONTEXT (t)); in pushdecl_maybe_friend()
945 if (DECL_CONTEXT (oldlocal) == current_function_decl in pushdecl_maybe_friend()
1045 && DECL_CONTEXT (decl) != NULL_TREE in maybe_push_decl()
1048 && TREE_CODE (DECL_CONTEXT (decl)) != NAMESPACE_DECL) in maybe_push_decl()
1894 old = namespace_binding (name, DECL_CONTEXT (decl)); in push_overloaded_decl()
2297 child = DECL_CONTEXT (child); in is_ancestor()
[all …]
HDfriend.c99 context = DECL_CONTEXT (supplicant); in is_friend()
172 ctx = DECL_CONTEXT (decl); in add_friend()
HDsemantics.c1458 access_type = DECL_CONTEXT (access_type); in finish_non_static_data_member()
1862 object = build_dummy_object (DECL_CONTEXT (representative_fn)); in finish_call_expr()
2283 DECL_CONTEXT (decl) = current_class_type; in finish_member_declaration()
2478 cl = currently_open_derived_class (DECL_CONTEXT (fn)); in baselink_for_fns()
2480 cl = DECL_CONTEXT (fn); in baselink_for_fns()
2497 if (context == DECL_CONTEXT (decl)) in block_var_ok_for_context()
2499 decl = DECL_CONTEXT (decl); in block_var_ok_for_context()
2984 decl = maybe_dummy_object (DECL_CONTEXT (first_fn), 0); in finish_id_expression()
2995 && DECL_CONTEXT (decl) != current_class_type) in finish_id_expression()
2999 path = currently_open_derived_class (DECL_CONTEXT (decl)); in finish_id_expression()
HDclass.c565 vcontext = DECL_CONTEXT (vfield); in build_vfield_ref()
692 DECL_CONTEXT (decl) = class_type; in build_vtable()
1054 if (DECL_CONTEXT (fn) == type) in add_method()
1057 if (DECL_CONTEXT (fn) == DECL_CONTEXT (method)) in add_method()
1178 if (DECL_P (old_value) && DECL_CONTEXT (old_value) == t) in handle_using_decl()
2882 DECL_CONTEXT (x) = t; in check_field_decls()
3857 DECL_CONTEXT (parms) = clone; in build_clone()
3907 add_method (DECL_CONTEXT (clone), clone, NULL_TREE); in clone_function_decl()
3910 add_method (DECL_CONTEXT (clone), clone, NULL_TREE); in clone_function_decl()
3929 add_method (DECL_CONTEXT (clone), clone, NULL_TREE); in clone_function_decl()
[all …]
HDinit.c591 for (field_type = DECL_CONTEXT (field); in sort_mem_initializers()
616 field_type = DECL_CONTEXT (field); in sort_mem_initializers()
622 last_field_type = DECL_CONTEXT (last_field); in sort_mem_initializers()
891 tree t = DECL_CONTEXT (field); in initializing_context()
1475 && CLASSTYPE_TEMPLATE_INFO (DECL_CONTEXT (decl)) in constant_value_1()
1477 (DECL_CONTEXT (decl)))) in constant_value_1()
2345 DECL_CONTEXT (decl) = current_function_decl; in create_temporary_var()
HDcall.c2242 && CLASSTYPE_VBASECLASSES (DECL_CONTEXT (tmpl))) in add_template_candidate_real()
4319 tree t = build_int_cst (build_pointer_type (DECL_CONTEXT (convfn)), in convert_like_real()
4992 if (TYPE_HAS_COMPLEX_INIT_REF (DECL_CONTEXT (fn))) in build_over_call()
5004 else if (TYPE_HAS_TRIVIAL_INIT_REF (DECL_CONTEXT (fn))) in build_over_call()
5005 return build_target_expr_with_type (arg, DECL_CONTEXT (fn)); in build_over_call()
5008 || TYPE_HAS_TRIVIAL_INIT_REF (DECL_CONTEXT (fn))) in build_over_call()
5013 val = build2 (INIT_EXPR, DECL_CONTEXT (fn), to, arg); in build_over_call()
5019 && TYPE_HAS_TRIVIAL_ASSIGN_REF (DECL_CONTEXT (fn))) in build_over_call()
5059 DECL_CONTEXT (fn), in build_over_call()
5067 if (DECL_CONTEXT (fn) && TYPE_JAVA_INTERFACE (DECL_CONTEXT (fn))) in build_over_call()
[all …]
HDrepo.c297 type = DECL_CONTEXT (decl); in repo_emit_p()
HDsearch.c518 && same_type_p (DECL_CONTEXT (current_function_decl), in current_scope()
571 tree context = DECL_CONTEXT (decl); in context_for_name_lookup()
808 && friend_accessible_p (DECL_CONTEXT (scope), decl, binfo)) in friend_accessible_p()
1961 else if (DECL_CONTEXT (fn) != type) in look_for_overrides_here()
HDtree.c259 DECL_CONTEXT (slot) = current_function_decl; in build_local_temp()
1417 decl = DECL_CONTEXT (decl); in decl_anon_ns_mem_p()
1675 const tree ctx = DECL_CONTEXT (decl); in member_p()
2136 return (DECL_P (var) && DECL_CONTEXT (var) == fn in cp_auto_var_in_fn_p()
/NextBSD/contrib/gcc/config/i386/
HDwinnt.c111 return (DECL_CONTEXT (decl) && TYPE_P (DECL_CONTEXT (decl))) in associated_type()
112 ? DECL_CONTEXT (decl) : NULL_TREE; in associated_type()
HDwinnt-cxx.c73 if (decl == CLASSTYPE_KEY_METHOD (DECL_CONTEXT (decl))) in i386_pe_type_dllimport_p()
/NextBSD/contrib/gcc/
HDlanghooks.c176 if (TREE_PUBLIC (decl) || DECL_CONTEXT (decl) == NULL_TREE) in lhd_set_decl_assembler_name()
354 return (DECL_P (var) && DECL_CONTEXT (var) == fn in lhd_tree_inlining_auto_var_in_fn_p()
HDdbxout.c1507 dbxout_type (DECL_CONTEXT (decl), 0); in dbxout_type_method_1()
2752 && (DECL_CONTEXT (decl) == NULL_TREE in dbxout_symbol()
2753 || TREE_CODE (DECL_CONTEXT (decl)) == BLOCK in dbxout_symbol()
2754 || TREE_CODE (DECL_CONTEXT (decl)) == NAMESPACE_DECL) in dbxout_symbol()
3053 if (DECL_CONTEXT (decl) in dbxout_symbol_name()
3054 && (TYPE_P (DECL_CONTEXT (decl)) in dbxout_symbol_name()
3055 || TREE_CODE (DECL_CONTEXT (decl)) == NAMESPACE_DECL)) in dbxout_symbol_name()
HDc-decl.c863 DECL_CONTEXT (p) = context; in pop_scope()
1006 TYPE_CONTEXT (type) = DECL_CONTEXT (TYPE_STUB_DECL (type)); in pushtag()
1403 if (DECL_CONTEXT (olddecl)) in diagnose_mismatched_decls()
1825 DECL_CONTEXT (newdecl) = DECL_CONTEXT (olddecl); in merge_decls()
1914 tree olddecl_context = DECL_CONTEXT (olddecl); in merge_decls()
1941 DECL_CONTEXT (olddecl) = olddecl_context; in merge_decls()
2125 DECL_CONTEXT (x) = current_function_decl; in pushdecl()
2549 DECL_CONTEXT (label) = current_function_decl; in make_label()
2576 if (label && (DECL_CONTEXT (label) == current_function_decl in lookup_label()
2641 && ((DECL_CONTEXT (label) == current_function_decl in define_label()
[all …]
HDtree-nrv.c158 || DECL_CONTEXT (found) != current_function_decl in tree_nrv()
HDcgraph.c223 if (DECL_CONTEXT (decl) && TREE_CODE (DECL_CONTEXT (decl)) == FUNCTION_DECL) in cgraph_node()
225 node->origin = cgraph_node (DECL_CONTEXT (decl)); in cgraph_node()
HDtree-nested.c148 DECL_CONTEXT (tmp_var) = info->context; in create_tmp_var_for()
196 DECL_CONTEXT (field) = type; in insert_field_into_struct()
345 DECL_CONTEXT (decl) = info->context; in get_chain_decl()
909 DECL_CONTEXT (new_decl) = info->context; in get_nonlocal_debug_decl()
1217 DECL_CONTEXT (new_decl) = info->context; in get_local_debug_decl()
HDtree-inline.c186 if (TREE_CODE (DECL_CONTEXT (t)) == QUAL_UNION_TYPE) in remap_decl()
298 DECL_CONTEXT (t) = new; in remap_type_1()
524 && (! DECL_CONTEXT (*tp) in copy_body_r()
2604 if (!DECL_CONTEXT (decl)) in copy_decl_for_dup_finish()
2607 else if (DECL_CONTEXT (decl) != id->src_fn) in copy_decl_for_dup_finish()
2618 DECL_CONTEXT (copy) = id->dst_fn; in copy_decl_for_dup_finish()

1234