Home
last modified time | relevance | path

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

12

/dflybsd-src/contrib/gcc-4.7/gcc/cp/
H A Dfriend.c457 int class_template_depth = template_class_depth (current_class_type); in do_friend()
504 add_friend (current_class_type, decl, /*complain=*/true); in do_friend()
522 SET_DECL_FRIEND_CONTEXT (decl, current_class_type); in do_friend()
535 || template_class_depth (current_class_type) != 0) in do_friend()
594 add_friend (current_class_type, in do_friend()
H A Dinit.c508 tree type = current_class_type; in perform_target_ctor()
1027 if (!COMPLETE_TYPE_P (current_class_type)) in emit_mem_initializers()
1032 && same_type_p (TREE_PURPOSE (mem_inits), current_class_type)) in emit_mem_initializers()
1045 mem_inits = sort_mem_initializers (current_class_type, mem_inits); in emit_mem_initializers()
1337 switch (BINFO_N_BASE_BINFOS (TYPE_BINFO (current_class_type))) in expand_member_init()
1341 current_class_type); in expand_member_init()
1345 (BINFO_BASE_BINFO (TYPE_BINFO (current_class_type), 0)); in expand_member_init()
1349 current_class_type); in expand_member_init()
1370 if (same_type_p (basetype, current_class_type) in expand_member_init()
1374 class_binfo = TYPE_BINFO (current_class_type); in expand_member_init()
[all …]
H A Dname-lookup.c1191 member = lookup_member (current_class_type, in pushdecl_maybe_friend_1()
2695 || !same_type_p (current_class_type, t)) in push_scope()
2830 class_binding_level = begin_scope (sk_class, current_class_type); in pushlevel_class()
2918 if (current_class_type != class_binding_level->this_entity) in pushdecl_class_level()
3036 gcc_assert (TYPE_BEING_DEFINED (current_class_type)); in push_class_level_binding_1()
3038 gcc_assert (current_class_type == class_binding_level->this_entity); in push_class_level_binding_1()
3073 && DECL_CONTEXT (x) != current_class_type)) in push_class_level_binding_1()
3074 && DECL_NAME (x) == constructor_name (current_class_type)) in push_class_level_binding_1()
3077 if (TYPE_P (scope) && same_type_p (scope, current_class_type)) in push_class_level_binding_1()
3243 if (constructor_name_p (name, current_class_type)) in do_class_using_decl()
[all …]
H A Dmethod.c494 && is_empty_class (current_class_type)) in do_build_copy_constructor()
504 tree fields = TYPE_FIELDS (current_class_type); in do_build_copy_constructor()
517 for (vbases = CLASSTYPE_VBASECLASSES (current_class_type), i = 0; in do_build_copy_constructor()
530 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_build_copy_constructor()
606 && is_empty_class (current_class_type)) in do_build_copy_assign()
622 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_build_copy_assign()
647 for (fields = TYPE_FIELDS (current_class_type); in do_build_copy_assign()
H A Ddecl.c4199 && (!current_class_type in check_tag_decl()
4200 || current_scope () != current_class_type)) in check_tag_decl()
6000 if (current_class_type in cp_finish_decl()
6001 && CP_DECL_CONTEXT (decl) == current_class_type in cp_finish_decl()
6002 && TYPE_BEING_DEFINED (current_class_type) in cp_finish_decl()
6003 && !CLASSTYPE_TEMPLATE_INSTANTIATION (current_class_type) in cp_finish_decl()
7251 == current_class_type); in grokfndecl()
8427 tree ctype = current_class_type; in grokdeclarator()
8522 && current_class_type in grokdeclarator()
8524 current_class_type)) in grokdeclarator()
[all …]
H A Dsearch.c519 if (current_function_decl && current_class_type in current_scope()
522 current_class_type)) in current_scope()
525 current_class_type)))) in current_scope()
527 if (current_class_type) in current_scope()
528 return current_class_type; in current_scope()
915 if (current_class_type) in accessible_p()
917 current_class_type, binfo); in accessible_p()
H A Dsemantics.c1702 && DERIVED_FROM_P (scope, current_class_type)) in check_accessibility_of_qualified_id()
1703 qualifying_type = current_class_type; in check_accessibility_of_qualified_id()
2630 DECL_CONTEXT (decl) = current_class_type; in finish_member_declaration()
2656 if (add_method (current_class_type, decl, NULL_TREE)) in finish_member_declaration()
2658 DECL_CHAIN (decl) = TYPE_METHODS (current_class_type); in finish_member_declaration()
2659 TYPE_METHODS (current_class_type) = decl; in finish_member_declaration()
2661 maybe_add_class_template_decl_list (current_class_type, decl, in finish_member_declaration()
2693 TYPE_FIELDS (current_class_type) in finish_member_declaration()
2694 = chainon (TYPE_FIELDS (current_class_type), decl); in finish_member_declaration()
2697 DECL_CHAIN (decl) = TYPE_FIELDS (current_class_type); in finish_member_declaration()
[all …]
H A Dclass.c403 t = TREE_TYPE (TYPE_VFIELD (current_class_type)); in build_base_path()
6297 if (current_class_type) in finish_struct()
6568 csn->type = current_class_type; in pushclass()
6578 current_class_type = type; in pushclass()
6622 current_class_type = current_class_stack[current_class_depth].type; in popclass()
6665 c = current_class_type; in currently_open_class()
6693 if (!current_class_type) in currently_open_derived_class()
6696 if (DERIVED_FROM_P (t, current_class_type)) in currently_open_derived_class()
6697 return current_class_type; in currently_open_derived_class()
6723 c = current_class_type; in current_nonlambda_class_type()
[all …]
H A Ddecl2.c764 DECL_CONTEXT (decl) = current_class_type; in finish_static_data_member_decl()
773 if (LOCAL_CLASS_P (current_class_type)) in finish_static_data_member_decl()
775 current_class_type, decl); in finish_static_data_member_decl()
826 && DECL_CONTEXT (value) != current_class_type) in grokfield()
849 DECL_CONTEXT (value) = current_class_type; in grokfield()
3715 if (! global_bindings_p () || current_class_type in cp_write_global_declarations()
H A Doptimize.c127 tree virtual_size = cxx_sizeof (current_class_type); in build_delete_destructor_body()
H A Dparser.c2789 else if (processing_template_decl && current_class_type in cp_parser_diagnose_invalid_type_name()
2790 && TYPE_BINFO (current_class_type)) in cp_parser_diagnose_invalid_type_name()
2794 for (b = TREE_CHAIN (TYPE_BINFO (current_class_type)); in cp_parser_diagnose_invalid_type_name()
5951 && !(processing_template_decl && scope == current_class_type)) in cp_parser_postfix_dot_deref_expression()
11412 && same_type_p (TREE_PURPOSE (mem_initializer), current_class_type)) in cp_parser_mem_initializer_list()
16294 class_type = current_class_type; in cp_parser_direct_declarator()
16688 inject_this_parameter (current_class_type, quals); in cp_parser_late_return_type_opt()
16951 if (in_system_header && current_class_type == NULL in cp_parser_parameter_declaration_clause()
17302 && TYPE_BEING_DEFINED (current_class_type) in cp_parser_parameter_declaration()
17303 && !LAMBDA_TYPE_P (current_class_type)) in cp_parser_parameter_declaration()
[all …]
H A Dtree.c2238 VEC(tree,gc) *vbases = CLASSTYPE_VBASECLASSES (current_class_type); in bot_replace()
2855 else if (current != current_class_type in maybe_dummy_object()
2860 (CLASSTYPE_LAMBDA_EXPR (current_class_type))), in maybe_dummy_object()
/dflybsd-src/contrib/gcc-8.0/gcc/cp/
H A Dlambda.c647 if (current_class_type in add_capture()
648 && current_class_type == LAMBDA_EXPR_CLOSURE (lambda)) in add_capture()
650 if (COMPLETE_TYPE_P (current_class_type)) in add_capture()
704 tree saved_class_type = current_class_type; in add_default_capture()
714 current_class_type = LAMBDA_EXPR_CLOSURE (lambda); in add_default_capture()
728 current_class_type = saved_class_type; in add_default_capture()
865 tree type = current_class_type; in current_lambda_expr()
886 if (type != current_class_type in resolvable_dummy_lambda()
887 && current_class_type in resolvable_dummy_lambda()
888 && LAMBDA_TYPE_P (current_class_type) in resolvable_dummy_lambda()
[all …]
H A Dfriend.c523 int class_template_depth = template_class_depth (current_class_type); in do_friend()
575 add_friend (current_class_type, decl, /*complain=*/true); in do_friend()
593 SET_DECL_FRIEND_CONTEXT (decl, current_class_type); in do_friend()
606 || template_class_depth (current_class_type) != 0) in do_friend()
648 add_friend (current_class_type, in do_friend()
H A Dmethod.c611 if (!binfo_inherited_from (TYPE_BINFO (current_class_type), binfo, inh)) in add_one_base_init()
650 if (is_empty_class (current_class_type)) in do_build_copy_constructor()
653 else if (tree_int_cst_equal (TYPE_SIZE (current_class_type), in do_build_copy_constructor()
654 CLASSTYPE_SIZE (current_class_type))) in do_build_copy_constructor()
662 tree base_size = CLASSTYPE_SIZE_UNIT (current_class_type); in do_build_copy_constructor()
677 tree fields = TYPE_FIELDS (current_class_type); in do_build_copy_constructor()
690 for (vbases = CLASSTYPE_VBASECLASSES (current_class_type), i = 0; in do_build_copy_constructor()
697 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_build_copy_constructor()
770 && is_empty_class (current_class_type)) in do_build_copy_assign()
786 for (binfo = TYPE_BINFO (current_class_type), i = 0; in do_build_copy_assign()
[all …]
H A Dinit.c523 tree type = current_class_type; in perform_target_ctor()
1219 if (!COMPLETE_TYPE_P (current_class_type)) in emit_mem_initializers()
1224 && same_type_p (TREE_PURPOSE (mem_inits), current_class_type)) in emit_mem_initializers()
1238 mem_inits = sort_mem_initializers (current_class_type, mem_inits); in emit_mem_initializers()
1290 else if (!ABSTRACT_CLASS_TYPE_P (current_class_type)) in emit_mem_initializers()
1547 switch (BINFO_N_BASE_BINFOS (TYPE_BINFO (current_class_type))) in expand_member_init()
1551 current_class_type); in expand_member_init()
1555 (BINFO_BASE_BINFO (TYPE_BINFO (current_class_type), 0)); in expand_member_init()
1559 current_class_type); in expand_member_init()
1581 || same_type_p (basetype, current_class_type)) in expand_member_init()
[all …]
H A Dname-lookup.c4248 || !same_type_p (current_class_type, t)) in push_scope()
4383 class_binding_level = begin_scope (sk_class, current_class_type); in pushlevel_class()
4470 if (current_class_type != class_binding_level->this_entity) in pushdecl_class_level()
4607 gcc_assert (TYPE_BEING_DEFINED (current_class_type) in push_class_level_binding_1()
4610 gcc_assert (current_class_type == class_binding_level->this_entity); in push_class_level_binding_1()
4645 && DECL_CONTEXT (x) != current_class_type)) in push_class_level_binding_1()
4646 && DECL_NAME (x) == DECL_NAME (TYPE_NAME (current_class_type))) in push_class_level_binding_1()
4649 if (TYPE_P (scope) && same_type_p (scope, current_class_type)) in push_class_level_binding_1()
4802 CLASSTYPE_NON_AGGREGATE (current_class_type) = true; in do_class_using_decl()
4806 if (constructor_name_p (name, current_class_type)) in do_class_using_decl()
[all …]
H A Ddecl.c4852 && (!current_class_type in check_tag_decl()
4853 || current_scope () != current_class_type)) in check_tag_decl()
6895 if (current_class_type in cp_finish_decl()
6896 && CP_DECL_CONTEXT (decl) == current_class_type in cp_finish_decl()
6897 && TYPE_BEING_DEFINED (current_class_type) in cp_finish_decl()
6898 && !CLASSTYPE_TEMPLATE_INSTANTIATION (current_class_type) in cp_finish_decl()
9479 if (!current_class_type || !TYPE_BEING_DEFINED (current_class_type)) in check_static_variable_definition()
10198 tree ctype = current_class_type; in grokdeclarator()
10320 && current_class_type in grokdeclarator()
10322 current_class_type)) in grokdeclarator()
[all …]
H A Dclass.c445 t = TREE_TYPE (TYPE_VFIELD (current_class_type)); in build_base_path()
7115 if (current_class_type) in finish_struct()
7388 csn->type = current_class_type; in pushclass()
7398 current_class_type = type; in pushclass()
7442 current_class_type = current_class_stack[current_class_depth].type; in popclass()
7487 c = current_class_type; in currently_open_class()
7515 if (!current_class_type) in currently_open_derived_class()
7518 if (DERIVED_FROM_P (t, current_class_type)) in currently_open_derived_class()
7519 return current_class_type; in currently_open_derived_class()
7538 if (!current_class_type) in outermost_open_class()
[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 Ddecl2.c766 DECL_CONTEXT (decl) = current_class_type; in finish_static_data_member_decl()
775 if (LOCAL_CLASS_P (current_class_type) in finish_static_data_member_decl()
779 current_class_type, decl); in finish_static_data_member_decl()
781 for (tree t = current_class_type; TYPE_P (t); in finish_static_data_member_decl()
870 DECL_CONTEXT (value) = current_class_type; in grokfield()
971 && DECL_CONTEXT (value) != current_class_type) in grokfield()
976 DECL_CONTEXT (value) = current_class_type; in grokfield()
4649 if (! global_bindings_p () || current_class_type in c_parse_final_cleanups()
H A Dtypeck2.c438 if (current_class_type in cxx_incomplete_type_inform()
439 && TYPE_BEING_DEFINED (current_class_type) in cxx_incomplete_type_inform()
440 && same_type_p (ptype, current_class_type)) in cxx_incomplete_type_inform()
H A Dsemantics.c3067 gcc_assert (TYPE_BEING_DEFINED (current_class_type) in finish_member_declaration()
3086 DECL_CONTEXT (decl) = current_class_type; in finish_member_declaration()
3114 add = add_method (current_class_type, decl, false); in finish_member_declaration()
3117 else if (CLASSTYPE_LAMBDA_EXPR (current_class_type) in finish_member_declaration()
3134 TYPE_FIELDS (current_class_type) in finish_member_declaration()
3135 = chainon (TYPE_FIELDS (current_class_type), decl); in finish_member_declaration()
3138 DECL_CHAIN (decl) = TYPE_FIELDS (current_class_type); in finish_member_declaration()
3139 TYPE_FIELDS (current_class_type) = decl; in finish_member_declaration()
3142 maybe_add_class_template_decl_list (current_class_type, decl, in finish_member_declaration()
3810 if (context != current_class_type) in finish_id_expression()
[all …]
H A Doptimize.c137 tree virtual_size = cxx_sizeof (current_class_type); in build_delete_destructor_body()
H A Dparser.c3318 else if (processing_template_decl && current_class_type in cp_parser_diagnose_invalid_type_name()
3319 && TYPE_BINFO (current_class_type)) in cp_parser_diagnose_invalid_type_name()
3323 for (b = TREE_CHAIN (TYPE_BINFO (current_class_type)); in cp_parser_diagnose_invalid_type_name()
13765 && current_class_type) in cp_parser_function_specifier_opt()
14428 && same_type_p (TREE_PURPOSE (mem_initializer), current_class_type)) in cp_parser_mem_initializer_list()
17052 if (current_class_type && LAMBDA_TYPE_P (current_class_type)) in cp_parser_simple_type_specifier()
20383 class_type = current_class_type; in cp_parser_direct_declarator()
20950 inject_this_parameter (current_class_type, quals); in cp_parser_late_return_type_opt()
21259 && TYPE_BEING_DEFINED (current_class_type)) in function_being_declared_is_template_p()
21263 (current_class_type)); in function_being_declared_is_template_p()
[all …]

12