Home
last modified time | relevance | path

Searched refs:current_class_type (Results 1 – 25 of 45) sorted by relevance

12

/openbsd/src/gnu/usr.bin/gcc/gcc/cp/
Dmethod.c169 tree access_type = current_class_type;
245 && DECL_CONTEXT (value) != current_class_type)
544 if (TYPE_HAS_TRIVIAL_INIT_REF (current_class_type)
545 && is_empty_class (current_class_type))
548 else if (TYPE_HAS_TRIVIAL_INIT_REF (current_class_type))
555 tree fields = TYPE_FIELDS (current_class_type);
556 int n_bases = CLASSTYPE_N_BASECLASSES (current_class_type);
557 tree binfos = TYPE_BINFO_BASETYPES (current_class_type);
567 for (t = CLASSTYPE_VBASECLASSES (current_class_type); t;
649 if (TYPE_HAS_TRIVIAL_ASSIGN_REF (current_class_type)
[all …]
Dfriend.c357 else if (template_class_depth (current_class_type))
364 add_friend (current_class_type, decl);
373 add_friend (current_class_type, decl);
390 SET_DECL_FRIEND_CONTEXT (decl, current_class_type);
403 || template_class_depth (current_class_type) != 0)
440 add_friend (current_class_type,
Dsemantics.c1272 if (current_class_type in finish_call_expr()
1274 current_class_type) in finish_call_expr()
1831 DECL_CONTEXT (decl) = current_class_type;
1848 add_method (current_class_type, decl, /*error_p=*/0);
1850 TREE_CHAIN (decl) = TYPE_METHODS (current_class_type);
1851 TYPE_METHODS (current_class_type) = decl;
1853 maybe_add_class_template_decl_list (current_class_type, decl,
1877 TYPE_FIELDS (current_class_type)
1878 = chainon (TYPE_FIELDS (current_class_type), decl);
1881 TREE_CHAIN (decl) = TYPE_FIELDS (current_class_type);
[all …]
Dinit.c680 mem_inits = sort_mem_initializers (current_class_type, mem_inits); in emit_mem_initializers()
971 switch (CLASSTYPE_N_BASECLASSES (current_class_type)) in expand_member_init()
975 current_class_type); in expand_member_init()
978 basetype = TYPE_BINFO_BASETYPE (current_class_type, 0); in expand_member_init()
982 current_class_type); in expand_member_init()
1003 binfo = lookup_base (current_class_type, basetype, in expand_member_init()
1008 binfo = binfo_for_vbase (basetype, current_class_type); in expand_member_init()
1010 != TYPE_BINFO (current_class_type)) in expand_member_init()
1015 if (TYPE_USES_VIRTUAL_BASECLASSES (current_class_type)) in expand_member_init()
1017 name, current_class_type); in expand_member_init()
[all …]
Ddecl.c1399 if (is_properly_derived_from (current_class_type, context))
1908 class_binding_level->this_class = current_class_type; in pushlevel_class()
1964 previous_class_type = current_class_type; in poplevel_class()
2902 if (!COMPLETE_TYPE_P (current_class_type))
2904 maybe_add_class_template_decl_list (current_class_type,
2906 CLASSTYPE_NESTED_UDTS (current_class_type) =
3078 if (!COMPLETE_TYPE_P (current_class_type))
3080 maybe_add_class_template_decl_list (current_class_type,
3082 CLASSTYPE_NESTED_UDTS (current_class_type) = b->type_decls;
3541 else if (current_class_type == NULL_TREE
[all …]
Dsearch.c577 return current_class_type; in current_scope()
578 if (current_class_type == NULL_TREE) in current_scope()
582 current_class_type)) in current_scope()
585 current_class_type))) in current_scope()
588 return current_class_type; in current_scope()
1085 if (current_class_type)
1086 protected_ok = protected_accessible_p (decl, current_class_type, binfo);
1474 if (xbasetype == current_class_type && TYPE_BEING_DEFINED (xbasetype)
1604 if (TYPE_MAIN_DECL (current_class_type))
1609 for (t = TYPE_MAIN_DECL (current_class_type);
[all …]
Dspew.c609 if (DECL_ARTIFICIAL (decl) && TREE_TYPE (decl) == current_class_type)
1211 || (current_class_type && TYPE_REDEFINED (current_class_type)))
1297 if (current_class_type && TYPE_BEING_DEFINED (current_class_type)) in maybe_snarf_defarg()
1315 TREE_TYPE (defarg_fns) = current_class_type;
Ddecl2.c811 DECL_CONTEXT (decl) = current_class_type;
817 if (!asmspec_tree && current_class_type)
827 if (LOCAL_CLASS_P (current_class_type))
829 current_class_type, decl);
954 DECL_CONTEXT (value) = current_class_type;
2769 if (! global_bindings_p () || current_class_type || decl_namespace_list) in finish_file()
3394 && (!current_class_type
3395 || !lookup_member (current_class_type, id, 0, 0)))
3585 if (current_class_type in build_call_from_tree()
3591 f = lookup_member (current_class_type, DECL_NAME (f), in build_call_from_tree()
[all …]
Dtree.c1828 if (current_class_type
1829 && (binfo = lookup_base (current_class_type, type,
1831 context = current_class_type;
1842 if (current_class_ref && context == current_class_type
1847 current_class_type))
Dparse.y142 if (in_system_header && current_class_type == NULL in empty_parms()
4166 if (IDENTIFIER_TYPENAME_P (fn) && current_class_type)
4168 f = lookup_member (current_class_type, fn,
4191 if (DERIVED_FROM_P (scope, current_class_type)
4194 fn = build_baselink (lookup_base (current_class_type,
4198 TYPE_BINFO (current_class_type),
4207 access_scope = current_class_type;
Dclass.c2889 maybe_add_class_template_decl_list (current_class_type, *f, /*friend_p=*/0);
5538 if (current_class_type)
5788 current_class_stack[current_class_depth].type = current_class_type;
5797 current_class_type = type;
5880 current_class_type = current_class_stack[current_class_depth].type; in popclass()
5895 if (t == current_class_type)
5913 if (DERIVED_FROM_P (t, current_class_type))
5914 return current_class_type;
5958 tree context = DECL_CONTEXT (TYPE_MAIN_DECL (current_class_type)); in pop_nested_class()
6606 tree name = constructor_name (current_class_type); in build_self_reference()
[all …]
Dpt.c2553 if (current_class_type
2554 && !TYPE_BEING_DEFINED (current_class_type)
2559 && same_type_p (DECL_CONTEXT (decl), current_class_type))
2562 current_class_type)))
2627 if (current_class_type && TYPE_BEING_DEFINED (current_class_type))
2636 last_level_to_check = template_class_depth (current_class_type) + 1;
2909 && !(is_friend && template_class_depth (current_class_type) > 0))
3520 && is_base_of_enclosing_class (arg, current_class_type))
4329 for (ctx = current_class_type;
4900 tree ns = decl_namespace_context (TYPE_MAIN_DECL (current_class_type));
/openbsd/src/gnu/gcc/gcc/cp/
Dfriend.c445 int class_template_depth = template_class_depth (current_class_type); in do_friend()
492 add_friend (current_class_type, decl, /*complain=*/true); in do_friend()
510 SET_DECL_FRIEND_CONTEXT (decl, current_class_type); in do_friend()
523 || template_class_depth (current_class_type) != 0) in do_friend()
567 add_friend (current_class_type, in do_friend()
Dmethod.c541 if (TYPE_HAS_TRIVIAL_INIT_REF (current_class_type) in do_build_copy_constructor()
542 && is_empty_class (current_class_type)) in do_build_copy_constructor()
545 else if (TYPE_HAS_TRIVIAL_INIT_REF (current_class_type)) in do_build_copy_constructor()
552 tree fields = TYPE_FIELDS (current_class_type); in do_build_copy_constructor()
564 for (vbases = CLASSTYPE_VBASECLASSES (current_class_type), i = 0; in do_build_copy_constructor()
575 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_build_copy_constructor()
642 if (TYPE_HAS_TRIVIAL_ASSIGN_REF (current_class_type) in do_build_assign_ref()
643 && is_empty_class (current_class_type)) in do_build_assign_ref()
646 else if (TYPE_HAS_TRIVIAL_ASSIGN_REF (current_class_type)) in do_build_assign_ref()
659 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_build_assign_ref()
[all …]
Dinit.c668 if (!COMPLETE_TYPE_P (current_class_type)) in emit_mem_initializers()
673 mem_inits = sort_mem_initializers (current_class_type, mem_inits); in emit_mem_initializers()
963 switch (BINFO_N_BASE_BINFOS (TYPE_BINFO (current_class_type))) in expand_member_init()
967 current_class_type); in expand_member_init()
971 (BINFO_BASE_BINFO (TYPE_BINFO (current_class_type), 0)); in expand_member_init()
975 current_class_type); in expand_member_init()
999 class_binfo = TYPE_BINFO (current_class_type); in expand_member_init()
1011 virtual_binfo = binfo_for_vbase (basetype, current_class_type); in expand_member_init()
1027 if (CLASSTYPE_VBASECLASSES (current_class_type)) in expand_member_init()
1029 basetype, current_class_type); in expand_member_init()
[all …]
Dsemantics.c1511 && DERIVED_FROM_P (scope, current_class_type)) in check_accessibility_of_qualified_id()
1512 qualifying_type = current_class_type; in check_accessibility_of_qualified_id()
1590 && current_class_type in finish_qualified_id_expr()
1591 && DERIVED_FROM_P (qualifying_class, current_class_type)) in finish_qualified_id_expr()
1819 if (current_class_type in finish_call_expr()
1821 current_class_type) in finish_call_expr()
2240 DECL_CONTEXT (decl) = current_class_type; in finish_member_declaration()
2257 if (add_method (current_class_type, decl, NULL_TREE)) in finish_member_declaration()
2259 TREE_CHAIN (decl) = TYPE_METHODS (current_class_type); in finish_member_declaration()
2260 TYPE_METHODS (current_class_type) = decl; in finish_member_declaration()
[all …]
Dname-lookup.c986 member = lookup_member (current_class_type, in pushdecl_maybe_friend()
2284 || !same_type_p (current_class_type, t)) in push_scope()
2420 class_binding_level = begin_scope (sk_class, current_class_type); in pushlevel_class()
2619 gcc_assert (TYPE_BEING_DEFINED (current_class_type)); in push_class_level_binding()
2652 && DECL_CONTEXT (x) != current_class_type)) in push_class_level_binding()
2653 && DECL_NAME (x) == constructor_name (current_class_type)) in push_class_level_binding()
2656 if (TYPE_P (scope) && same_type_p (scope, current_class_type)) in push_class_level_binding()
2792 if (constructor_name_p (name, current_class_type)) in do_class_using_decl()
2795 scope, name, current_class_type); in do_class_using_decl()
2806 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_class_using_decl()
[all …]
Ddecl.c3722 && (!current_class_type in check_tag_decl()
3723 || current_scope () != current_class_type)) in check_tag_decl()
5175 if (current_class_type in cp_finish_decl()
5176 && CP_DECL_CONTEXT (decl) == current_class_type in cp_finish_decl()
5177 && TYPE_BEING_DEFINED (current_class_type) in cp_finish_decl()
6102 == current_class_type); in grokfndecl()
7024 tree ctype = current_class_type; in grokdeclarator()
7101 && current_class_type in grokdeclarator()
7103 current_class_type)) in grokdeclarator()
7106 ctype, current_class_type); in grokdeclarator()
[all …]
Dsearch.c516 if (current_function_decl && current_class_type in current_scope()
519 current_class_type)) in current_scope()
522 current_class_type)))) in current_scope()
524 if (current_class_type) in current_scope()
525 return current_class_type; in current_scope()
915 if (current_class_type) in accessible_p()
917 current_class_type, binfo); in accessible_p()
Dtree.c1699 if (current_class_type in maybe_dummy_object()
1700 && (binfo = lookup_base (current_class_type, type, in maybe_dummy_object()
1702 context = current_class_type; in maybe_dummy_object()
1713 if (current_class_ref && context == current_class_type in maybe_dummy_object()
1718 current_class_type)) in maybe_dummy_object()
Dclass.c360 t = TREE_TYPE (TYPE_VFIELD (current_class_type)); in build_base_path()
5233 if (current_class_type) in finish_struct()
5485 csn->type = current_class_type; in pushclass()
5495 current_class_type = type; in pushclass()
5539 current_class_type = current_class_stack[current_class_depth].type; in popclass()
5577 c = current_class_type; in currently_open_class()
5605 if (!current_class_type) in currently_open_derived_class()
5608 if (DERIVED_FROM_P (t, current_class_type)) in currently_open_derived_class()
5609 return current_class_type; in currently_open_derived_class()
5654 tree context = DECL_CONTEXT (TYPE_MAIN_DECL (current_class_type)); in pop_nested_class()
[all …]
Ddecl2.c716 DECL_CONTEXT (decl) = current_class_type; in finish_static_data_member_decl()
725 if (LOCAL_CLASS_P (current_class_type)) in finish_static_data_member_decl()
727 current_class_type, decl); in finish_static_data_member_decl()
791 && DECL_CONTEXT (value) != current_class_type) in grokfield()
804 DECL_CONTEXT (value) = current_class_type; in grokfield()
3046 if (! global_bindings_p () || current_class_type || decl_namespace_list) in cp_finish_file()
Dpt.c2871 if (current_class_type in check_default_tmpl_args()
2872 && !TYPE_BEING_DEFINED (current_class_type) in check_default_tmpl_args()
2877 ? same_type_p (DECL_CONTEXT (decl), current_class_type) in check_default_tmpl_args()
2879 ? same_type_p (DECL_FRIEND_CONTEXT (decl), current_class_type) in check_default_tmpl_args()
2950 if (current_class_type && TYPE_BEING_DEFINED (current_class_type)) in check_default_tmpl_args()
2959 last_level_to_check = template_class_depth (current_class_type) + 1; in check_default_tmpl_args()
3275 && !(is_friend && template_class_depth (current_class_type) > 0)) in push_template_decl_real()
4735 for (ctx = current_class_type; in lookup_template_class()
5316 tree ns = decl_namespace_context (TYPE_MAIN_DECL (current_class_type)); in tsubst_friend_function()
7894 object_type = current_class_type; in tsubst_baselink()
[all …]
/openbsd/src/gnu/gcc/gcc/config/arm/
Dpe.c40 tree current_class_type; /* FIXME */ variable
/openbsd/src/gnu/usr.bin/gcc/gcc/config/arm/
Dpe.c37 tree current_class_type; /* FIXME */ variable

12