Home
last modified time | relevance | path

Searched refs:errc (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/libcxx/test/std/utilities/charconv/charconv.msvc/
H A Ddouble_from_chars_test_cases.hpp607 91, errc{}, 0x1.0000000000000p-33},
611 88, errc{}, 0x1.0000000000000p-33},
643 89, errc{}, 0x1.0000000000001p-33},
647 88, errc{}, 0x1.0000000000001p-33},
651 91, errc{}, 0x1.ffffffffffffep-33},
655 88, errc{}, 0x1.ffffffffffffep-33},
687 89, errc{}, 0x1.fffffffffffffp-33},
691 88, errc{}, 0x1.fffffffffffffp-33},
712 chars_format::fixed, 1055, errc{}, 0x1.0000000000000p+0},
1088 chars_format::hex, 1020, errc{}, 0x1.0000000000001p+0},
[all …]
H A Dfloat_from_chars_test_cases.hpp13 {"1.a0000400", chars_format::hex, 10, errc{}, 0x1.a00004p0f}, // exact
17 {"1.a0000600", chars_format::hex, 10, errc{}, 0x1.a00006p0f}, // exact
22 {"1.0000040", chars_format::hex, 9, errc{}, 0x1.000004p0f}, // exact
26 {"1.0000060", chars_format::hex, 9, errc{}, 0x1.000006p0f}, // exact
34 {"1.0000002980232238769531250000", chars_format::general, 30, errc{},
75 chars_format::scientific, 1006, errc{}, 0x0.000002p-126f},
87 chars_format::scientific, 1006, errc{}, 0x0.000002p-126f},
99 chars_format::scientific, 1006, errc{}, 0x0.000002p-126f},
111 chars_format::scientific, 1006, errc{}, 0x0.000002p-126f},
123 chars_format::scientific, 1006, errc{}, 0x0.000004p-126f},
[all …]
H A Dtest.cpp171 assert(result.ec == errc::value_too_large); in test_common_to_chars()
177 assert(result.ec == errc{}); in test_common_to_chars()
201 assert(from_res.ec == errc{}); in test_integer_to_chars()
424 … if (correct_ec == errc{} || (is_floating_point_v<T> && correct_ec == errc::result_out_of_range)) { in test_from_chars()
445 constexpr errc inv_arg = errc::invalid_argument;
446 constexpr errc out_ran = errc::result_out_of_range;
844 test_from_chars<T>("InF", fmt, 3, errc{}, inf);
849 test_from_chars<T>("-InF", fmt, 4, errc{}, -inf);
854 test_from_chars<T>("NaN", fmt, 3, errc{}, qnan);
856 test_from_chars<T>("nan(", fmt, 3, errc{}, qnan);
[all …]
/llvm-project-15.0.7/libcxx/test/std/diagnostics/syserr/
H A Derrc.pass.cpp20 static_assert(static_cast<int>(std::errc::address_in_use) == EADDRINUSE, ""); in main()
25 static_assert(static_cast<int>(std::errc::bad_address) == EFAULT, ""); in main()
27 static_assert(static_cast<int>(std::errc::bad_message) == EBADMSG, ""); in main()
28 static_assert(static_cast<int>(std::errc::broken_pipe) == EPIPE, ""); in main()
38 static_assert(static_cast<int>(std::errc::file_exists) == EEXIST, ""); in main()
39 static_assert(static_cast<int>(std::errc::file_too_large) == EFBIG, ""); in main()
46 static_assert(static_cast<int>(std::errc::interrupted) == EINTR, ""); in main()
48 static_assert(static_cast<int>(std::errc::invalid_seek) == ESPIPE, ""); in main()
49 static_assert(static_cast<int>(std::errc::io_error) == EIO, ""); in main()
57 static_assert(static_cast<int>(std::errc::no_link) == ENOLINK, ""); in main()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DErrc.h35 enum class errc { enum
38 bad_address = int(std::errc::bad_address),
40 broken_pipe = int(std::errc::broken_pipe),
44 file_exists = int(std::errc::file_exists),
45 file_too_large = int(std::errc::file_too_large),
51 interrupted = int(std::errc::interrupted),
53 invalid_seek = int(std::errc::invalid_seek),
54 io_error = int(std::errc::io_error),
65 not_supported = int(std::errc::not_supported),
75 too_many_links = int(std::errc::too_many_links)
[all …]
/llvm-project-15.0.7/llvm/lib/XRay/
H A DRecordInitializer.cpp16 std::make_error_code(std::errc::bad_address), in visit()
34 std::make_error_code(std::errc::bad_address), in visit()
63 std::make_error_code(std::errc::bad_address), in visit()
88 std::make_error_code(std::errc::bad_address), in visit()
106 std::make_error_code(std::errc::bad_address), in visit()
120 std::make_error_code(std::errc::bad_address), in visit()
150 std::make_error_code(std::errc::bad_address), in visit()
179 std::make_error_code(std::errc::bad_address), in visit()
194 std::make_error_code(std::errc::bad_address), in visit()
214 std::make_error_code(std::errc::bad_address), in visit()
[all …]
H A DTrace.cpp42 std::make_error_code(std::errc::invalid_argument)); in loadNaiveFormatLog()
47 std::make_error_code(std::errc::invalid_argument)); in loadNaiveFormatLog()
69 std::make_error_code(std::errc::executable_format_error), in loadNaiveFormatLog()
76 std::make_error_code(std::errc::executable_format_error), in loadNaiveFormatLog()
89 std::make_error_code(std::errc::executable_format_error), in loadNaiveFormatLog()
96 std::make_error_code(std::errc::executable_format_error), in loadNaiveFormatLog()
115 std::make_error_code(std::errc::executable_format_error), in loadNaiveFormatLog()
123 std::make_error_code(std::errc::executable_format_error), in loadNaiveFormatLog()
202 std::make_error_code(std::errc::executable_format_error), in loadNaiveFormatLog()
367 std::make_error_code(std::errc::invalid_argument)); in loadYAMLLog()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/
H A Dfile_size.pass.cpp87 std::errc expected_err; in TEST_CASE()
89 {env.create_dir("dir"), std::errc::is_a_directory}, in TEST_CASE()
91 {env.create_fifo("fifo"), std::errc::not_supported}, in TEST_CASE()
138 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
142 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
145 std::errc::no_such_file_or_directory, in TEST_CASE()
184 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
188 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
209 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
213 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
[all …]
H A Dlast_write_time.pass.cpp110 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
114 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
117 std::errc::no_such_file_or_directory, in TEST_CASE()
128 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
137 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
156 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
160 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
162 ExceptionChecker Checker(file, std::errc::permission_denied, in TEST_CASE()
182 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
186 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
[all …]
H A Dhard_link_count.pass.cpp142 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
146 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
149 std::errc::no_such_file_or_directory, in TEST_CASE()
160 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
169 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
188 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
192 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
194 ExceptionChecker Checker(file, std::errc::permission_denied, in TEST_CASE()
214 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
218 TEST_CHECK(ErrorIs(ec, std::errc::permission_denied)); in TEST_CASE()
[all …]
/llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/
H A DFunctionInfo.cpp41 return createStringError(std::errc::io_error, in decode()
45 return createStringError(std::errc::io_error, in decode()
49 return createStringError(std::errc::io_error, in decode()
55 return createStringError(std::errc::io_error, in decode()
59 return createStringError(std::errc::io_error, in decode()
63 return createStringError(std::errc::io_error, in decode()
166 return createStringError(std::errc::io_error, in lookup()
172 return createStringError(std::errc::io_error, in lookup()
176 return createStringError(std::errc::io_error, in lookup()
185 return createStringError(std::errc::io_error, in lookup()
[all …]
H A DGsymReader.cpp52 return createStringError(std::errc::invalid_argument, in create()
69 return createStringError(std::errc::invalid_argument, in parse()
83 return createStringError(std::errc::invalid_argument, in parse()
113 return createStringError(std::errc::invalid_argument, in parse()
119 return createStringError(std::errc::invalid_argument, in parse()
125 return createStringError(std::errc::invalid_argument, in parse()
131 return createStringError(std::errc::invalid_argument, in parse()
178 return createStringError(std::errc::invalid_argument, in parse()
252 return createStringError(std::errc::invalid_argument, in getAddressIndex()
274 return createStringError(std::errc::invalid_argument, in getFunctionInfo()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.status/
H A Dstatus.pass.cpp37 const std::errc expect_errc = std::errc::no_such_file_or_directory; in TEST_CASE()
43 std::error_code ec = std::make_error_code(std::errc::address_in_use); in TEST_CASE()
71 const std::errc set_errc = std::errc::address_in_use; in TEST_CASE()
72 const std::errc perm_errc = std::errc::permission_denied; in TEST_CASE()
73 const std::errc name_too_long_errc = std::errc::filename_too_long; in TEST_CASE()
77 std::errc expect_errc; in TEST_CASE()
132 std::error_code ec = std::make_error_code(std::errc::address_in_use); in TEST_CASE()
163 std::error_code ec = std::make_error_code(std::errc::address_in_use); in TEST_CASE()
/llvm-project-15.0.7/libcxx/test/std/utilities/charconv/charconv.from.chars/
H A Dintegral.pass.cpp37 assert(r.ec == std::errc{}); in operator ()()
49 assert(r.ec == std::errc::result_out_of_range); in operator ()()
57 assert(r.ec == std::errc{}); in operator ()()
72 assert(r.ec == std::errc::result_out_of_range); in operator ()()
79 assert(r.ec == std::errc{}); in operator ()()
103 assert(r.ec == std::errc::invalid_argument); in operator ()()
109 assert(r.ec == std::errc{}); in operator ()()
119 assert(r.ec == std::errc{}); in operator ()()
135 assert(r.ec == std::errc::invalid_argument); in operator ()()
/llvm-project-15.0.7/libcxx/src/ryu/
H A Dd2fixed.cpp248 return { _Last, errc::value_too_large }; in __d2fixed_buffered_n()
257 return { _First, errc{} }; in __d2fixed_buffered_n()
304 return { _Last, errc::value_too_large }; in __d2fixed_buffered_n()
310 return { _Last, errc::value_too_large }; in __d2fixed_buffered_n()
417 return { _Last, errc::value_too_large }; in __d2fixed_buffered_n()
422 return { _First, errc{} }; in __d2fixed_buffered_n()
438 return { _Last, errc::value_too_large }; in __d2exp_buffered_n()
448 return { _First, errc{} }; in __d2exp_buffered_n()
589 return { _Last, errc::value_too_large }; in __d2exp_buffered_n()
649 return { _Last, errc::value_too_large }; in __d2exp_buffered_n()
[all …]
/llvm-project-15.0.7/llvm/lib/Remarks/
H A DBitstreamRemarkParser.cpp25 std::make_error_code(std::errc::illegal_byte_sequence), in unknownRecord()
32 std::make_error_code(std::errc::illegal_byte_sequence), in malformedRecord()
166 std::make_error_code(std::errc::illegal_byte_sequence), in parseBlock()
171 std::make_error_code(std::errc::illegal_byte_sequence), in parseBlock()
197 std::make_error_code(std::errc::illegal_byte_sequence), in parseBlock()
229 std::make_error_code(std::errc::illegal_byte_sequence), in parseBlockInfoBlock()
240 std::make_error_code(std::errc::illegal_byte_sequence), in parseBlockInfoBlock()
262 std::make_error_code(std::errc::illegal_byte_sequence), in isBlock()
303 std::make_error_code(std::errc::illegal_byte_sequence), in advanceToMetaBlock()
374 std::make_error_code(std::errc::illegal_byte_sequence), in processCommonMeta()
[all …]
/llvm-project-15.0.7/libcxx/src/filesystem/
H A Doperations.cpp410 errc __win_err_to_errc(int err) { in __win_err_to_errc()
413 errc errc; in __win_err_to_errc() member
425 {ERROR_CANTOPEN, errc::io_error}, in __win_err_to_errc()
426 {ERROR_CANTREAD, errc::io_error}, in __win_err_to_errc()
427 {ERROR_CANTWRITE, errc::io_error}, in __win_err_to_errc()
459 {ERROR_SEEK, errc::io_error}, in __win_err_to_errc()
468 return pair.errc; in __win_err_to_errc()
469 return errc::invalid_argument; in __win_err_to_errc()
1154 errc error_kind = in __file_size()
1155 is_directory(fst) ? errc::is_a_directory : errc::not_supported; in __file_size()
[all …]
/llvm-project-15.0.7/llvm/unittests/Support/
H A DErrorOrTest.cpp19 ErrorOr<int> t2() { return errc::invalid_argument; } in t2()
33 EXPECT_EQ(a.getError(), errc::invalid_argument); in TEST()
69 ErrorOr<int> x(errc::no_such_file_or_directory); in TEST()
70 EXPECT_EQ(x, errc::no_such_file_or_directory); in TEST()
93 operator std::error_code() { return errc::invalid_argument; } in TEST()
99 ErrorOr<CastsToErrorCode> x5(errc::no_such_file_or_directory); in TEST()
100 ErrorOr<CastsToErrorCode> x6 = errc::no_such_file_or_directory; in TEST()
101 ErrorOr<CastsToErrorCode> x7 = {errc::no_such_file_or_directory}; in TEST()
102 ErrorOr<CastsToErrorCode> x8{errc::no_such_file_or_directory}; in TEST()
/llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/
H A DDWARFDebugAddr.cpp23 AddrSize, errc::not_supported, "address table at offset 0x%" PRIx64, in extractAddresses()
28 return createStringError(errc::invalid_argument, in extractAddresses()
50 return createStringError(errc::invalid_argument, in extractV5()
60 errc::invalid_argument, in extractV5()
71 errc::invalid_argument, in extractV5()
84 return createStringError(errc::not_supported, in extractV5()
90 return createStringError(errc::not_supported, in extractV5()
99 errc::invalid_argument, in extractV5()
130 WarnCallback(createStringError(errc::invalid_argument, in extract()
174 return createStringError(errc::invalid_argument, in getAddrEntry()
H A DDWARFDebugArangeSet.cpp77 return createStringError(errc::invalid_argument, in extract()
87 return createStringError(errc::invalid_argument, in extract()
92 HeaderData.AddrSize, errc::invalid_argument, in extract()
96 return createStringError(errc::not_supported, in extract()
108 errc::invalid_argument, in extract()
122 errc::invalid_argument, in extract()
148 errc::invalid_argument, in extract()
157 return createStringError(errc::invalid_argument, in extract()
/llvm-project-15.0.7/llvm/lib/Support/
H A DRISCVISAInfo.cpp362 errc::invalid_argument, in getExtensionVersion()
369 errc::invalid_argument, in getExtensionVersion()
374 errc::invalid_argument, in getExtensionVersion()
486 return createStringError(errc::invalid_argument, in parseArchString()
514 errc::invalid_argument, in parseArchString()
580 errc::invalid_argument, in parseArchString()
712 errc::invalid_argument, in checkDependency()
725 errc::invalid_argument, in checkDependency()
730 errc::invalid_argument, in checkDependency()
736 errc::invalid_argument, in checkDependency()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DLoggerTests.cpp31 EXPECT_EQ("foo", llvm::toString(error(llvm::errc::invalid_argument, "foo"))); in TEST()
32 EXPECT_EQ(llvm::errc::invalid_argument, in TEST()
33 llvm::errorToErrorCode(error(llvm::errc::invalid_argument, "foo"))); in TEST()
36 llvm::toString(error(llvm::errc::invalid_argument, "foo {0}", 42))); in TEST()
37 EXPECT_EQ(llvm::errc::invalid_argument, in TEST()
39 error(llvm::errc::invalid_argument, "foo {0}", 42))); in TEST()
/llvm-project-15.0.7/llvm/tools/llvm-objcopy/
H A DObjcopyOptions.cpp201 errc::invalid_argument, in parseSectionFlagSet()
454 errc::invalid_argument, in parseNewSymbolInfo()
462 errc::invalid_argument, in parseNewSymbolInfo()
616 errc::invalid_argument, in parseObjcopyOptions()
728 errc::invalid_argument, in parseObjcopyOptions()
733 errc::invalid_argument, in parseObjcopyOptions()
991 errc::invalid_argument, in parseObjcopyOptions()
998 errc::invalid_argument, in parseObjcopyOptions()
1026 errc::invalid_argument, in parseInstallNameToolOptions()
1138 errc::invalid_argument, in parseInstallNameToolOptions()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/
H A Dsymlink_status.pass.cpp37 const std::errc expect_errc = std::errc::no_such_file_or_directory; in TEST_CASE()
42 std::error_code ec = std::make_error_code(std::errc::address_in_use); in TEST_CASE()
71 const std::errc set_errc = std::errc::address_in_use; in TEST_CASE()
72 const std::errc expect_errc = std::errc::permission_denied; in TEST_CASE()
141 std::error_code ec = std::make_error_code(std::errc::address_in_use); in TEST_CASE()
175 std::error_code ec = std::make_error_code(std::errc::address_in_use); in TEST_CASE()
189 std::error_code ec = std::make_error_code(std::errc::address_in_use); in TEST_CASE()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.file_size/
H A Dfile_size.pass.cpp73 std::errc expected_err; in TEST_CASE()
75 {static_env.Dir, std::errc::is_a_directory}, in TEST_CASE()
76 {static_env.SymlinkToDir, std::errc::is_a_directory}, in TEST_CASE()
77 {static_env.BadSymlink, std::errc::no_such_file_or_directory}, in TEST_CASE()
78 {static_env.DNE, std::errc::no_such_file_or_directory}, in TEST_CASE()
79 {"", std::errc::no_such_file_or_directory}}; in TEST_CASE()

12345678910>>...12