Home
last modified time | relevance | path

Searched refs:ErrorOr (Results 1 – 25 of 211) sorted by relevance

123456789

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DErrorOr.h56 class ErrorOr {
57 template <class OtherT> friend class ErrorOr; variable
74 ErrorOr(E ErrorCode,
82 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function
87 ErrorOr(OtherT &&Val,
93 ErrorOr(const ErrorOr &Other) { in ErrorOr() function
98 ErrorOr(const ErrorOr<OtherT> &Other,
104 explicit ErrorOr(
105 const ErrorOr<OtherT> &Other,
110 ErrorOr(ErrorOr &&Other) { in ErrorOr() function
[all …]
H A DMemoryBuffer.h98 static ErrorOr<std::unique_ptr<MemoryBuffer>>
106 static ErrorOr<std::unique_ptr<MemoryBuffer>>
112 static ErrorOr<std::unique_ptr<MemoryBuffer>>
126 static ErrorOr<std::unique_ptr<MemoryBuffer>>
146 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
150 static ErrorOr<std::unique_ptr<MemoryBuffer>>
156 static ErrorOr<std::unique_ptr<MemoryBuffer>>
203 LLVM_ABI static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
208 LLVM_ABI static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
267 LLVM_ABI static ErrorOr<std::unique_ptr<WriteThroughMemoryBuffer>>
[all …]
H A DVirtualFileSystem.h121 virtual llvm::ErrorOr<Status> status() = 0;
124 virtual llvm::ErrorOr<std::string> getName() { in getName()
132 virtual llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
140 static ErrorOr<std::unique_ptr<File>>
141 getWithPath(ErrorOr<std::unique_ptr<File>> Result, const Twine &P);
274 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0;
277 virtual llvm::ErrorOr<std::unique_ptr<File>>
285 virtual llvm::ErrorOr<std::unique_ptr<File>>
294 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
309 virtual llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const = 0;
[all …]
H A DAutoConvert.h50 ErrorOr<__ccsid_t> getzOSFileTag(const char *FileName, const int FD = -1);
55 ErrorOr<bool> needzOSConversion(const char *FileName, const int FD = -1);
90 inline ErrorOr<bool> needConversion(const char *FileName, const int FD = -1) {
H A DTextEncoding.h96 LLVM_ABI static ErrorOr<TextEncodingConverter> create(TextEncoding From,
105 LLVM_ABI static ErrorOr<TextEncodingConverter> create(StringRef From,
131 ErrorOr<std::string> convert(StringRef Source) const { in convert()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DMemoryBuffer.cpp121 static ErrorOr<std::unique_ptr<MB>>
140 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
160 ErrorOr<std::unique_ptr<MemoryBuffer>>
173 ErrorOr<std::unique_ptr<MemoryBuffer>>
249 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
257 ErrorOr<std::unique_ptr<MemoryBuffer>>
267 static ErrorOr<std::unique_ptr<MB>>
273 static ErrorOr<std::unique_ptr<MB>>
288 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
296 ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
[all …]
H A DVirtualFileSystem.cpp117 ErrorOr<std::unique_ptr<MemoryBuffer>>
154 llvm::ErrorOr<bool> FileSystem::equivalent(const Twine &A, const Twine &B) { in equivalent()
207 ErrorOr<Status> status() override;
208 ErrorOr<std::string> getName() override;
209 ErrorOr<std::unique_ptr<MemoryBuffer>> getBuffer(const Twine &Name,
221 ErrorOr<Status> RealFile::status() { in status()
232 ErrorOr<std::string> RealFile::getName() { in getName()
236 ErrorOr<std::unique_ptr<MemoryBuffer>>
280 ErrorOr<Status> status(const Twine &Path) override;
281 ErrorOr<std::unique_ptr<File>> openFileForRead(const Twine &Path) override;
[all …]
H A DAutoConvert.cpp99 ErrorOr<__ccsid_t> llvm::getzOSFileTag(const char *FileName, const int FD) { in getzOSFileTag()
118 ErrorOr<bool> llvm::needzOSConversion(const char *FileName, const int FD) { in needzOSConversion()
119 ErrorOr<__ccsid_t> Ccsid = getzOSFileTag(FileName, FD); in needzOSConversion()
/freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.cpp18 llvm::ErrorOr<DependencyScanningWorkerFilesystem::TentativeEntry>
120 llvm::ErrorOr<llvm::vfs::Status> Status = UnderlyingFS.status(Path); in getOutOfDateEntries()
174 llvm::ErrorOr<llvm::vfs::Status> Stat) { in getOrEmplaceEntryForFilename()
229 llvm::ErrorOr<llvm::StringRef> RealPath) { in getOrEmplaceRealPathForFilename()
281 llvm::ErrorOr<const CachedFileSystemEntry &>
284 llvm::ErrorOr<llvm::vfs::Status> Stat = in computeAndStoreResult()
310 llvm::ErrorOr<EntryRef>
327 llvm::ErrorOr<llvm::vfs::Status>
335 llvm::ErrorOr<EntryRef> Result = getOrCreateFileSystemEntry(Filename); in status()
348 llvm::ErrorOr<llvm::vfs::Status> Status = status(Path); in exists()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/DependencyScanning/
H A DDependencyScanningFilesystem.h65 CachedFileSystemEntry(llvm::ErrorOr<llvm::vfs::Status> Stat) in CachedFileSystemEntry()
71 CachedFileSystemEntry(llvm::ErrorOr<llvm::vfs::Status> Stat, in CachedFileSystemEntry()
136 llvm::ErrorOr<llvm::vfs::Status> MaybeStat;
146 using CachedRealPath = llvm::ErrorOr<std::string>;
191 llvm::ErrorOr<llvm::vfs::Status> Stat);
215 llvm::ErrorOr<StringRef> RealPath);
344 llvm::ErrorOr<EntryRef> unwrapError() const { in unwrapError()
377 llvm::ErrorOr<llvm::vfs::Status> status(const Twine &Path) override;
378 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
396 llvm::ErrorOr<EntryRef> getOrCreateFileSystemEntry(StringRef Filename);
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/File/
H A Ddir.h23 ErrorOr<int> platform_opendir(const char *name);
32 ErrorOr<size_t> platform_fetch_dirents(int fd, cpp::span<uint8_t> buffer);
65 static ErrorOr<Dir *> open(const char *path);
67 ErrorOr<struct ::dirent *> read();
H A Dfile.h51 using SeekFunc = ErrorOr<off_t>(File *, off_t, int);
186 ErrorOr<int> seek(off_t offset, int whence);
188 ErrorOr<off_t> tell();
312 ErrorOr<File *> openfile(const char *path, const char *mode);
/freebsd/contrib/llvm-project/libc/src/__support/OSUtil/
H A Dfcntl.h18 ErrorOr<int> fcntl(int fd, int cmd, void *arg = nullptr);
20 ErrorOr<int> open(const char *path, int flags, mode_t mode_flags = 0);
22 ErrorOr<int> close(int fd);
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProfReader.h277 LLVM_ABI static ErrorOr<std::unique_ptr<SampleProfileReaderItaniumRemapper>>
283 LLVM_ABI static ErrorOr<std::unique_ptr<SampleProfileReaderItaniumRemapper>>
461 LLVM_ABI static ErrorOr<std::unique_ptr<SampleProfileReader>>
469 LLVM_ABI static ErrorOr<std::unique_ptr<SampleProfileReader>>
661 template <typename T> ErrorOr<T> readNumber();
665 template <typename T> ErrorOr<T> readUnencodedNumber();
673 ErrorOr<StringRef> readString();
676 template <typename T> inline ErrorOr<size_t> readStringIndex(T &Table);
696 ErrorOr<FunctionId> readStringFromTable(size_t *RetIdx = nullptr);
700 ErrorOr<SampleContextFrames> readContextFromTable(size_t *RetIdx = nullptr);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/LTO/legacy/
H A DLTOModule.h98 LLVM_ABI static ErrorOr<std::unique_ptr<LTOModule>>
101 LLVM_ABI static ErrorOr<std::unique_ptr<LTOModule>>
104 LLVM_ABI static ErrorOr<std::unique_ptr<LTOModule>>
108 LLVM_ABI static ErrorOr<std::unique_ptr<LTOModule>>
111 LLVM_ABI static ErrorOr<std::unique_ptr<LTOModule>>
227 static ErrorOr<std::unique_ptr<LTOModule>>
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DFileManager.h86 llvm::StringMap<llvm::ErrorOr<DirectoryEntry &>, llvm::BumpPtrAllocator>
94 llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>, llvm::BumpPtrAllocator>
101 std::unique_ptr<llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>>
260 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
265 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
276 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DLTOModule.cpp60 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in isBitcodeFile()
86 ErrorOr<std::string> TripleOrErr = in isBitcodeForTarget()
99 ErrorOr<std::string> ProducerOrErr = expectedToErrorOrAndEmitErrors( in getProducerString()
106 ErrorOr<std::unique_ptr<LTOModule>>
109 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromFile()
120 ErrorOr<std::unique_ptr<LTOModule>>
126 ErrorOr<std::unique_ptr<LTOModule>>
130 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromOpenFileSlice()
142 ErrorOr<std::unique_ptr<LTOModule>>
151 ErrorOr<std::unique_ptr<LTOModule>>
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/wchar/
H A Dstring_converter.h33 ErrorOr<size_t> pushFullCharacter() { in pushFullCharacter()
58 ErrorOr<char32_t> popUTF32() { in popUTF32()
81 ErrorOr<char8_t> popUTF8() { in popUTF8()
H A Dcharacter_converter.h40 ErrorOr<char8_t> pop_utf8();
41 ErrorOr<char32_t> pop_utf32();
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSampleProfileLoaderBaseImpl.h231 virtual ErrorOr<uint64_t> getInstWeight(const InstructionT &Inst);
232 ErrorOr<uint64_t> getInstWeightImpl(const InstructionT &Inst);
233 virtual ErrorOr<uint64_t> getProbeWeight(const InstructionT &Inst);
234 ErrorOr<uint64_t> getBlockWeight(const BasicBlockT *BB);
402 ErrorOr<uint64_t>
410 ErrorOr<uint64_t>
428 ErrorOr<uint64_t> R = FS->findSamplesAt(LineOffset, Discriminator);
454 ErrorOr<uint64_t>
514 ErrorOr<uint64_t>
519 const ErrorOr<uint64_t> &R = getInstWeight(I);
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DFileSystem.cpp72 llvm::ErrorOr<vfs::Status>
80 llvm::ErrorOr<vfs::Status> FileSystem::GetStatus(const Twine &path) const { in GetStatus()
92 ErrorOr<vfs::Status> status = m_fs->status(path); in GetModificationTime()
105 ErrorOr<vfs::Status> status = m_fs->status(path); in GetByteSize()
129 ErrorOr<vfs::Status> status = m_fs->status(path); in GetPermissions()
152 ErrorOr<vfs::Status> status = m_fs->status(path); in IsDirectory()
181 ErrorOr<vfs::Status> Status = m_fs->status(Item.path()); in EnumerateDirectory()
331 llvm::ErrorOr<std::string> error_or_path = in ResolveExecutableLocation()
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/posix/
H A DSupport.h19 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
22 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
/freebsd/contrib/llvm-project/libc/src/__support/File/linux/
H A Dfile.h17 ErrorOr<off_t> linux_file_seek(File *, off_t, int);
35 ErrorOr<LinuxFile *> create_file_from_fd(int fd, const char *mode);
H A Ddir.cpp20 ErrorOr<int> platform_opendir(const char *name) { in platform_opendir()
38 ErrorOr<size_t> platform_fetch_dirents(int fd, cpp::span<uint8_t> buffer) { in platform_fetch_dirents()
/freebsd/contrib/llvm-project/libc/src/__support/OSUtil/linux/
H A Dfcntl.cpp28 ErrorOr<int> fcntl(int fd, int cmd, void *arg) { in fcntl()
119 ErrorOr<int> open(const char *path, int flags, mode_t mode_flags) { in open()
132 ErrorOr<int> close(int fd) { in close()

123456789