Home
last modified time | relevance | path

Searched refs:to_type (Results 1 – 14 of 14) sorted by relevance

/NextBSD/contrib/atf/atf-c++/detail/
Dtext_test.cpp346 ATF_TEST_CASE(to_type);
347 ATF_TEST_CASE_HEAD(to_type) in ATF_TEST_CASE_HEAD() argument
351 ATF_TEST_CASE_BODY(to_type) in ATF_TEST_CASE_BODY() argument
353 using atf::text::to_type; in ATF_TEST_CASE_BODY()
355 ATF_REQUIRE_EQ(to_type< int >("0"), 0); in ATF_TEST_CASE_BODY()
356 ATF_REQUIRE_EQ(to_type< int >("1234"), 1234); in ATF_TEST_CASE_BODY()
357 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >(" ")); in ATF_TEST_CASE_BODY()
358 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("0 a")); in ATF_TEST_CASE_BODY()
359 ATF_REQUIRE_THROW(std::runtime_error, to_type< int >("a")); in ATF_TEST_CASE_BODY()
361 ATF_REQUIRE_EQ(to_type< float >("0.5"), 0.5); in ATF_TEST_CASE_BODY()
[all …]
Dtext.hpp136 to_type(const std::string& str) in to_type() function
Dtext.cpp155 return to_type< int64_t >(str) * multiplier; in to_bytes()
/NextBSD/contrib/gcc/
HDipa-type-escape.c636 check_cast_type (tree to_type, tree from_type) in check_cast_type() argument
638 int to_stars = count_stars (&to_type); in check_cast_type()
643 if (to_type == from_type) in check_cast_type()
646 if (parent_type_p (to_type, from_type)) return CT_UP; in check_cast_type()
647 if (parent_type_p (from_type, to_type)) return CT_DOWN; in check_cast_type()
654 check_cast (tree to_type, tree from) in check_cast() argument
659 to_type = get_canon_type (to_type, false, false); in check_cast()
660 if (!from_type || !to_type || from_type == to_type) in check_cast()
664 ipa_type_escape_star_count_of_interesting_type (to_type) >= 0; in check_cast()
677 switch (check_cast_type (to_type, from_type)) in check_cast()
[all …]
HDtree.c4974 build_pointer_type_for_mode (tree to_type, enum machine_mode mode, in build_pointer_type_for_mode() argument
4979 if (to_type == error_mark_node) in build_pointer_type_for_mode()
4990 if (TYPE_POINTER_TO (to_type) != 0 in build_pointer_type_for_mode()
4991 && TREE_CODE (TYPE_POINTER_TO (to_type)) != POINTER_TYPE) in build_pointer_type_for_mode()
4992 return TYPE_POINTER_TO (to_type); in build_pointer_type_for_mode()
4996 for (t = TYPE_POINTER_TO (to_type); t; t = TYPE_NEXT_PTR_TO (t)) in build_pointer_type_for_mode()
5002 TREE_TYPE (t) = to_type; in build_pointer_type_for_mode()
5005 TYPE_NEXT_PTR_TO (t) = TYPE_POINTER_TO (to_type); in build_pointer_type_for_mode()
5006 TYPE_POINTER_TO (to_type) = t; in build_pointer_type_for_mode()
5018 build_pointer_type (tree to_type) in build_pointer_type() argument
[all …]
/NextBSD/contrib/gdb/gdb/
HDdoublest.c782 void *to, const struct type *to_type) in convert_typed_floating() argument
785 const struct floatformat *to_fmt = floatformat_from_type (to_type); in convert_typed_floating()
788 gdb_assert (TYPE_CODE (to_type) == TYPE_CODE_FLT); in convert_typed_floating()
800 memset (to, 0, TYPE_LENGTH (to_type)); in convert_typed_floating()
810 memset (to, 0, TYPE_LENGTH (to_type)); in convert_typed_floating()
811 memcpy (to, from, min (TYPE_LENGTH (from_type), TYPE_LENGTH (to_type))); in convert_typed_floating()
HDdoublest.h88 void *to, const struct type *to_type);
HDgdbtypes.c976 struct type *to_type) in smash_to_member_type() argument
984 TYPE_TARGET_TYPE (type) = to_type; in smash_to_member_type()
999 struct type *to_type, struct field *args, in smash_to_method_type() argument
1008 TYPE_TARGET_TYPE (type) = to_type; in smash_to_method_type()
HDgdbtypes.h1125 struct type *to_type, struct field *args,
HDdwarf2read.c3682 struct type *to_type; in read_tag_ptr_to_member_type() local
3691 to_type = die_type (die, cu); in read_tag_ptr_to_member_type()
3693 smash_to_member_type (type, domain, to_type); in read_tag_ptr_to_member_type()
/NextBSD/contrib/atf/atf-c++/
Dmacros_test.cpp119 long v1 = atf::text::to_type< long >(get_config_var("v1")); in ATF_TEST_CASE_BODY()
120 long v2 = atf::text::to_type< long >(get_config_var("v2")); in ATF_TEST_CASE_BODY()
/NextBSD/contrib/atf/atf-sh/
HDatf-check.cpp169 const int value = atf::text::to_type< int >(str); in parse_exit_code()
218 return atf::text::to_type< int >(str); in parse_signal()
/NextBSD/contrib/gcc/cp/
HDtypeck.c6230 tree to_type; in build_ptrmemfunc() local
6236 to_type = build_ptrmemfunc_type (type); in build_ptrmemfunc()
6246 && !can_convert_arg (to_type, TREE_TYPE (pfn), pfn, LOOKUP_NORMAL)) in build_ptrmemfunc()
6248 to_type, pfn_type); in build_ptrmemfunc()
6251 TYPE_PTRMEMFUNC_OBJECT_TYPE (to_type), in build_ptrmemfunc()
6261 if (same_type_p (to_type, pfn_type)) in build_ptrmemfunc()
6264 return build_reinterpret_cast (to_type, pfn); in build_ptrmemfunc()
6285 return build_ptrmemfunc1 (to_type, delta, npfn); in build_ptrmemfunc()
6292 return build_ptrmemfunc1 (to_type, in build_ptrmemfunc()
6305 return make_ptrmem_cst (to_type, fn); in build_ptrmemfunc()
HDsearch.c2165 tree to_type, tree parent_convs, tree other_convs) in check_hidden_convs() argument
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()