Home
last modified time | relevance | path

Searched refs:same_type_p (Results 1 – 25 of 26) sorted by relevance

12

/freebsd-12.1/contrib/gcc/cp/
H A Dfriend.c81 if (same_type_p (supplicant, type)) in is_friend()
91 same_type_p (supplicant, t)) in is_friend()
254 else if (same_type_p (type, friend_type)) in make_friend_class()
375 if (same_type_p (probe, friend_type)) in make_friend_class()
H A Dtypeck.c567 && !same_type_p (TYPE_PTRMEM_CLASS_TYPE (t1), in composite_pointer_type()
812 if (same_type_p (a, b)) in comp_except_types()
1681 if (!same_type_p (t, char_type_node) in string_conv_p()
1682 && !same_type_p (t, wchar_type_node)) in string_conv_p()
1695 if (!same_type_p (TREE_TYPE (exp), t)) in string_conv_p()
3443 && same_type_p (type0, type1)) in build_binary_op()
5818 if (! same_type_p (TREE_TYPE (rhs), lhstype)) in build_modify_expr()
6261 if (same_type_p (to_type, pfn_type)) in build_ptrmemfunc()
6923 && same_type_p ((TYPE_MAIN_VARIANT in check_return_expr()
6999 && !same_type_p (TYPE_OFFSET_BASETYPE (from), in comp_ptr_ttypes_real()
[all …]
H A Dcall.c658 if (same_type_p (from, to)) in standard_conversion()
713 else if (!same_type_p (fbase, tbase)) in standard_conversion()
762 if (same_type_p (from, to)) in standard_conversion()
879 return (same_type_p (t1, t2) in reference_related_p()
2005 if (type2 && !same_type_p (type1, type2) in add_builtin_candidate()
3409 if (!same_type_p (arg2_type, arg3_type) in build_conditional_expr()
3489 if (same_type_p (arg2_type, arg3_type)) in build_conditional_expr()
4619 if (same_type_p (type, promote)) in cxx_type_promotes_to()
5646 && same_type_p (ics2->u.next->type, in is_subseq()
6014 && same_type_p (to_type1, to_type2)) in compare_ics()
[all …]
H A Dtree.c1474 if (!(same_type_p (TREE_TYPE (t1), TREE_TYPE (t2)) in cp_tree_equal()
1544 && same_type_p (TREE_TYPE (TEMPLATE_PARM_DECL (t1)), in cp_tree_equal()
1580 return same_type_p (o1, o2); in cp_tree_equal()
1591 return same_type_p (PTRMEM_CST_CLASS (t1), PTRMEM_CST_CLASS (t2)); in cp_tree_equal()
1621 return same_type_p (t1, t2); in cp_tree_equal()
1717 && same_type_p (TYPE_MAIN_VARIANT (TREE_TYPE (current_class_ref)), in maybe_dummy_object()
2197 return (same_type_p (type, char_type_node) in char_type_p()
2198 || same_type_p (type, unsigned_char_type_node) in char_type_p()
2199 || same_type_p (type, signed_char_type_node) in char_type_p()
2200 || same_type_p (type, wchar_type_node)); in char_type_p()
H A Dcvt.c145 same_p = same_type_p (TYPE_MAIN_VARIANT (intype_class), in cp_convert_to_pointer()
330 if (!same_type_p (TREE_TYPE (TREE_TYPE (expr)), in convert_to_pointer_force()
632 if (same_type_p (type, TREE_TYPE (e))) in ocp_convert()
649 gcc_assert (same_type_p (TYPE_MAIN_VARIANT (TREE_TYPE (e)), in ocp_convert()
1278 if (same_type_p (type, expr_type)) in perform_qualification_conversions()
1285 && same_type_p (TYPE_PTRMEM_CLASS_TYPE (type), in perform_qualification_conversions()
H A Dsearch.c168 if (same_type_p (t, base)) in accessible_base_p()
518 && same_type_p (DECL_CONTEXT (current_function_decl), in current_scope()
521 && same_type_p (DECL_FRIEND_CONTEXT (current_function_decl), in current_scope()
1101 if (!same_type_p (type, lfi->type) in lookup_field_r()
1356 else if (same_type_p (DECL_CONV_FN_TYPE (fn), type)) in lookup_conversion_operator()
1822 if (same_type_p (base_return, over_return)) in check_final_overrider()
2172 if (same_type_p (to_type, TREE_TYPE (probe))) in check_hidden_convs()
2204 if (same_type_p (to_type, TREE_TYPE (other))) in check_hidden_convs()
H A Dexpr.c57 while (!same_type_p (DECL_CONTEXT (member), in cplus_expand_constant()
H A Dmangle.c255 && same_type_p (TREE_PURPOSE (NODE1), TREE_PURPOSE (NODE2))) \
421 && same_type_p (node, candidate))); in add_substitution()
571 && same_type_p (TREE_VEC_ELT (args, 0), char_type_node) in find_substitution()
602 && same_type_p (TREE_VEC_ELT (args, 0), char_type_node) in find_substitution()
643 && same_type_p (type, candidate)) in find_substitution()
2274 gcc_assert (!same_type_p (TREE_TYPE (value), boolean_type_node) in write_template_arg_literal()
H A Ddecl2.c619 if (same_type_p (TREE_TYPE (TREE_TYPE (function)), in check_classfn()
1150 if (!same_type_p (TREE_TYPE (type), ptr_type_node)) in coerce_new_type()
1157 || !same_type_p (TREE_VALUE (args), size_type_node)) in coerce_new_type()
1188 if (!same_type_p (TREE_TYPE (type), void_type_node)) in coerce_delete_type()
1195 || !same_type_p (TREE_VALUE (args), ptr_type_node)) in coerce_delete_type()
2308 if (!same_type_p (TREE_TYPE (guard_value), TREE_TYPE (guard))) in get_guard_cond()
2314 if (!same_type_p (TREE_TYPE (guard_value), TREE_TYPE (guard))) in get_guard_cond()
2330 if (!same_type_p (TREE_TYPE (guard_init), TREE_TYPE (guard))) in set_guard()
H A Dcp-objcp-common.c182 && same_type_p (TREE_TYPE (x), TREE_TYPE (y))) in cxx_types_compatible_p()
H A Dtypeck2.c1250 if (!same_type_p (ctype, objtype)) in build_m_component_ref()
1415 if (same_type_p (TREE_VALUE (probe), spec)) in add_exception_specifier()
1451 if (same_type_p (TREE_VALUE (probe), spec)) in merge_exception_specifiers()
H A Dinit.c592 !same_type_p (field_type, t); in sort_mem_initializers()
625 if (same_type_p (last_field_type, field_type)) in sort_mem_initializers()
634 if (same_type_p (last_field_type, t)) in sort_mem_initializers()
642 if (same_type_p (field_type, t)) in sort_mem_initializers()
1123 itype && same_type_p (itype, in build_aggr_init()
H A Ddecl.c956 if (same_type_p (TREE_TYPE (f1), TREE_TYPE (f2))) in decls_match()
1366 && same_type_p (TREE_TYPE (TREE_TYPE (newdecl)), in duplicate_decls()
1714 if (! same_type_p (newtype, oldtype) in duplicate_decls()
3987 if (!same_type_p (DECL_CONTEXT (field), context)) in start_decl()
4556 if (!same_type_p (TREE_TYPE (value), type)) in reshape_init_vector()
6727 && !same_type_p (TREE_TYPE (TREE_TYPE (decl)), in grokfndecl()
7351 if (type && !same_type_p (type, optype)) in check_special_function_return_type()
8939 if (!same_type_p (TREE_OPERAND in grokdeclarator()
9477 if (same_type_p (type, void_type_node) in grokparms()
10014 if (!same_type_p (TYPE_MAIN_VARIANT (ret), arg)) in grok_op_properties()
[all …]
H A Dpt.c1479 && !same_type_p (TREE_VALUE (fn_arg_types), in determine_specialization()
1559 if (!same_type_p (TREE_TYPE (TREE_TYPE (decl)), in determine_specialization()
3829 if (!same_type_p (TREE_TYPE (expr), type)) in convert_nontype_argument()
3856 gcc_assert (same_type_p (type, TREE_TYPE (expr))); in convert_nontype_argument()
3936 && !same_type_p in coerce_template_template_parms()
4238 return TYPE_P (ot) && same_type_p (ot, nt); in template_args_equal()
9967 if (same_type_p (parm, type)) in type_unification_real()
10313 if (rval && !same_type_p (r, rval)) in get_template_base()
10500 && same_type_p (parm, arg)) ? 0 : 1; in unify()
10610 if (targ != NULL_TREE && same_type_p (targ, arg)) in unify()
[all …]
H A Dclass.c1036 && (!same_type_p (TREE_TYPE (fn_type), in add_method()
1049 || same_type_p (TREE_TYPE (fn_type), in add_method()
1774 if (!same_type_p (TREE_TYPE (vtable), atype)) in layout_vtable_decl()
1803 && same_type_p (DECL_CONV_FN_TYPE (fndecl), in same_signature_p()
3144 if (same_type_p (TREE_VALUE (t), type)) in check_subobject_offset()
3981 gcc_assert (same_type_p (TREE_TYPE (decl_parms), in adjust_clone_args()
4099 && same_type_p (TREE_VALUE (second_parm), sizetype)) in type_requires_array_cookie()
5112 && same_type_p (TYPE_MAIN_VARIANT (TREE_TYPE (x)), t)) in finish_struct_1()
5615 if (same_type_p (c, t)) in currently_open_class()
6063 if (same_type_p (lhstype, TREE_TYPE (rhs))) in instantiate_type()
H A Dname-lookup.c457 && (same_type_p (TREE_TYPE (decl), TREE_TYPE (bval)) in supplement_binding()
827 && !same_type_p (TREE_TYPE (x), TREE_TYPE (decl))) in pushdecl_maybe_friend()
2314 || !same_type_p (current_class_type, t)) in push_scope()
2689 if (TYPE_P (scope) && same_type_p (scope, current_class_type)) in push_class_level_binding()
H A DChangeLog-19993312 * typeck.c (common_type): Use same_type_p, not pointer equality,
4148 (standard_conversion): Use same_type_p. Don't build BASE_CONVs
4530 * decl2.c (import_export_decl): Use same_type_p, rather than
4953 same_type_p for pmf bits. Don't use build_binary_op to compare
4977 * typeck.c (string_conv_p): Use same_type_p to check whether we
5660 * cvt.c (convert_pointer_to_real): Use same_type_p.
5661 * typeck.c (comp_target_types): Use same_type_p.
6036 * decl.c (duplicate_decls): Use same_type_p.
6038 same_type_p. Don't try to handle repeats. Return success.
6041 (check_ktype): Use same_type_p.
[all …]
H A Dcp-tree.h287 #define same_type_p(TYPE1, TYPE2) \ macro
293 same_type_p (TYPE_MAIN_VARIANT (TYPE1), TYPE_MAIN_VARIANT (TYPE2))
H A Derror.c1660 if (!same_type_p (TREE_TYPE (op), TREE_TYPE (t))) in dump_expr()
H A DChangeLog-20031354 (compparms): Reverse the arguments of same_type_p.
1950 * call.c (standard_conversion): Use same_type_p, not pointer
3751 * mangle.c (find_substitution): Don't pass a non-type to same_type_p
4460 * decl.c (start_function): Use same_type_p to check return type
6074 (currently_open_class): Use same_type_p, not pointer equality.
H A DChangeLog-20001344 * typeck.c (same_type_p): Use cp_tree_equal for TYPENAME_TYPE.
1597 * method.c (process_modifiers): Use same_type_p.
2427 * mangle.c (find_substitution): Use same_type_p.
2482 * mangle.c (find_substitution): Use same_type_p.
H A DChangeLog-20022662 * decl.c (typename_compare): Don't use same_type_p.
4293 (same_type_p): Uppercase macro parameters.
H A DChangeLog-1998301 * decl2.c (coerce_new_type): Use same_type_p.
349 * typeck2.c (process_init_constructor): Use same_type_p.
845 (same_type_p): Likewise.
H A Dparser.c12315 if (class_type && same_type_p (name_type, class_type)) in cp_parser_direct_declarator()
/freebsd-12.1/contrib/gcc/doc/
H A Dc-tree.texi409 @item same_type_p
417 use @code{same_type_p} instead.
594 in hand, using @code{same_type_p}.

12