Home
last modified time | relevance | path

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

123

/netbsd-src/external/gpl3/gcc.old/dist/gcc/cp/
H A Dlambda.c651 if (current_class_type in add_capture()
652 && current_class_type == LAMBDA_EXPR_CLOSURE (lambda)) in add_capture()
654 if (COMPLETE_TYPE_P (current_class_type)) in add_capture()
704 tree saved_class_type = current_class_type; in add_default_capture()
712 current_class_type = LAMBDA_EXPR_CLOSURE (lambda); in add_default_capture()
738 current_class_type = saved_class_type; in add_default_capture()
882 tree type = current_class_type; in current_lambda_expr()
903 if (type != current_class_type in resolvable_dummy_lambda()
904 && current_class_type in resolvable_dummy_lambda()
905 && LAMBDA_TYPE_P (current_class_type) in resolvable_dummy_lambda()
[all …]
H A Dfriend.c539 int class_template_depth = template_class_depth (current_class_type); in do_friend()
591 add_friend (current_class_type, decl, /*complain=*/true); in do_friend()
609 SET_DECL_FRIEND_CONTEXT (decl, current_class_type); in do_friend()
622 || template_class_depth (current_class_type) != 0) in do_friend()
666 add_friend (current_class_type, in do_friend()
H A Dinit.c530 tree type = current_class_type; in perform_target_ctor()
1284 if (!COMPLETE_TYPE_P (current_class_type)) in emit_mem_initializers()
1289 && same_type_p (TREE_PURPOSE (mem_inits), current_class_type)) in emit_mem_initializers()
1303 mem_inits = sort_mem_initializers (current_class_type, mem_inits); in emit_mem_initializers()
1355 else if (!ABSTRACT_CLASS_TYPE_P (current_class_type)) in emit_mem_initializers()
1612 switch (BINFO_N_BASE_BINFOS (TYPE_BINFO (current_class_type))) in expand_member_init()
1616 current_class_type); in expand_member_init()
1620 (BINFO_BASE_BINFO (TYPE_BINFO (current_class_type), 0)); in expand_member_init()
1624 current_class_type); in expand_member_init()
1646 || same_type_p (basetype, current_class_type)) in expand_member_init()
[all …]
H A Dmethod.c615 if (!binfo_inherited_from (TYPE_BINFO (current_class_type), binfo, inh)) in add_one_base_init()
654 if (is_empty_class (current_class_type)) in do_build_copy_constructor()
657 else if (tree_int_cst_equal (TYPE_SIZE (current_class_type), in do_build_copy_constructor()
658 CLASSTYPE_SIZE (current_class_type))) in do_build_copy_constructor()
666 tree base_size = CLASSTYPE_SIZE_UNIT (current_class_type); in do_build_copy_constructor()
691 for (vbases = CLASSTYPE_VBASECLASSES (current_class_type), i = 0; in do_build_copy_constructor()
698 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_build_copy_constructor()
711 for (tree fields = TYPE_FIELDS (current_class_type); in do_build_copy_constructor()
776 && is_empty_class (current_class_type)) in do_build_copy_assign()
792 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_build_copy_assign()
[all …]
H A Ddecl.c5056 && (!current_class_type in check_tag_decl()
5057 || current_scope () != current_class_type)) in check_tag_decl()
7536 = (current_class_type in cp_finish_decl()
7537 && CP_DECL_CONTEXT (decl) == current_class_type in cp_finish_decl()
7538 && TYPE_BEING_DEFINED (current_class_type) in cp_finish_decl()
7539 && !CLASSTYPE_TEMPLATE_INSTANTIATION (current_class_type)); in cp_finish_decl()
9491 tree ctx = friendp ? current_class_type : ctype; in grokfndecl()
10284 if (!current_class_type || !TYPE_BEING_DEFINED (current_class_type)) in check_static_variable_definition()
11078 tree ctype = current_class_type; in grokdeclarator()
11198 && current_class_type in grokdeclarator()
[all …]
H A Dname-lookup.c4083 || !same_type_p (current_class_type, t)) in push_scope()
4218 class_binding_level = begin_scope (sk_class, current_class_type); in pushlevel_class()
4305 if (current_class_type != class_binding_level->this_entity) in pushdecl_class_level()
4442 gcc_assert (TYPE_BEING_DEFINED (current_class_type) in push_class_level_binding_1()
4445 gcc_assert (current_class_type == class_binding_level->this_entity); in push_class_level_binding_1()
4480 && DECL_CONTEXT (x) != current_class_type)) in push_class_level_binding_1()
4481 && DECL_NAME (x) == DECL_NAME (TYPE_NAME (current_class_type))) in push_class_level_binding_1()
4484 if (TYPE_P (scope) && same_type_p (scope, current_class_type)) in push_class_level_binding_1()
4933 if (current_class_type) in current_decl_namespace()
4934 result = decl_namespace_context (current_class_type); in current_decl_namespace()
[all …]
H A Dsearch.c379 if (current_function_decl && current_class_type in current_scope()
382 current_class_type)) in current_scope()
385 current_class_type)))) in current_scope()
388 if (current_class_type) in current_scope()
389 return current_class_type; in current_scope()
H A Dclass.c454 t = TREE_TYPE (TYPE_VFIELD (current_class_type)); in build_base_path()
7717 if (current_class_type) in finish_struct()
8007 csn->type = current_class_type; in pushclass()
8017 current_class_type = type; in pushclass()
8051 current_class_type = current_class_stack[current_class_depth].type; in popclass()
8096 c = current_class_type; in currently_open_class()
8124 if (!current_class_type) in currently_open_derived_class()
8127 if (DERIVED_FROM_P (t, current_class_type)) in currently_open_derived_class()
8128 return current_class_type; in currently_open_derived_class()
8147 if (!current_class_type) in outermost_open_class()
[all …]
H A Ddecl2.c769 DECL_CONTEXT (decl) = current_class_type; in finish_static_data_member_decl()
778 if (LOCAL_CLASS_P (current_class_type) in finish_static_data_member_decl()
783 current_class_type, decl); in finish_static_data_member_decl()
785 for (tree t = current_class_type; TYPE_P (t); in finish_static_data_member_decl()
872 DECL_CONTEXT (value) = current_class_type; in grokfield()
975 && DECL_CONTEXT (value) != current_class_type) in grokfield()
980 DECL_CONTEXT (value) = current_class_type; in grokfield()
4824 if (! global_bindings_p () || current_class_type in c_parse_final_cleanups()
H A Dtypeck2.c434 if (current_class_type in cxx_incomplete_type_inform()
435 && TYPE_BEING_DEFINED (current_class_type) in cxx_incomplete_type_inform()
436 && same_type_p (ptype, current_class_type)) in cxx_incomplete_type_inform()
H A Dsemantics.c3238 gcc_assert (TYPE_BEING_DEFINED (current_class_type) in finish_member_declaration()
3257 DECL_CONTEXT (decl) = current_class_type; in finish_member_declaration()
3285 add = add_method (current_class_type, decl, false); in finish_member_declaration()
3288 else if (CLASSTYPE_LAMBDA_EXPR (current_class_type) in finish_member_declaration()
3305 TYPE_FIELDS (current_class_type) in finish_member_declaration()
3306 = chainon (TYPE_FIELDS (current_class_type), decl); in finish_member_declaration()
3309 DECL_CHAIN (decl) = TYPE_FIELDS (current_class_type); in finish_member_declaration()
3310 TYPE_FIELDS (current_class_type) = decl; in finish_member_declaration()
3313 maybe_add_class_template_decl_list (current_class_type, decl, in finish_member_declaration()
3983 if (context != current_class_type) in finish_id_expression_1()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/cp/
H A Dfriend.cc550 int class_template_depth = template_class_depth (current_class_type); in do_friend()
602 add_friend (current_class_type, decl, /*complain=*/true); in do_friend()
614 SET_DECL_FRIEND_CONTEXT (decl, current_class_type); in do_friend()
627 || template_class_depth (current_class_type) != 0) in do_friend()
671 add_friend (current_class_type, in do_friend()
H A Dlambda.cc650 if (current_class_type in add_capture()
651 && current_class_type == LAMBDA_EXPR_CLOSURE (lambda)) in add_capture()
653 if (COMPLETE_TYPE_P (current_class_type)) in add_capture()
703 tree saved_class_type = current_class_type; in add_default_capture()
711 current_class_type = LAMBDA_EXPR_CLOSURE (lambda); in add_default_capture()
737 current_class_type = saved_class_type; in add_default_capture()
881 tree type = current_class_type; in current_lambda_expr()
902 if (type != current_class_type in resolvable_dummy_lambda()
903 && current_class_type in resolvable_dummy_lambda()
904 && LAMBDA_TYPE_P (current_class_type) in resolvable_dummy_lambda()
[all …]
H A Dinit.cc541 tree type = current_class_type; in perform_target_ctor()
1488 if (!COMPLETE_TYPE_P (current_class_type)) in emit_mem_initializers()
1496 for (tree f = next_initializable_field (TYPE_FIELDS (current_class_type)); in emit_mem_initializers()
1505 && same_type_p (TREE_PURPOSE (mem_inits), current_class_type)) in emit_mem_initializers()
1510 find_uninit_fields (&ctor, &uninitialized, current_class_type); in emit_mem_initializers()
1520 mem_inits = sort_mem_initializers (current_class_type, mem_inits); in emit_mem_initializers()
1575 else if (!ABSTRACT_CLASS_TYPE_P (current_class_type)) in emit_mem_initializers()
1838 switch (BINFO_N_BASE_BINFOS (TYPE_BINFO (current_class_type))) in expand_member_init()
1842 current_class_type); in expand_member_init()
1846 (BINFO_BASE_BINFO (TYPE_BINFO (current_class_type), 0)); in expand_member_init()
[all …]
H A Dmethod.cc638 if (!binfo_inherited_from (TYPE_BINFO (current_class_type), binfo, inh)) in add_one_base_init()
677 if (is_empty_class (current_class_type)) in do_build_copy_constructor()
680 else if (tree_int_cst_equal (TYPE_SIZE (current_class_type), in do_build_copy_constructor()
681 CLASSTYPE_SIZE (current_class_type))) in do_build_copy_constructor()
689 tree base_size = CLASSTYPE_SIZE_UNIT (current_class_type); in do_build_copy_constructor()
714 for (vbases = CLASSTYPE_VBASECLASSES (current_class_type), i = 0; in do_build_copy_constructor()
721 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_build_copy_constructor()
734 for (tree fields = TYPE_FIELDS (current_class_type); in do_build_copy_constructor()
799 && is_empty_class (current_class_type)) in do_build_copy_assign()
815 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_build_copy_assign()
[all …]
H A Ddecl.cc5386 && (!current_class_type in check_tag_decl()
5387 || current_scope () != current_class_type)) in check_tag_decl()
8109 = (current_class_type in cp_finish_decl()
8110 && CP_DECL_CONTEXT (decl) == current_class_type in cp_finish_decl()
8111 && TYPE_BEING_DEFINED (current_class_type) in cp_finish_decl()
8112 && !CLASSTYPE_TEMPLATE_INSTANTIATION (current_class_type)); in cp_finish_decl()
10118 tree ctx = friendp ? current_class_type : ctype; in grokfndecl()
10923 if (!current_class_type || !TYPE_BEING_DEFINED (current_class_type)) in check_static_variable_definition()
11748 tree ctype = current_class_type; in grokdeclarator()
11872 && current_class_type in grokdeclarator()
[all …]
H A Dclass.cc458 t = TREE_TYPE (TYPE_VFIELD (current_class_type)); in build_base_path()
1329 bool added = add_method (current_class_type, f, true); in maybe_push_used_methods()
1332 alter_access (current_class_type, f, current_access_specifier); in maybe_push_used_methods()
1337 for (tree d = TYPE_FIELDS (current_class_type); d; d = DECL_CHAIN (d)) in maybe_push_used_methods()
7820 if (current_class_type) in finish_struct()
8110 csn->type = current_class_type; in pushclass()
8120 current_class_type = type; in pushclass()
8154 current_class_type = current_class_stack[current_class_depth].type; in popclass()
8199 c = current_class_type; in currently_open_class()
8227 if (!current_class_type) in currently_open_derived_class()
[all …]
H A Dname-lookup.cc5028 || !same_type_p (current_class_type, t)) in push_scope()
5163 class_binding_level = begin_scope (sk_class, current_class_type); in pushlevel_class()
5248 if (current_class_type != class_binding_level->this_entity) in pushdecl_class_level()
5362 gcc_assert (TYPE_BEING_DEFINED (current_class_type) in push_class_level_binding()
5365 gcc_assert (current_class_type == class_binding_level->this_entity); in push_class_level_binding()
5400 && DECL_CONTEXT (x) != current_class_type)) in push_class_level_binding()
5401 && DECL_NAME (x) == DECL_NAME (TYPE_NAME (current_class_type))) in push_class_level_binding()
5404 if (TYPE_P (scope) && same_type_p (scope, current_class_type)) in push_class_level_binding()
5968 if (current_class_type) in current_decl_namespace()
5969 result = decl_namespace_context (current_class_type); in current_decl_namespace()
[all …]
H A Dsearch.cc414 if (current_function_decl && current_class_type in current_scope()
417 current_class_type)) in current_scope()
420 current_class_type)))) in current_scope()
423 if (current_class_type) in current_scope()
424 return current_class_type; in current_scope()
H A Ddecl2.cc901 DECL_CONTEXT (decl) = current_class_type; in finish_static_data_member_decl()
910 if (LOCAL_CLASS_P (current_class_type) in finish_static_data_member_decl()
915 current_class_type, decl); in finish_static_data_member_decl()
917 for (tree t = current_class_type; TYPE_P (t); in finish_static_data_member_decl()
1014 DECL_CONTEXT (value) = current_class_type; in grokfield()
1110 && DECL_CONTEXT (value) != current_class_type) in grokfield()
1119 DECL_CONTEXT (value) = current_class_type; in grokfield()
5082 if (! global_bindings_p () || current_class_type in c_parse_final_cleanups()
H A Dtypeck2.cc292 if (current_class_type in cxx_incomplete_type_inform()
293 && TYPE_BEING_DEFINED (current_class_type) in cxx_incomplete_type_inform()
294 && same_type_p (ptype, current_class_type)) in cxx_incomplete_type_inform()
H A Doptimize.cc136 tree virtual_size = cxx_sizeof (current_class_type); in build_delete_destructor_body()
/netbsd-src/external/gpl3/gcc.old/dist/libcc1/
H A Dlibcp1plugin.cc572 gcc_assert (current_class_type == DECL_CONTEXT (current_function_decl) in plugin_pragma_push_user_expression()
576 current_class_type = NULL_TREE; in plugin_pragma_push_user_expression()
655 current_class_type = DECL_CONTEXT (current_function_decl); in plugin_pragma_pop_user_expression()
901 decl = TYPE_NAME (current_class_type); in get_current_scope()
1154 identifier = DECL_NAME (TYPE_NAME (current_class_type)); in plugin_build_decl()
1359 DECL_ARGUMENTS (decl) = build_this_parm (decl, current_class_type, in plugin_build_decl()
1464 DECL_CONTEXT (decl) = FROB_CONTEXT (current_class_type); in plugin_build_decl()
1544 && TYPE_FIELDS (current_class_type) == decl) in plugin_build_decl()
1556 gcc_assert (TYPE_FIELDS (current_class_type) == decl); in plugin_build_decl()
1557 TYPE_FIELDS (current_class_type) in plugin_build_decl()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libcc1/
H A Dlibcp1plugin.cc416 gcc_assert (current_class_type == DECL_CONTEXT (current_function_decl) in plugin_pragma_push_user_expression()
420 current_class_type = NULL_TREE; in plugin_pragma_push_user_expression()
499 current_class_type = DECL_CONTEXT (current_function_decl); in plugin_pragma_pop_user_expression()
745 decl = TYPE_NAME (current_class_type); in get_current_scope()
998 identifier = DECL_NAME (TYPE_NAME (current_class_type)); in plugin_build_decl()
1203 DECL_ARGUMENTS (decl) = build_this_parm (decl, current_class_type, in plugin_build_decl()
1308 DECL_CONTEXT (decl) = FROB_CONTEXT (current_class_type); in plugin_build_decl()
1388 && TYPE_FIELDS (current_class_type) == decl) in plugin_build_decl()
1400 gcc_assert (TYPE_FIELDS (current_class_type) == decl); in plugin_build_decl()
1401 TYPE_FIELDS (current_class_type) in plugin_build_decl()
[all …]
/netbsd-src/external/gpl2/groff/dist/
H A DPROBLEMS360 if (TREE_GETS_DELETE (current_class_type))
361 …exprstmt = build_method_call (build1 (NOP_EXPR, TYPE_POINTER_TO (current_class_type), error_mark_n…
365 else if (TYPE_USES_VIRTUAL_BASECLASSES (current_class_type))
372 if (TREE_GETS_DELETE (current_class_type))
373 …exprstmt = build_method_call (build1 (NOP_EXPR, TYPE_POINTER_TO (current_class_type), error_mark_n…
377 else if (TYPE_USES_VIRTUAL_BASECLASSES (current_class_type))

123