Home
last modified time | relevance | path

Searched refs:error_code (Results 1 – 25 of 723) sorted by relevance

12345678910>>...29

/llvm-project/libcxx/include/__filesystem/
H A Doperations.h23 #include <__system_error/error_code.h>
36 _LIBCPP_EXPORTED_FROM_ABI path __absolute(const path&, error_code* __ec = nullptr);
37 _LIBCPP_EXPORTED_FROM_ABI path __canonical(const path&, error_code* __ec = nullptr);
39 __copy_file(const path& __from, const path& __to, copy_options __opt, error_code* __ec = nullptr);
41 __copy_symlink(const path& __existing_symlink, const path& __new_symlink, error_code* __ec = nullptr);
43 __copy(const path& __from, const path& __to, copy_options __opt, error_code* __ec = nullptr);
44 _LIBCPP_EXPORTED_FROM_ABI bool __create_directories(const path&, error_code* = nullptr);
46 __create_directory_symlink(const path& __to, const path& __new_symlink, error_code* __ec = nullptr);
47 _LIBCPP_EXPORTED_FROM_ABI bool __create_directory(const path&, error_code* = nullptr);
48 _LIBCPP_EXPORTED_FROM_ABI bool __create_directory(const path&, const path& __attributes, error_code*
[all...]
H A Ddirectory_entry.h26 #include <__system_error/error_code.h>
55 error_code __ec;
59 _LIBCPP_HIDE_FROM_ABI directory_entry(_Path const& __p, error_code& __ec) : __p_(__p) { __refresh(&__ec); }
68 error_code __ec;
72 _LIBCPP_HIDE_FROM_ABI void assign(_Path const& __p, error_code& __ec) { in assign()
79 error_code __ec;
83 _LIBCPP_HIDE_FROM_ABI void replace_filename(_Path const& __p, error_code& __ec) { in replace_filename()
90 _LIBCPP_HIDE_FROM_ABI void refresh(error_code& __ec) noexcept { __refresh(&__ec); }
98 _LIBCPP_HIDE_FROM_ABI bool exists(error_code& __ec) const noexcept {
104 _LIBCPP_HIDE_FROM_ABI bool is_block_file(error_code in is_block_file()
[all...]
/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProfWriter.h96 virtual std::error_code writeSample(const FunctionSamples &S) = 0;
101 virtual std::error_code write(const SampleProfileMap &ProfileMap);
108 std::error_code writeWithSizeLimit(SampleProfileMap &ProfileMap, in writeWithSizeLimit()
138 virtual std::error_code writeHeader(const SampleProfileMap &ProfileMap) = 0;
141 virtual std::error_code writeFuncProfiles(const SampleProfileMap &ProfileMap);
143 std::error_code writeWithSizeLimitInternal(SampleProfileMap &ProfileMap,
168 std::error_code writeSample(const FunctionSamples &S) override;
174 std::error_code writeHeader(const SampleProfileMap &ProfileMap) override { in writeHeader()
206 std::error_code writeSample(const FunctionSamples &S) override;
210 virtual std::error_code writeMagicIden
[all...]
H A DSampleProfReader.h355 virtual std::error_code readHeader() = 0;
374 std::error_code read() { in read()
375 if (std::error_code EC = readImpl()) in read()
384 std::error_code read(const DenseSet<StringRef> &FuncsToUse) {
389 if (std::error_code EC = read(S, Profiles))
395 virtual std::error_code readImpl() = 0;
552 virtual std::error_code read(const DenseSet<StringRef> &FuncsToUse,
617 std::error_code readHeader() override { return sampleprof_error::success; }
620 std::error_code readImpl() override;
641 std::error_code readHeade
[all...]
/llvm-project/libcxx/include/__system_error/
H A Derror_code.h42 class _LIBCPP_EXPORTED_FROM_ABI error_code {
47 _LIBCPP_HIDE_FROM_ABI error_code() _NOEXCEPT : __val_(0), __cat_(&system_category()) {}
49 _LIBCPP_HIDE_FROM_ABI error_code(int __val, const error_category& __cat) _NOEXCEPT : __val_(__val), __cat_(&__cat) {}
52 _LIBCPP_HIDE_FROM_ABI error_code(_Ep __e) _NOEXCEPT {
63 _LIBCPP_HIDE_FROM_ABI error_code& operator=(_Ep __e) _NOEXCEPT {
87 inline _LIBCPP_HIDE_FROM_ABI error_code make_error_code(errc __e) _NOEXCEPT {
88 return error_code(static_cast<int>(__e), generic_category()); in make_error_code()
91 inline _LIBCPP_HIDE_FROM_ABI bool operator==(const error_code& __x, const error_code& __y) _NOEXCEPT {
95 inline _LIBCPP_HIDE_FROM_ABI bool operator==(const error_code
48 _LIBCPP_HIDE_FROM_ABI error_code() _NOEXCEPT : __val_(0), __cat_(&system_category()) {} error_code() function
50 _LIBCPP_HIDE_FROM_ABI error_code(int __val, const error_category& __cat) _NOEXCEPT : __val_(__val), __cat_(&__cat) {} error_code() function
53 _LIBCPP_HIDE_FROM_ABI error_code(_Ep __e) _NOEXCEPT { error_code() function
[all...]
/llvm-project/clang/tools/libclang/
H A DCXLoadedDiagnostic.cpp194 std::error_code reportBad(enum CXLoadDiag_Error code, llvm::StringRef err) { in reportBad()
202 std::error_code reportInvalidFile(llvm::StringRef err) { in reportInvalidFile()
206 std::error_code readRange(const serialized_diags::Location &SDStart,
210 std::error_code readLocation(const serialized_diags::Location &SDLoc,
214 std::error_code visitStartOfDiagnostic() override;
215 std::error_code visitEndOfDiagnostic() override;
217 std::error_code visitCategoryRecord(unsigned ID, StringRef Name) override;
219 std::error_code visitDiagFlagRecord(unsigned ID, StringRef Name) override;
221 std::error_code visitDiagnosticRecord(
225 std::error_code visitFilenameRecord(unsigned ID, unsigned Size,
[all …]
/llvm-project/llvm/lib/ProfileData/
H A DSampleProfReader.cpp325 std::error_code SampleProfileReaderText::readImpl() { in readImpl()
498 std::error_code EC = sampleprof_error::malformed; in readUnencodedNumber()
502 std::error_code EC = sampleprof_error::truncated; in readUnencodedNumber()
514 std::error_code EC = sampleprof_error::truncated; in readStringIndex()
526 std::error_code EC = sampleprof_error::truncated; in readStringFromTable()
539 if (std::error_code EC = Idx.getError()) in readContextFromTable()
549 if (std::error_code EC = Idx.getError()) in readSampleContextFromTable()
559 if (std::error_code EC = ContextIdx.getError()) in readSampleContextFromTable()
574 if (std::error_code EC = FContext.getError()) in readProfile()
579 if (std::error_code E in readProfile()
[all...]
H A DSampleProfWriter.cpp90 std::error_code SampleProfileWriter::writeWithSizeLimitInternal( in Erase()
108 if (std::error_code EC = write(ProfileMap)) in writeWithSizeLimitInternal()
140 std::error_code in writeWithSizeLimitInternal()
145 if (std::error_code EC = writeSample(*I.second)) in writeFuncProfiles()
151 std::error_code SampleProfileWriter::write(const SampleProfileMap &ProfileMap) { in writeFuncProfiles()
152 if (std::error_code EC = writeHeader(ProfileMap))
155 if (std::error_code EC = writeFuncProfiles(ProfileMap)) in write()
177 std::error_code SampleProfileWriterExtBinaryBase::compressAndOutput() { in markSectionStart()
199 std::error_code SampleProfileWriterExtBinaryBase::addNewSection(
206 if (std::error_code E in addNewSection()
[all...]
/llvm-project/llvm/include/llvm/Support/
H A DFileSystem.h13 // All functions return an error_code and their actual work via the last out
18 // this does not guarantee that error_code will be in the set of explicitly
20 // errors occur, the correct error_code will be used ]. All functions may
289 /// platform-specific error_code.
290 std::error_code make_absolute(SmallVectorImpl<char> &path);
296 /// specific error_code. If IgnoreExisting is false, also returns
298 std::error_code create_directories(const Twine &path,
306 /// specific error_code. If IgnoreExisting is false, also returns
308 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true,
321 /// specific error_code
[all...]
/llvm-project/clang/include/clang/Frontend/
H A DSerializedDiagnosticReader.h41 inline std::error_code make_error_code(SDError E) { in make_error_code()
42 return std::error_code(static_cast<int>(E), SDErrorCategory()); in make_error_code()
66 std::error_code readDiagnostics(StringRef File);
76 std::error_code readMetaBlock(llvm::BitstreamCursor &Stream);
79 std::error_code readDiagnosticBlock(llvm::BitstreamCursor &Stream);
83 virtual std::error_code visitStartOfDiagnostic() { return {}; } in visitStartOfDiagnostic()
86 virtual std::error_code visitEndOfDiagnostic() { return {}; } in visitEndOfDiagnostic()
89 virtual std::error_code visitCategoryRecord(unsigned ID, StringRef Name) { in visitCategoryRecord()
94 virtual std::error_code visitDiagFlagRecord(unsigned ID, StringRef Name) { in visitDiagFlagRecord()
99 virtual std::error_code
[all …]
/llvm-project/libcxx/include/
H A Dsystem_error31 virtual bool equivalent(const error_code& code, int condition) const noexcept;
55 class error_code
59 error_code() noexcept;
60 error_code(int val, const error_category& cat) noexcept;
62 error_code(ErrorCodeEnum e) noexcept;
67 error_code& operator=(ErrorCodeEnum e) noexcept;
81 operator<<(basic_ostream<charT,traits>& os, const error_code& ec);
109 system_error(error_code ec, const string& what_arg);
110 system_error(error_code ec, const char* what_arg);
111 system_error(error_code e
[all...]
H A Dfilesystem178 directory_entry(const filesystem::path& p, error_code& ec);
185 void assign(const filesystem::path& p, error_code& ec);
187 void replace_filename(const filesystem::path& p, error_code& ec);
189 void refresh(error_code& ec) noexcept;
194 bool exists(error_code& ec) const noexcept;
196 bool is_block_file(error_code& ec) const noexcept;
198 bool is_character_file(error_code& ec) const noexcept;
200 bool is_directory(error_code& ec) const noexcept;
202 bool is_fifo(error_code& ec) const noexcept;
204 bool is_other(error_code
[all...]
/llvm-project/llvm/unittests/Support/
H A DMemoryTest.cpp99 std::error_code EC; in TEST_P()
101 EXPECT_EQ(std::error_code(), EC); in TEST_P()
111 std::error_code EC; in TEST_P()
114 EXPECT_EQ(std::error_code(), EC); in TEST_P()
127 std::error_code EC; in TEST_P()
129 EXPECT_EQ(std::error_code(), EC); in TEST_P()
131 EXPECT_EQ(std::error_code(), EC); in TEST_P()
133 EXPECT_EQ(std::error_code(), EC); in TEST_P()
149 EXPECT_EQ(std::error_code(), EC); in TEST_P()
163 std::error_code EC; in TEST_P()
[all …]
/llvm-project/libcxx/test/std/diagnostics/syserr/syserr.compare/
H A Dcmp_error_code.pass.cpp23 AssertOrderAreNoexcept<std::error_code>(); in main()
24 AssertOrderReturn<std::strong_ordering, std::error_code>(); in main()
27 std::error_code ec1a = std::error_code(1, std::generic_category()); in main()
28 std::error_code ec1b = std::error_code(1, std::generic_category()); in main()
29 std::error_code ec2 = std::error_code(2, std::generic_category()); in main()
35 const std::error_code& ec3 = std::error_code(2, std::system_category()); in main()
/llvm-project/libcxx/src/filesystem/
H A Doperations.cpp87 static path __do_absolute(const path& p, path* cwd, error_code* ec) { in __canonical()
98 path __absolute(const path& p, error_code* ec) { in __canonical()
103 path __canonical(path const& orig_p, error_code* ec) {
126 void __copy(const path& from, const path& to, copy_options options, error_code* ec) { in __copy()
133 error_code m_ec1; in __copy()
187 error_code m_ec2; in copy_file_impl()
204 bool copy_file_impl_fstream(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code& ec) {
240 bool copy_file_impl_copy_file_range(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code& ec) {
274 bool copy_file_impl_sendfile(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code& ec) { in __copy_file()
304 bool copy_file_impl(FileDescriptor& read_fd, FileDescriptor& write_fd, error_code in __copy_file()
[all...]
H A Ddirectory_iterator.cpp42 __dir_stream(const path& root, directory_options opts, error_code& ec) in __dir_stream()
68 bool advance(error_code& ec) { in advance()
91 error_code close() noexcept { in close()
92 error_code ec; in close()
117 __dir_stream(const path& root, directory_options opts, error_code& ec) : __stream_(nullptr), __root_(root) { in __dir_stream()
135 bool advance(error_code& ec) { in advance()
152 error_code close() noexcept { in close()
153 error_code m_ec; in close()
170 directory_iterator::directory_iterator(const path& p, error_code* ec, directory_options opts) { in directory_iterator()
173 error_code m_e in directory_iterator()
[all...]
H A Dfile_descriptor.h74 inline pair<string_view, file_type> posix_readdir(DIR* dir_stream, error_code& ec) { in posix_readdir()
128 static FileDescriptor create(const path* p, error_code& ec, Args... args) { in create()
157 static FileDescriptor create_with_status(const path* p, error_code& ec, Args... args) {
170 file_status refresh_status(error_code& ec); in close()
179 // FIXME: shouldn't this return an error_code? in FileDescriptor()
201 inline file_status create_file_status(error_code& m_ec, path const& p, const StatT& path_stat, error_code* ec) { in create_file_status()
236 inline file_status posix_stat(path const& p, StatT& path_stat, error_code* ec) { in posix_stat()
237 error_code m_ec; in posix_stat()
243 inline file_status posix_stat(path const& p, error_code* e in posix_lstat()
[all...]
/llvm-project/llvm/lib/Support/
H A DError.cpp28 // deal with the Error value directly, rather than converting to error_code.
39 "not be converted to a known std::error_code. Please file a " in message()
93 std::error_code ErrorList::convertToErrorCode() const { in convertToErrorCode()
94 return std::error_code(static_cast<int>(ErrorErrorCode::MultipleErrors), in convertToErrorCode()
98 std::error_code inconvertibleErrorCode() { in inconvertibleErrorCode()
99 return std::error_code(static_cast<int>(ErrorErrorCode::InconvertibleError), in inconvertibleErrorCode()
103 std::error_code FileError::convertToErrorCode() const { in convertToErrorCode()
104 std::error_code NestedEC = Err->convertToErrorCode(); in convertToErrorCode()
106 return std::error_code(static_cast<int>(ErrorErrorCode::FileError), in convertToErrorCode()
111 Error errorCodeToError(std::error_code E
[all...]
H A DPath.cpp169 static std::error_code
179 std::error_code EC; in createUniqueEntity()
195 return std::error_code(); in createUniqueEntity()
201 return std::error_code(); in createUniqueEntity()
214 return std::error_code(); in createUniqueEntity()
787 std::error_code getUniqueID(const Twine Path, UniqueID &Result) {
789 std::error_code EC = status(Path, Status); in getUniqueID()
793 return std::error_code(); in getUniqueID()
822 std::error_code createUniqueFile(const Twine &Model, int &ResultFd,
829 std::error_code createUniqueFil in createUniqueFile()
[all...]
/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy/
H A Dcopy.pass.cpp41 std::error_code ec; ((void)ec); in signature_test()
53 auto checkThrow = [](path const& f, path const& t, const std::error_code& ec) in test_error_reporting()
83 std::error_code ec = test_ec; in test_error_reporting()
92 std::error_code ec = test_ec; in test_error_reporting()
99 std::error_code ec = test_ec; in test_error_reporting()
107 std::error_code ec = test_ec; in test_error_reporting()
114 std::error_code ec = test_ec; in test_error_reporting()
131 std::error_code ec = GetTestEC(); in from_is_symlink()
138 std::error_code ec = GetTestEC(); in from_is_symlink()
145 std::error_code ec = GetTestEC(); in from_is_symlink()
[all …]
/llvm-project/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/
H A Dctor.pass.cpp45 std::error_code&>::value, ""); in test_constructor_signatures()
47 std::error_code&>::value, ""); in test_constructor_signatures()
55 std::error_code&>::value, ""); in test_constructor_signatures()
57 std::error_code&>::value, ""); in test_constructor_signatures()
64 std::error_code ec; in test_construction_from_bad_path()
117 std::error_code ec; in access_denied_test_case()
125 std::error_code ec; in access_denied_test_case()
146 std::error_code ec; in access_denied_to_file_test_case()
154 std::error_code ec; in access_denied_to_file_test_case()
169 std::error_code ec; in test_open_on_empty_directory_equals_end()
[all …]
/llvm-project/llvm/lib/Support/Windows/
H A DPath.inc68 std::error_code widenPath(const Twine &Path8, SmallVectorImpl<wchar_t> &Path16,
82 if (std::error_code EC = UTF8ToUTF16(Path8Str, Path16))
100 return std::error_code();
103 if (std::error_code EC = llvm::sys::fs::make_absolute(Path8Str))
198 std::error_code current_path(SmallVectorImpl<char> &result) {
218 if (std::error_code EC =
223 return std::error_code();
226 std::error_code set_current_path(const Twine &path) {
229 if (std::error_code ec = widenPath(path, wide_path))
235 return std::error_code();
[all...]
/llvm-project/libcxx/src/
H A Dsystem_error.cpp210 string make_error_str(const error_code& ec, string what_arg) {
220 string make_error_str(const error_code& ec) { in __throw_system_error()
334 // error_code
336 string error_code::message() const { return __cat_->message(__val_); }
340 system_error::system_error(error_code ec, const string& what_arg)
343 system_error::system_error(error_code ec, const char* what_arg)
346 system_error::system_error(error_code ec) : runtime_error(make_error_str(ec)), __ec_(ec) {}
349 : runtime_error(make_error_str(error_code(ev, ecat), what_arg)), __ec_(error_code(ev, ecat)) {}
352 : runtime_error(make_error_str(error_code(e
[all...]
/llvm-project/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/
H A Dpath.pass.cpp53 std::error_code&>::value, in path_ec_ctor()
56 std::error_code&>::value, in path_ec_ctor()
59 test_convertible<directory_entry, const path&, std::error_code&>(), in path_ec_ctor()
63 std::error_code ec = GetTestEC(); in path_ec_ctor()
70 std::error_code ec = GetTestEC(); in path_ec_ctor()
86 std::error_code ec = GetTestEC(); in path_ctor_calls_refresh()
103 std::error_code ec = GetTestEC(); in path_ctor_calls_refresh()
127 std::error_code ec = GetTestEC(); in path_ctor_dne()
134 std::error_code ec = GetTestEC(); in path_ctor_dne()
160 std::error_code ec = GetTestEC(); in path_ctor_cannot_resolve()
[all …]
/llvm-project/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/
H A Dctor.pass.cpp48 std::error_code&>::value, ""); in test_constructor_signatures()
50 std::error_code&>::value, ""); in test_constructor_signatures()
57 static_assert(std::is_constructible<D, path, directory_options, std::error_code&>::value, ""); in test_constructor_signatures()
58 …static_assert(!std::is_nothrow_constructible<D, path, directory_options, std::error_code&>::value,… in test_constructor_signatures()
64 std::error_code ec; in test_construction_from_bad_path()
118 std::error_code ec; in access_denied_test_case()
126 std::error_code ec; in access_denied_test_case()
157 std::error_code ec; in access_denied_to_file_test_case()
165 std::error_code ec; in access_denied_to_file_test_case()
180 std::error_code ec; in test_open_on_empty_directory_equals_end()
[all …]

12345678910>>...29