|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
usr/include/c++/7.4.0/system_error 47 class error_code;
References
examples/BrainF/BrainFDriver.cpp 128 std::error_code EC;
examples/Kaleidoscope/Chapter8/toy.cpp 1247 std::error_code EC;
include/llvm/ADT/Optional.h 87 template <class... Args> void emplace(Args &&... args) {
144 T value;
172 T &getValue() LLVM_LVALUE_FUNCTION noexcept {
176 T const &getValue() const LLVM_LVALUE_FUNCTION noexcept {
181 T &&getValue() && noexcept {
197 ::new ((void *)std::addressof(value)) T(y);
206 ::new ((void *)std::addressof(value)) T(std::move(y));
216 optional_detail::OptionalStorage<T> Storage;
219 using value_type = T;
224 Optional(const T &y) : Storage(optional_detail::in_place_t{}, y) {}
227 Optional(T &&y) : Storage(optional_detail::in_place_t{}, std::move(y)) {}
230 Optional &operator=(T &&y) {
237 template <typename... ArgTypes> void emplace(ArgTypes &&... Args) {
241 static inline Optional create(const T *y) {
245 Optional &operator=(const T &y) {
253 const T *getPointer() const { return &Storage.getValue(); }
254 T *getPointer() { return &Storage.getValue(); }
255 const T &getValue() const LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
256 T &getValue() LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
260 const T *operator->() const { return getPointer(); }
261 T *operator->() { return getPointer(); }
262 const T &operator*() const LLVM_LVALUE_FUNCTION { return getValue(); }
263 T &operator*() LLVM_LVALUE_FUNCTION { return getValue(); }
266 constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION {
271 T &&getValue() && { return std::move(Storage.getValue()); }
272 T &&operator*() && { return std::move(Storage.getValue()); }
275 T getValueOr(U &&value) && {
include/llvm/Analysis/DOTGraphTraitsPass.h 98 std::error_code EC;
161 std::error_code EC;
include/llvm/BinaryFormat/Magic.h 74 std::error_code identify_magic(const Twine &path, file_magic &result);
include/llvm/Bitcode/BitcodeReader.h 38 std::error_code errorToErrorCodeAndEmitErrors(LLVMContext &Ctx, Error Err);
260 inline std::error_code make_error_code(BitcodeError E) {
include/llvm/DebugInfo/CodeView/CodeViewError.h 38 inline std::error_code make_error_code(cv_error_code E) {
46 StringError>::ErrorInfo; // inherit constructors
include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h 328 std::error_code convertToErrorCode() const override;
include/llvm/DebugInfo/MSF/MSFError.h 38 inline std::error_code make_error_code(msf_error_code E) {
45 using ErrorInfo<MSFError, StringError>::ErrorInfo; // inherit constructors
include/llvm/DebugInfo/PDB/GenericError.h 38 inline std::error_code make_error_code(pdb_error_code E) {
45 using ErrorInfo<PDBError, StringError>::ErrorInfo; // inherit constructors
include/llvm/DebugInfo/PDB/Native/RawError.h 45 inline std::error_code make_error_code(raw_error_code E) {
52 using ErrorInfo<RawError, StringError>::ErrorInfo; // inherit constructors
include/llvm/ExecutionEngine/JITLink/JITLink.h 50 std::error_code convertToErrorCode() const override;
include/llvm/ExecutionEngine/Orc/Core.h 128 std::error_code convertToErrorCode() const override;
142 std::error_code convertToErrorCode() const override;
156 std::error_code convertToErrorCode() const override;
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h 122 std::error_code EC;
146 std::error_code EC;
167 if (auto EC = sys::Memory::protectMappedMemory(
include/llvm/ExecutionEngine/Orc/OrcError.h 41 std::error_code orcError(OrcErrorCode ErrCode);
48 std::error_code convertToErrorCode() const override;
60 std::error_code convertToErrorCode() const override;
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h 39 std::error_code convertToErrorCode() const override {
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h 122 std::error_code EC;
283 std::error_code EC;
299 std::error_code EC;
include/llvm/ExecutionEngine/Orc/RPCUtils.h 47 std::error_code convertToErrorCode() const override;
66 std::error_code convertToErrorCode() const override {
99 std::error_code convertToErrorCode() const override {
120 std::error_code convertToErrorCode() const override;
131 std::error_code convertToErrorCode() const override;
include/llvm/ExecutionEngine/RuntimeDyld.h 50 std::error_code convertToErrorCode() const override;
include/llvm/ExecutionEngine/SectionMemoryManager.h 76 unsigned Flags, std::error_code &EC) = 0;
90 virtual std::error_code protectMappedMemory(const sys::MemoryBlock &Block,
100 virtual std::error_code releaseMappedMemory(sys::MemoryBlock &M) = 0;
181 std::error_code applyMemoryGroupPermissions(MemoryGroup &MemGroup,
include/llvm/IR/RemarkStreamer.h 63 std::error_code EC;
73 std::error_code convertToErrorCode() const override { return EC; }
include/llvm/MCA/Support.h 37 std::error_code convertToErrorCode() const override {
include/llvm/Object/Binary.h 163 static std::error_code checkOffset(MemoryBufferRef M, uintptr_t Addr,
include/llvm/Object/COFF.h 790 std::error_code getString(uint32_t offset, StringRef &Res) const;
797 std::error_code initSymbolTablePtr();
798 std::error_code initImportTablePtr();
799 std::error_code initDelayImportTablePtr();
800 std::error_code initExportTablePtr();
801 std::error_code initBaseRelocPtr();
802 std::error_code initDebugDirectoryPtr();
803 std::error_code initLoadConfigPtr();
926 COFFObjectFile(MemoryBufferRef Object, std::error_code &EC);
983 std::error_code getDataDirectory(uint32_t index,
985 std::error_code getSection(int32_t index, const coff_section *&Res) const;
986 std::error_code getSection(StringRef SectionName,
990 std::error_code getSymbol(uint32_t Index,
1001 if (std::error_code EC = getSymbol(index, Symb))
1007 if (std::error_code EC = getSymbol(index, Symb))
1015 std::error_code getAuxSymbol(uint32_t index, const T *&Res) const {
1023 std::error_code getSymbolName(COFFSymbolRef Symbol, StringRef &Res) const;
1024 std::error_code getSymbolName(const coff_symbol_generic *Symbol,
1047 std::error_code getVaPtr(uint64_t VA, uintptr_t &Res) const;
1048 std::error_code getRvaPtr(uint32_t Rva, uintptr_t &Res) const;
1053 std::error_code getRvaAndSizeAsBytes(uint32_t RVA, uint32_t Size,
1056 std::error_code getHintName(uint32_t Rva, uint16_t &Hint,
1060 std::error_code getDebugPDBInfo(const debug_directory *DebugDir,
1068 std::error_code getDebugPDBInfo(const codeview::DebugInfo *&Info,
1098 std::error_code getName(StringRef &Result) const;
1099 std::error_code getImportLookupTableRVA(uint32_t &Result) const;
1100 std::error_code getImportAddressTableRVA(uint32_t &Result) const;
1102 std::error_code
1125 std::error_code getName(StringRef &Result) const;
1126 std::error_code getDelayImportTable(
1128 std::error_code getImportAddress(int AddrIndex, uint64_t &Result) const;
1147 std::error_code getDllName(StringRef &Result) const;
1148 std::error_code getOrdinalBase(uint32_t &Result) const;
1149 std::error_code getOrdinal(uint32_t &Result) const;
1150 std::error_code getExportRVA(uint32_t &Result) const;
1151 std::error_code getSymbolName(StringRef &Result) const;
1153 std::error_code isForwarder(bool &Result) const;
1154 std::error_code getForwardTo(StringRef &Result) const;
1175 std::error_code getSymbolName(StringRef &Result) const;
1176 std::error_code isOrdinal(bool &Result) const;
1177 std::error_code getOrdinal(uint16_t &Result) const;
1178 std::error_code getHintNameRVA(uint32_t &Result) const;
1197 std::error_code getType(uint8_t &Type) const;
1198 std::error_code getRVA(uint32_t &Result) const;
include/llvm/Object/ELFObjectFile.h 726 if (std::error_code EC =
include/llvm/Object/Error.h 39 inline std::error_code make_error_code(object_error e) {
include/llvm/Object/MachO.h 56 std::error_code getOffset(uint32_t &Result) const;
57 std::error_code getLength(uint16_t &Result) const;
58 std::error_code getKind(uint16_t &Result) const;
283 std::error_code getIndirectName(DataRefImpl Symb, StringRef &Res) const;
344 std::error_code getLibraryShortNameByIndex(unsigned Index, StringRef &) const;
702 inline std::error_code DiceRef::getOffset(uint32_t &Result) const {
710 inline std::error_code DiceRef::getLength(uint16_t &Result) const {
718 inline std::error_code DiceRef::getKind(uint16_t &Result) const {
include/llvm/ProfileData/Coverage/CoverageMapping.h 62 inline std::error_code make_error_code(coveragemap_error E) {
76 std::error_code convertToErrorCode() const override {
include/llvm/ProfileData/InstrProf.h 297 inline std::error_code make_error_code(instrprof_error E) {
311 std::error_code convertToErrorCode() const override {
include/llvm/ProfileData/SampleProf.h 61 inline std::error_code make_error_code(sampleprof_error E) {
665 std::error_code read(const uint8_t *Data, uint64_t ListSize);
666 std::error_code write(raw_ostream &OS);
include/llvm/ProfileData/SampleProfReader.h 330 virtual std::error_code readHeader() = 0;
333 std::error_code read() {
334 if (std::error_code EC = readImpl())
342 virtual std::error_code readImpl() = 0;
451 std::error_code readHeader() override { return sampleprof_error::success; }
454 std::error_code readImpl() override;
467 virtual std::error_code readHeader() override;
470 std::error_code readImpl() override;
504 std::error_code readFuncProfile(const uint8_t *Start);
507 std::error_code readProfile(FunctionSamples &FProfile);
510 std::error_code readMagicIdent();
513 std::error_code readSummary();
516 virtual std::error_code readNameTable();
531 std::error_code readSummaryEntry(std::vector<ProfileSummaryEntry> &Entries);
532 virtual std::error_code verifySPMagic(uint64_t Magic) = 0;
537 virtual std::error_code verifySPMagic(uint64_t Magic) override;
569 std::error_code decompressSection(const uint8_t *SecStart,
579 std::error_code readSecHdrTableEntry();
580 std::error_code readSecHdrTable();
581 virtual std::error_code readHeader() override;
582 virtual std::error_code verifySPMagic(uint64_t Magic) override = 0;
583 virtual std::error_code readOneSection(const uint8_t *Start, uint64_t Size,
592 std::error_code readImpl() override;
603 virtual std::error_code verifySPMagic(uint64_t Magic) override;
604 virtual std::error_code readOneSection(const uint8_t *Start, uint64_t Size,
606 std::error_code readProfileSymbolList();
607 std::error_code readFuncOffsetTable();
608 std::error_code readFuncProfiles();
645 virtual std::error_code verifySPMagic(uint64_t Magic) override;
646 virtual std::error_code readNameTable() override;
649 virtual std::error_code readHeader() override;
650 std::error_code readFuncOffsetTable();
661 std::error_code readImpl() override;
689 std::error_code readHeader() override;
692 std::error_code readImpl() override;
698 std::error_code readNameTable();
699 std::error_code readOneFunctionProfile(const InlineCallStack &InlineStack,
701 std::error_code readFunctionProfiles();
702 std::error_code skipNextWord();
707 std::error_code readSectionTag(uint32_t Expected);
include/llvm/ProfileData/SampleProfWriter.h 39 virtual std::error_code writeSample(const FunctionSamples &S) = 0;
44 virtual std::error_code write(const StringMap<FunctionSamples> &ProfileMap);
66 virtual std::error_code
70 virtual std::error_code
89 std::error_code writeSample(const FunctionSamples &S) override;
95 std::error_code
117 virtual std::error_code writeSample(const FunctionSamples &S) override;
120 virtual std::error_code writeMagicIdent(SampleProfileFormat Format);
121 virtual std::error_code writeNameTable();
122 virtual std::error_code
124 std::error_code writeSummary();
125 std::error_code writeNameIdx(StringRef FName);
126 std::error_code writeBody(const FunctionSamples &S);
147 virtual std::error_code
155 std::error_code addNewSection(SecType Sec, uint64_t SectionStart);
157 virtual std::error_code
168 std::error_code writeSecHdrTable();
169 virtual std::error_code
173 std::error_code compressAndOutput();
200 virtual std::error_code writeSample(const FunctionSamples &S) override;
223 virtual std::error_code
234 std::error_code writeFuncOffsetTable();
271 virtual std::error_code writeSample(const FunctionSamples &S) override;
272 virtual std::error_code
282 virtual std::error_code writeNameTable() override;
283 virtual std::error_code
285 std::error_code writeFuncOffsetTable();
include/llvm/Remarks/RemarkParser.h 33 std::error_code convertToErrorCode() const override {
include/llvm/Support/AMDGPUMetadata.h 433 std::error_code fromString(std::string String, Metadata &HSAMetadata);
436 std::error_code toString(Metadata HSAMetadata, std::string &String);
include/llvm/Support/AlignOf.h 30 T t;
39 template <typename T> union SizerImpl<T> { char arr[sizeof(T)]; };
50 llvm::detail::SizerImpl<T, Ts...>)];
include/llvm/Support/BinaryStreamError.h 35 std::error_code convertToErrorCode() const override;
include/llvm/Support/Errc.h 78 inline std::error_code make_error_code(errc E) {
include/llvm/Support/Error.h 67 virtual std::error_code convertToErrorCode() const = 0;
330 template <typename ErrT, typename... ArgTs> Error make_error(ArgTs &&... Args) {
331 return Error(std::make_unique<ErrT>(std::forward<ArgTs>(Args)...));
346 using ParentErrT::ParentErrT; // inherit constructors
377 std::error_code convertToErrorCode() const override;
1100 friend Error errorCodeToError(std::error_code);
1105 void setErrorCode(std::error_code EC) { this->EC = EC; }
1106 std::error_code convertToErrorCode() const override { return EC; }
1114 ECError(std::error_code EC) : EC(EC) {}
1116 std::error_code EC;
1125 std::error_code inconvertibleErrorCode();
1128 Error errorCodeToError(std::error_code EC);
1134 std::error_code errorToErrorCode(Error Err);
1138 if (auto EC = EO.getError())
1179 StringError(std::error_code EC, const Twine &S = Twine());
1182 StringError(const Twine &S, std::error_code EC);
1185 std::error_code convertToErrorCode() const override;
1191 std::error_code EC;
1197 inline Error createStringError(std::error_code EC, char const *Fmt,
1205 Error createStringError(std::error_code EC, char const *Msg);
1207 inline Error createStringError(std::error_code EC, const Twine &S) {
1237 std::error_code convertToErrorCode() const override;
1277 inline Error createFileError(const Twine &F, std::error_code EC) {
1283 inline Error createFileError(const Twine &F, size_t Line, std::error_code EC) {
include/llvm/Support/ErrorOr.h 79 new (getErrorStorage()) std::error_code(make_error_code(ErrorCode));
82 ErrorOr(std::error_code EC) : HasError(true) {
83 new (getErrorStorage()) std::error_code(EC);
159 std::error_code getError() const {
185 new (getErrorStorage()) std::error_code(Other.getError());
217 new (getErrorStorage()) std::error_code(Other.getError());
252 std::error_code *getErrorStorage() {
257 const std::error_code *getErrorStorage() const {
263 AlignedCharArrayUnion<std::error_code> ErrorStorage;
include/llvm/Support/FileCollector.h 31 std::error_code writeMapping(StringRef mapping_file);
38 std::error_code copyFiles(bool StopOnError = true);
include/llvm/Support/FileSystem.h 317 std::error_code make_absolute(SmallVectorImpl<char> &path);
325 std::error_code create_directories(const Twine &path,
335 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true,
349 std::error_code create_link(const Twine &to, const Twine &from);
357 std::error_code create_hard_link(const Twine &to, const Twine &from);
366 std::error_code real_path(const Twine &path, SmallVectorImpl<char> &output,
380 std::error_code current_path(SmallVectorImpl<char> &result);
387 std::error_code set_current_path(const Twine &path);
395 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true);
402 std::error_code remove_directories(const Twine &path, bool IgnoreErrors = true);
412 std::error_code rename(const Twine &from, const Twine &to);
418 std::error_code copy_file(const Twine &From, const Twine &To);
424 std::error_code copy_file(const Twine &From, int ToFD);
432 std::error_code resize_file(int FD, uint64_t Size);
462 std::error_code access(const Twine &Path, AccessMode Mode);
507 std::error_code equivalent(const Twine &A, const Twine &B, bool &result);
523 std::error_code is_local(const Twine &path, bool &result);
526 std::error_code is_local(int FD, bool &result);
563 std::error_code is_directory(const Twine &path, bool &result);
585 std::error_code is_regular_file(const Twine &path, bool &result);
609 std::error_code is_symlink_file(const Twine &path, bool &result);
635 std::error_code is_other(const Twine &path, bool &result);
645 std::error_code status(const Twine &path, file_status &result,
649 std::error_code status(int FD, file_status &Result);
673 std::error_code setPermissions(const Twine &Path, perms Permissions);
678 std::error_code setPermissions(int FD, perms Permissions);
696 inline std::error_code file_size(const Twine &Path, uint64_t &Result) {
698 std::error_code EC = status(Path, Status);
710 std::error_code setLastAccessAndModificationTime(int FD, TimePoint<> AccessTime,
715 inline std::error_code setLastAccessAndModificationTime(int FD,
732 std::error_code status_known(const Twine &path, bool &result);
827 std::error_code createUniqueFile(const Twine &Model, int &ResultFD,
833 std::error_code createUniqueFile(const Twine &Model,
883 std::error_code createTemporaryFile(const Twine &Prefix, StringRef Suffix,
889 std::error_code createTemporaryFile(const Twine &Prefix, StringRef Suffix,
892 std::error_code createUniqueDirectory(const Twine &Prefix,
902 std::error_code getPotentiallyUniqueFileName(const Twine &Model,
913 std::error_code
951 std::error_code openFile(const Twine &Name, int &ResultFD,
1031 inline std::error_code
1073 inline std::error_code openFileForReadWrite(const Twine &Name, int &ResultFD,
1114 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
1143 std::error_code closeFile(file_t &F);
1145 std::error_code getUniqueID(const Twine Path, UniqueID &Result);
1177 std::error_code init(sys::fs::file_t FD, uint64_t Offset, mapmode Mode);
1186 std::error_code &ec);
1261 std::error_code directory_iterator_construct(DirIterState &, StringRef, bool);
1262 std::error_code directory_iterator_increment(DirIterState &);
1263 std::error_code directory_iterator_destruct(DirIterState &);
1285 explicit directory_iterator(const Twine &path, std::error_code &ec,
1294 explicit directory_iterator(const directory_entry &de, std::error_code &ec,
1306 directory_iterator &increment(std::error_code &ec) {
1348 explicit recursive_directory_iterator(const Twine &path, std::error_code &ec,
1358 recursive_directory_iterator &increment(std::error_code &ec) {
1412 std::error_code ec;
include/llvm/Support/FileUtilities.h 96 std::error_code convertToErrorCode() const override {
include/llvm/Support/GraphWriter.h 339 std::error_code EC = sys::fs::openFileForWrite(Filename, FD);
include/llvm/Support/JSON.h 693 std::error_code convertToErrorCode() const override {
include/llvm/Support/LockFileManager.h 58 std::error_code ErrorCode;
84 std::error_code unsafeRemoveLockFile();
90 void setError(const std::error_code &EC, StringRef ErrorMsg = "") {
include/llvm/Support/Memory.h 90 std::error_code &EC);
101 static std::error_code releaseMappedMemory(MemoryBlock &Block);
118 static std::error_code protectMappedMemory(const MemoryBlock &Block,
include/llvm/Support/Process.h 114 static std::error_code FixupStandardFileDescriptors();
123 static std::error_code SafelyCloseFileDescriptor(int FD);
include/llvm/Support/Program.h 74 std::error_code ChangeStdinToBinary();
75 std::error_code ChangeStdoutToBinary();
173 std::error_code
include/llvm/Support/RandomNumberGenerator.h 66 std::error_code getRandomBytes(void *Buffer, size_t Size);
include/llvm/Support/SymbolRemappingReader.h 77 std::error_code convertToErrorCode() const override {
include/llvm/Support/ToolOutputFile.h 47 ToolOutputFile(StringRef Filename, std::error_code &EC,
include/llvm/Support/VirtualFileSystem.h 122 virtual std::error_code close() = 0;
149 virtual std::error_code increment() = 0;
173 directory_iterator &increment(std::error_code &EC) {
215 std::error_code &EC);
221 recursive_directory_iterator &increment(std::error_code &EC);
264 std::error_code &EC) = 0;
268 virtual std::error_code setCurrentWorkingDirectory(const Twine &Path) = 0;
276 virtual std::error_code getRealPath(const Twine &Path,
283 virtual std::error_code isLocal(const Twine &Path, bool &Result);
296 std::error_code makeAbsolute(SmallVectorImpl<char> &Path) const;
337 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
339 std::error_code setCurrentWorkingDirectory(const Twine &Path) override;
340 std::error_code isLocal(const Twine &Path, bool &Result) override;
341 std::error_code getRealPath(const Twine &Path,
381 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override {
387 std::error_code setCurrentWorkingDirectory(const Twine &Path) override {
390 std::error_code getRealPath(const Twine &Path,
394 std::error_code isLocal(const Twine &Path, bool &Result) override {
479 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
490 std::error_code getRealPath(const Twine &Path,
492 std::error_code isLocal(const Twine &Path, bool &Result) override;
493 std::error_code setCurrentWorkingDirectory(const Twine &Path) override;
727 std::error_code getRealPath(const Twine &Path,
732 std::error_code setCurrentWorkingDirectory(const Twine &Path) override;
734 std::error_code isLocal(const Twine &Path, bool &Result) override;
736 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
include/llvm/Support/WindowsError.h 15 std::error_code mapWindowsError(unsigned EV);
include/llvm/Support/YAMLParser.h 87 std::error_code *EC = nullptr);
90 std::error_code *EC = nullptr);
include/llvm/Support/YAMLTraits.h 1403 std::error_code error();
1529 std::error_code EC;
include/llvm/Support/raw_ostream.h 396 std::error_code EC;
413 void error_detected(std::error_code EC) { this->EC = EC; }
426 raw_fd_ostream(StringRef Filename, std::error_code &EC);
427 raw_fd_ostream(StringRef Filename, std::error_code &EC,
429 raw_fd_ostream(StringRef Filename, std::error_code &EC,
431 raw_fd_ostream(StringRef Filename, std::error_code &EC,
433 raw_fd_ostream(StringRef Filename, std::error_code &EC,
466 std::error_code error() const { return EC; }
include/llvm/Support/type_traits.h 91 T t;
122 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
122 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
122 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
130 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
130 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
130 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
145 std::is_copy_constructible<detail::trivial_helper<T>>::value;
147 !std::is_copy_constructible<T>::value;
151 std::is_move_constructible<detail::trivial_helper<T>>::value;
153 !std::is_move_constructible<T>::value;
157 is_copy_assignable<detail::trivial_helper<T>>::value;
159 !is_copy_assignable<T>::value;
163 is_move_assignable<detail::trivial_helper<T>>::value;
165 !is_move_assignable<T>::value;
169 std::is_destructible<detail::trivial_helper<T>>::value;
include/llvm/Transforms/IPO/FunctionImport.h 207 std::error_code EmitImportsFiles(
lib/Analysis/CFGPrinter.cpp 101 std::error_code EC;
lib/Analysis/ModuleSummaryAnalysis.cpp 815 std::error_code EC;
lib/AsmParser/Parser.cpp 60 if (std::error_code EC = FileOrErr.getError()) {
90 if (std::error_code EC = FileOrErr.getError()) {
138 if (std::error_code EC = FileOrErr.getError()) {
lib/BinaryFormat/Magic.cpp 224 std::error_code llvm::identify_magic(const Twine &Path, file_magic &Result) {
lib/Bitcode/Reader/BitcodeReader.cpp 844 std::error_code llvm::errorToErrorCodeAndEmitErrors(LLVMContext &Ctx,
847 std::error_code EC;
lib/Bitcode/Writer/BitWriter.cpp 21 std::error_code EC;
lib/CodeGen/MIRParser/MIRParser.cpp 932 if (std::error_code EC = FileOrErr.getError()) {
lib/CodeGen/RegAllocPBQP.cpp 850 std::error_code EC;
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp 576 std::error_code DWARFDebugNames::SentinelError::convertToErrorCode() const {
lib/DebugInfo/GSYM/GsymCreator.cpp 45 std::error_code EC;
lib/DebugInfo/GSYM/GsymReader.cpp 39 auto Err = BuffOrErr.getError();
lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp 81 if (auto EC = res->addCoffExportSymbols(CoffObj))
126 std::error_code SymbolizableObjectFile::addCoffExportSymbols(
133 if (auto EC = Ref.getSymbolName(Name))
135 if (auto EC = Ref.getExportRVA(Offset))
160 std::error_code SymbolizableObjectFile::addSymbol(const SymbolRef &Symbol,
lib/DebugInfo/Symbolize/SymbolizableObjectFile.h 63 std::error_code addSymbol(const object::SymbolRef &Symbol,
67 std::error_code addCoffExportSymbols(const object::COFFObjectFile *CoffObj);
lib/DebugInfo/Symbolize/Symbolize.cpp 420 if (std::error_code EC = InfoOrErr.getError())
456 auto EC = CoffObject->getDebugPDBInfo(DebugInfo, PDBFileName);
lib/ExecutionEngine/JITLink/JITLink.cpp 55 std::error_code JITLinkError::convertToErrorCode() const {
lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp 54 if (auto EC = sys::Memory::releaseMappedMemory(Slab))
64 if (auto EC = sys::Memory::protectMappedMemory(Block, Prot))
101 std::error_code EC;
lib/ExecutionEngine/Orc/Core.cpp 257 std::error_code FailedToMaterialize::convertToErrorCode() const {
270 std::error_code SymbolsNotFound::convertToErrorCode() const {
283 std::error_code SymbolsCouldNotBeRemoved::convertToErrorCode() const {
lib/ExecutionEngine/Orc/OrcABISupport.cpp 155 std::error_code EC;
177 if (auto EC = sys::Memory::protectMappedMemory(
237 std::error_code EC;
258 if (auto EC = sys::Memory::protectMappedMemory(
505 std::error_code EC;
525 if (auto EC = sys::Memory::protectMappedMemory(
691 std::error_code EC;
718 if (auto EC = sys::Memory::protectMappedMemory(
937 std::error_code EC;
969 if (auto EC = sys::Memory::protectMappedMemory(
lib/ExecutionEngine/Orc/OrcError.cpp 76 std::error_code orcError(OrcErrorCode ErrCode) {
85 std::error_code DuplicateDefinition::convertToErrorCode() const {
100 std::error_code JITSymbolNotFound::convertToErrorCode() const {
lib/ExecutionEngine/Orc/RPCUtils.cpp 24 std::error_code ConnectionClosed::convertToErrorCode() const {
32 std::error_code ResponseAbandoned::convertToErrorCode() const {
43 std::error_code CouldNotNegotiate::convertToErrorCode() const {
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp 64 std::error_code RuntimeDyldError::convertToErrorCode() const {
lib/ExecutionEngine/SectionMemoryManager.cpp 103 std::error_code ec;
142 std::error_code ec;
195 std::error_code
199 if (std::error_code EC = MMapper.protectMappedMemory(MB, Permissions))
247 unsigned Flags, std::error_code &EC) override {
251 std::error_code protectMappedMemory(const sys::MemoryBlock &Block,
256 std::error_code releaseMappedMemory(sys::MemoryBlock &M) override {
lib/FuzzMutate/FuzzerCLI.cpp 157 if (std::error_code EC = BufOrErr.getError()) {
lib/IR/Core.cpp 397 std::error_code EC;
4003 if (std::error_code EC = MBOrErr.getError()) {
4014 if (std::error_code EC = MBOrErr.getError()) {
lib/IR/RemarkStreamer.cpp 161 std::error_code EC;
lib/IRReader/IRReader.cpp 58 if (std::error_code EC = FileOrErr.getError()) {
101 if (std::error_code EC = FileOrErr.getError()) {
lib/LTO/Caching.cpp 32 if (std::error_code EC = sys::fs::create_directories(CacheDirectoryPath))
44 std::error_code EC;
110 std::error_code EC = E.convertToErrorCode();
lib/LTO/LTO.cpp 1183 if (std::error_code EC = llvm::sys::fs::create_directories(ParentPath))
1225 std::error_code EC;
1404 std::error_code EC;
lib/LTO/LTOBackend.cpp 60 std::error_code EC;
86 std::error_code EC;
106 std::error_code EC;
323 std::error_code EC;
324 if (auto EC = llvm::sys::fs::create_directories(Conf.DwoDir))
335 std::error_code EC;
lib/LTO/LTOCodeGenerator.cpp 231 std::error_code EC;
264 std::error_code EC =
305 if (std::error_code EC = BufferOrErr.getError()) {
lib/LTO/LTOModule.cpp 113 if (std::error_code EC = BufferOrErr.getError()) {
135 if (std::error_code EC = BufferOrErr.getError()) {
175 std::error_code EC = errorToErrorCode(std::move(E));
197 if (std::error_code EC = MOrErr.getError())
lib/LTO/ThinLTOCodeGenerator.cpp 93 std::error_code EC;
777 std::error_code EC;
872 auto Err = sys::fs::create_hard_link(CacheEntryPath, OutputPath);
886 std::error_code Err;
941 std::error_code EC;
1114 if (auto EC = ReloadedBufferOrErr.getError()) {
lib/MC/MCParser/DarwinAsmParser.cpp 780 std::error_code EC;
lib/Object/Archive.cpp 450 if (std::error_code EC = Buf.getError())
lib/Object/ArchiveWriter.cpp 85 if (auto EC = sys::fs::status(FD, Status))
99 if (auto EC = sys::fs::closeFile(FD))
512 std::error_code Err = sys::fs::make_absolute(Ret);
lib/Object/Binary.cpp 100 if (std::error_code EC = FileOrErr.getError())
lib/Object/COFFObjectFile.cpp 46 static bool checkSize(MemoryBufferRef M, std::error_code &EC, uint64_t Size) {
57 static std::error_code getObject(const T *&Obj, MemoryBufferRef M,
61 if (std::error_code EC = Binary::checkOffset(M, Addr, Size))
152 if (std::error_code EC = getSymbolName(Symb, Result))
178 if (std::error_code EC = getSection(SectionNumber, Section))
254 if (std::error_code EC = getSection(Symb.getSectionNumber(), Sec))
401 std::error_code COFFObjectFile::initSymbolTablePtr() {
403 if (std::error_code EC = getObject(
409 if (std::error_code EC = getObject(
421 if (std::error_code EC = getObject(StringTableSizePtr, Data, StringTableAddr))
424 if (std::error_code EC =
449 std::error_code COFFObjectFile::getVaPtr(uint64_t Addr, uintptr_t &Res) const {
457 std::error_code COFFObjectFile::getRvaPtr(uint32_t Addr, uintptr_t &Res) const {
471 std::error_code
494 std::error_code COFFObjectFile::getHintName(uint32_t Rva, uint16_t &Hint,
497 if (std::error_code EC = getRvaPtr(Rva, IntPtr))
505 std::error_code
510 if (std::error_code EC = getRvaAndSizeAsBytes(
524 std::error_code
537 std::error_code COFFObjectFile::initImportTablePtr() {
553 if (std::error_code EC = getRvaPtr(ImportTableRva, IntPtr))
555 if (std::error_code EC = checkOffset(Data, IntPtr, DataEntry->Size))
563 std::error_code COFFObjectFile::initDelayImportTablePtr() {
575 if (std::error_code EC = getRvaPtr(RVA, IntPtr))
583 std::error_code COFFObjectFile::initExportTablePtr() {
596 if (std::error_code EC = getRvaPtr(ExportTableRva, IntPtr))
603 std::error_code COFFObjectFile::initBaseRelocPtr() {
611 if (std::error_code EC = getRvaPtr(DataEntry->RelativeVirtualAddress, IntPtr))
622 std::error_code COFFObjectFile::initDebugDirectoryPtr() {
637 if (std::error_code EC = getRvaPtr(DataEntry->RelativeVirtualAddress, IntPtr))
647 std::error_code COFFObjectFile::initLoadConfigPtr() {
657 if (std::error_code EC = getRvaPtr(DataEntry->RelativeVirtualAddress, IntPtr))
664 COFFObjectFile::COFFObjectFile(MemoryBufferRef Object, std::error_code &EC)
939 std::error_code
958 std::error_code COFFObjectFile::getSection(int32_t Index,
971 std::error_code COFFObjectFile::getSection(StringRef SectionName,
987 std::error_code COFFObjectFile::getString(uint32_t Offset,
998 std::error_code COFFObjectFile::getSymbolName(COFFSymbolRef Symbol,
1003 std::error_code COFFObjectFile::getSymbolName(const coff_symbol_generic *Symbol,
1007 if (std::error_code EC = getString(Symbol->Name.Offset.Offset, Res))
1076 if (std::error_code EC = getString(Offset, Name))
1307 std::error_code ImportDirectoryEntryRef::getImportTableEntry(
1380 std::error_code ImportDirectoryEntryRef::getName(StringRef &Result) const {
1382 if (std::error_code EC =
1389 std::error_code
1395 std::error_code
1427 std::error_code DelayImportDirectoryEntryRef::getName(StringRef &Result) const {
1429 if (std::error_code EC = OwningObject->getRvaPtr(Table[Index].Name, IntPtr))
1435 std::error_code DelayImportDirectoryEntryRef::
1441 std::error_code DelayImportDirectoryEntryRef::
1446 if (std::error_code EC = OwningObject->getRvaPtr(RVA, IntPtr))
1466 std::error_code ExportDirectoryEntryRef::getDllName(StringRef &Result) const {
1468 if (std::error_code EC =
1476 std::error_code
1483 std::error_code ExportDirectoryEntryRef::getOrdinal(uint32_t &Result) const {
1489 std::error_code ExportDirectoryEntryRef::getExportRVA(uint32_t &Result) const {
1491 if (std::error_code EC =
1502 std::error_code
1505 if (std::error_code EC =
1516 if (std::error_code EC =
1520 if (std::error_code EC = OwningObject->getRvaPtr(NamePtr[Offset], IntPtr))
1529 std::error_code ExportDirectoryEntryRef::isForwarder(bool &Result) const {
1531 if (auto EC = OwningObject->getDataDirectory(COFF::EXPORT_TABLE, DataEntry))
1534 if (auto EC = getExportRVA(RVA))
1542 std::error_code ExportDirectoryEntryRef::getForwardTo(StringRef &Result) const {
1544 if (auto EC = getExportRVA(RVA))
1547 if (auto EC = OwningObject->getRvaPtr(RVA, IntPtr))
1563 std::error_code
1577 if (std::error_code EC = OwningObject->getRvaPtr(RVA, IntPtr))
1584 std::error_code ImportedSymbolRef::isOrdinal(bool &Result) const {
1592 std::error_code ImportedSymbolRef::getHintNameRVA(uint32_t &Result) const {
1600 std::error_code ImportedSymbolRef::getOrdinal(uint16_t &Result) const {
1616 if (std::error_code EC = OwningObject->getRvaPtr(RVA, IntPtr))
1624 std::error_code EC;
1653 std::error_code BaseRelocRef::getType(uint8_t &Type) const {
1659 std::error_code BaseRelocRef::getRVA(uint32_t &Result) const {
1828 if (std::error_code EC = Obj->getSection(Sym->getSectionNumber(), Section))
lib/Object/MachOObjectFile.cpp 1780 std::error_code MachOObjectFile::getIndirectName(DataRefImpl Symb,
2431 std::error_code MachOObjectFile::getLibraryShortNameByIndex(unsigned Index,
lib/Object/ObjectFile.cpp 171 if (std::error_code EC = FileOrErr.getError())
lib/Object/XCOFFObjectFile.cpp 28 if (std::error_code EC = Binary::checkOffset(M, Addr, Size))
600 if (auto EC = Binary::checkOffset(
lib/ObjectYAML/yaml2obj.cpp 30 if (std::error_code EC = YIn.error()) {
lib/ProfileData/Coverage/CoverageMapping.cpp 318 if (std::error_code EC = CovMappingBufOrErr.getError())
lib/ProfileData/GCOV.cpp 623 if (std::error_code EC = BufferOrErr.getError()) {
707 std::error_code EC;
lib/ProfileData/InstrProfReader.cpp 44 if (std::error_code EC = BufferOrErr.getError())
lib/ProfileData/SampleProf.cpp 201 std::error_code ProfileSymbolList::read(const uint8_t *Data,
215 std::error_code ProfileSymbolList::write(raw_ostream &OS) {
lib/ProfileData/SampleProfReader.cpp 194 std::error_code SampleProfileReaderText::readImpl() {
291 std::error_code EC;
311 std::error_code EC;
325 std::error_code EC;
340 std::error_code EC;
342 if (std::error_code EC = Idx.getError())
351 if (std::error_code EC = Idx.getError())
359 if (std::error_code EC = Idx.getError())
365 std::error_code
368 if (std::error_code EC = NumSamples.getError())
374 if (std::error_code EC = NumRecords.getError())
379 if (std::error_code EC = LineOffset.getError())
387 if (std::error_code EC = Discriminator.getError())
391 if (std::error_code EC = NumSamples.getError())
395 if (std::error_code EC = NumCalls.getError())
400 if (std::error_code EC = CalledFunction.getError())
404 if (std::error_code EC = CalledFunctionSamples.getError())
416 if (std::error_code EC = NumCallsites.getError())
421 if (std::error_code EC = LineOffset.getError())
425 if (std::error_code EC = Discriminator.getError())
429 if (std::error_code EC = FName.getError())
435 if (std::error_code EC = readProfile(CalleeProfile))
442 std::error_code
446 if (std::error_code EC = NumHeadSamples.getError())
450 if (std::error_code EC = FName.getError())
459 if (std::error_code EC = readProfile(FProfile))
464 std::error_code SampleProfileReaderBinary::readImpl() {
466 if (std::error_code EC = readFuncProfile(Data))
473 std::error_code
480 if (std::error_code EC = readSummary())
484 if (std::error_code EC = readNameTable())
488 if (std::error_code EC = readFuncProfiles())
492 if (std::error_code EC = readProfileSymbolList())
496 if (std::error_code EC = readFuncOffsetTable())
512 std::error_code SampleProfileReaderExtBinary::readFuncOffsetTable() {
514 if (std::error_code EC = Size.getError())
520 if (std::error_code EC = FName.getError())
524 if (std::error_code EC = Offset.getError())
532 std::error_code SampleProfileReaderExtBinary::readFuncProfiles() {
536 if (std::error_code EC = readFuncProfile(Data))
556 if (std::error_code EC = readFuncProfile(FuncProfileAddr))
564 std::error_code SampleProfileReaderExtBinary::readProfileSymbolList() {
568 if (std::error_code EC = ProfSymList->read(Data, End - Data))
575 std::error_code SampleProfileReaderExtBinaryBase::decompressSection(
581 if (std::error_code EC = DecompressSize.getError())
586 if (std::error_code EC = CompressSize.getError())
604 std::error_code SampleProfileReaderExtBinaryBase::readImpl() {
624 if (std::error_code EC = decompressSection(
631 if (std::error_code EC = readOneSection(SecStart, SecSize, Entry.Type))
646 std::error_code SampleProfileReaderCompactBinary::readImpl() {
665 if (std::error_code EC = readFuncProfile(
674 std::error_code SampleProfileReaderRawBinary::verifySPMagic(uint64_t Magic) {
680 std::error_code SampleProfileReaderExtBinary::verifySPMagic(uint64_t Magic) {
686 std::error_code
693 std::error_code SampleProfileReaderBinary::readNameTable() {
695 if (std::error_code EC = Size.getError())
700 if (std::error_code EC = Name.getError())
708 std::error_code SampleProfileReaderCompactBinary::readNameTable() {
710 if (std::error_code EC = Size.getError())
715 if (std::error_code EC = FID.getError())
722 std::error_code SampleProfileReaderExtBinaryBase::readSecHdrTableEntry() {
725 if (std::error_code EC = Type.getError())
730 if (std::error_code EC = Flags.getError())
735 if (std::error_code EC = Offset.getError())
740 if (std::error_code EC = Size.getError())
748 std::error_code SampleProfileReaderExtBinaryBase::readSecHdrTable() {
750 if (std::error_code EC = EntryNum.getError())
754 if (std::error_code EC = readSecHdrTableEntry())
760 std::error_code SampleProfileReaderExtBinaryBase::readHeader() {
766 if (std::error_code EC = readMagicIdent())
769 if (std::error_code EC = readSecHdrTable())
813 std::error_code SampleProfileReaderBinary::readMagicIdent() {
816 if (std::error_code EC = Magic.getError())
818 else if (std::error_code EC = verifySPMagic(*Magic))
823 if (std::error_code EC = Version.getError())
831 std::error_code SampleProfileReaderBinary::readHeader() {
835 if (std::error_code EC = readMagicIdent())
838 if (std::error_code EC = readSummary())
841 if (std::error_code EC = readNameTable())
846 std::error_code SampleProfileReaderCompactBinary::readHeader() {
848 if (std::error_code EC = readFuncOffsetTable())
853 std::error_code SampleProfileReaderCompactBinary::readFuncOffsetTable() {
855 if (std::error_code EC = TableOffset.getError())
865 if (std::error_code EC = Size.getError())
871 if (std::error_code EC = FName.getError())
875 if (std::error_code EC = Offset.getError())
892 std::error_code SampleProfileReaderBinary::readSummaryEntry(
895 if (std::error_code EC = Cutoff.getError())
899 if (std::error_code EC = MinBlockCount.getError())
903 if (std::error_code EC = NumBlocks.getError())
910 std::error_code SampleProfileReaderBinary::readSummary() {
912 if (std::error_code EC = TotalCount.getError())
916 if (std::error_code EC = MaxBlockCount.getError())
920 if (std::error_code EC = MaxFunctionCount.getError())
924 if (std::error_code EC = NumBlocks.getError())
928 if (std::error_code EC = NumFunctions.getError())
932 if (std::error_code EC = NumSummaryEntries.getError())
937 std::error_code EC = readSummaryEntry(Entries);
969 std::error_code SampleProfileReaderGCC::skipNextWord() {
987 std::error_code EC = sampleprof_error::malformed;
999 std::error_code SampleProfileReaderGCC::readHeader() {
1014 if (std::error_code EC = skipNextWord())
1020 std::error_code SampleProfileReaderGCC::readSectionTag(uint32_t Expected) {
1028 if (std::error_code EC = skipNextWord())
1034 std::error_code SampleProfileReaderGCC::readNameTable() {
1035 if (std::error_code EC = readSectionTag(GCOVTagAFDOFileNames))
1052 std::error_code SampleProfileReaderGCC::readFunctionProfiles() {
1053 if (std::error_code EC = readSectionTag(GCOVTagAFDOFunction))
1062 if (std::error_code EC = readOneFunctionProfile(Stack, true, 0))
1069 std::error_code SampleProfileReaderGCC::readOneFunctionProfile(
1184 if (std::error_code EC = readOneFunctionProfile(NewStack, Update, Offset))
1195 std::error_code SampleProfileReaderGCC::readImpl() {
1197 if (std::error_code EC = readNameTable())
1201 if (std::error_code EC = readFunctionProfiles())
1245 if (std::error_code EC = BufferOrErr.getError())
1269 if (std::error_code EC = BufferOrError.getError())
1289 if (std::error_code EC = BufferOrError.getError())
1352 if (std::error_code EC = ReaderOrErr.getError()) {
1361 if (std::error_code EC = Reader->readHeader()) {
lib/ProfileData/SampleProfWriter.cpp 43 std::error_code SampleProfileWriter::writeFuncProfiles(
59 if (std::error_code EC = writeSample(*I.second))
65 std::error_code
67 if (std::error_code EC = writeHeader(ProfileMap))
70 if (std::error_code EC = writeFuncProfiles(ProfileMap))
95 std::error_code SampleProfileWriterExtBinaryBase::compressAndOutput() {
116 std::error_code
122 if (std::error_code EC = compressAndOutput())
130 std::error_code SampleProfileWriterExtBinaryBase::write(
132 if (std::error_code EC = writeHeader(ProfileMap))
137 if (std::error_code EC = writeSections(ProfileMap))
140 if (std::error_code EC = writeSecHdrTable())
146 std::error_code
155 std::error_code SampleProfileWriterExtBinary::writeFuncOffsetTable() {
169 std::error_code SampleProfileWriterExtBinary::writeSections(
173 if (auto EC = writeSummary())
175 if (std::error_code EC = addNewSection(SecProfSummary, SectionStart))
185 if (std::error_code EC = addNewSection(SecNameTable, SectionStart))
190 if (std::error_code EC = writeFuncProfiles(ProfileMap))
192 if (std::error_code EC = addNewSection(SecLBRProfile, SectionStart))
200 if (std::error_code EC = ProfSymList->write(*OutputStream))
202 if (std::error_code EC = addNewSection(SecProfileSymbolList, SectionStart))
206 if (std::error_code EC = writeFuncOffsetTable())
208 if (std::error_code EC = addNewSection(SecFuncOffsetTable, SectionStart))
214 std::error_code SampleProfileWriterCompactBinary::write(
216 if (std::error_code EC = SampleProfileWriter::write(ProfileMap))
218 if (std::error_code EC = writeFuncOffsetTable())
231 std::error_code SampleProfileWriterText::writeSample(const FunctionSamples &S) {
267 if (std::error_code EC = writeSample(CalleeSamples))
275 std::error_code SampleProfileWriterBinary::writeNameIdx(StringRef FName) {
313 std::error_code SampleProfileWriterBinary::writeNameTable() {
327 std::error_code SampleProfileWriterCompactBinary::writeFuncOffsetTable() {
351 std::error_code SampleProfileWriterCompactBinary::writeNameTable() {
364 std::error_code
373 std::error_code SampleProfileWriterBinary::writeHeader(
378 if (auto EC = writeSummary())
421 std::error_code SampleProfileWriterExtBinaryBase::writeSecHdrTable() {
457 std::error_code SampleProfileWriterExtBinaryBase::writeHeader(
467 std::error_code SampleProfileWriterCompactBinary::writeHeader(
470 if (auto EC = SampleProfileWriterBinary::writeHeader(ProfileMap))
480 std::error_code SampleProfileWriterBinary::writeSummary() {
496 std::error_code SampleProfileWriterBinary::writeBody(const FunctionSamples &S) {
499 if (std::error_code EC = writeNameIdx(S.getName()))
516 if (std::error_code EC = writeNameIdx(Callee))
533 if (std::error_code EC = writeBody(CalleeSamples))
543 std::error_code
549 std::error_code
567 std::error_code EC;
590 std::error_code EC;
lib/Remarks/BitstreamRemarkParser.cpp 427 if (std::error_code EC = BufferOrErr.getError())
lib/Remarks/YAMLRemarkParser.cpp 152 if (std::error_code EC = BufferOrErr.getError())
lib/Remarks/YAMLRemarkParser.h 41 std::error_code convertToErrorCode() const override {
lib/Support/AMDGPUMetadata.cpp 209 std::error_code fromString(std::string String, Metadata &HSAMetadata) {
215 std::error_code toString(Metadata HSAMetadata, std::string &String) {
lib/Support/BinaryStreamError.cpp 53 std::error_code BinaryStreamError::convertToErrorCode() const {
lib/Support/CachePruning.cpp 47 std::error_code EC;
173 if (auto EC = sys::fs::status(TimestampFile, FileStatus)) {
208 std::error_code EC;
lib/Support/CodeGenCoverage.cpp 103 std::error_code EC;
lib/Support/Error.cpp 72 std::error_code ErrorList::convertToErrorCode() const {
77 std::error_code inconvertibleErrorCode() {
82 std::error_code FileError::convertToErrorCode() const {
87 Error errorCodeToError(std::error_code EC) {
93 std::error_code errorToErrorCode(Error Err) {
94 std::error_code EC;
115 StringError::StringError(std::error_code EC, const Twine &S)
118 StringError::StringError(const Twine &S, std::error_code EC)
131 std::error_code StringError::convertToErrorCode() const {
135 Error createStringError(std::error_code EC, char const *Msg) {
lib/Support/FileCheckImpl.h 70 std::error_code convertToErrorCode() const override {
333 std::error_code convertToErrorCode() const override {
354 std::error_code convertToErrorCode() const override {
lib/Support/FileCollector.cpp 51 auto EC = sys::fs::real_path(Directory, RealPath);
106 static std::error_code
111 if (auto EC =
115 if (auto EC = sys::fs::setLastAccessAndModificationTime(
119 if (auto EC = sys::Process::SafelyCloseFileDescriptor(FD))
125 std::error_code FileCollector::copyFiles(bool StopOnError) {
128 if (std::error_code EC =
137 if (std::error_code EC = sys::fs::status(entry.VPath, Stat)) {
145 if (std::error_code EC =
155 if (std::error_code EC = sys::fs::copy_file(entry.VPath, entry.RPath)) {
162 if (std::error_code EC = sys::fs::setPermissions(entry.RPath, *perms)) {
174 std::error_code FileCollector::writeMapping(StringRef mapping_file) {
181 std::error_code EC;
215 std::error_code &EC) override {
234 std::error_code getRealPath(const Twine &Path,
236 auto EC = FS->getRealPath(Path, Output);
245 std::error_code isLocal(const Twine &Path, bool &Result) override {
253 std::error_code setCurrentWorkingDirectory(const llvm::Twine &Path) override {
lib/Support/FileOutputBuffer.cpp 100 std::error_code EC;
101 if (auto EC =
119 std::error_code EC;
141 if (auto EC = fs::resize_file(File.FD, Size)) {
148 std::error_code EC;
lib/Support/FileUtilities.cpp 186 if (std::error_code EC = F1OrErr.getError()) {
194 if (std::error_code EC = F2OrErr.getError()) {
321 if (const std::error_code Error =
lib/Support/GraphWriter.cpp 82 std::error_code EC = sys::fs::createTemporaryFile(Name, "dot", FD, Filename);
lib/Support/Host.cpp 59 if (std::error_code EC = Text.getError()) {
1238 if (std::error_code EC = Text.getError()) {
lib/Support/LockFileManager.cpp 78 static std::error_code getHostID(SmallVectorImpl<char> &HostID) {
159 if (std::error_code EC = sys::fs::make_absolute(this->FileName)) {
177 if (std::error_code EC = sys::fs::createUniqueFile(
188 if (auto EC = getHostID(HostID)) {
219 std::error_code EC =
353 std::error_code LockFileManager::unsafeRemoveLockFile() {
lib/Support/MemoryBuffer.cpp 186 uint64_t Offset, std::error_code &EC)
378 std::error_code EC = sys::fs::status(FD, Status);
394 std::error_code EC;
429 std::error_code EC = sys::fs::status(FD, Status);
448 std::error_code EC;
lib/Support/Path.cpp 167 static std::error_code
177 std::error_code EC;
732 std::error_code getUniqueID(const Twine Path, UniqueID &Result) {
734 std::error_code EC = status(Path, Status);
767 std::error_code createUniqueFile(const Twine &Model, int &ResultFd,
773 static std::error_code createUniqueFile(const Twine &Model, int &ResultFd,
780 std::error_code createUniqueFile(const Twine &Model,
784 auto EC = createUniqueFile(Model, FD, ResultPath, Mode);
792 static std::error_code
804 static std::error_code
812 std::error_code createTemporaryFile(const Twine &Prefix, StringRef Suffix,
818 std::error_code createTemporaryFile(const Twine &Prefix, StringRef Suffix,
821 auto EC = createTemporaryFile(Prefix, Suffix, FD, ResultPath);
832 std::error_code createUniqueDirectory(const Twine &Prefix,
839 std::error_code
846 std::error_code
903 std::error_code make_absolute(SmallVectorImpl<char> &path) {
908 if (std::error_code ec = current_path(current_dir))
915 std::error_code create_directories(const Twine &Path, bool IgnoreExisting,
921 std::error_code EC = create_directory(P, IgnoreExisting, Perms);
939 static std::error_code copy_file_internal(int ReadFD, int WriteFD) {
964 std::error_code copy_file(const Twine &From, const Twine &To) {
966 if (std::error_code EC = openFileForRead(From, ReadFD, OF_None))
968 if (std::error_code EC =
974 std::error_code EC = copy_file_internal(ReadFD, WriteFD);
983 std::error_code copy_file(const Twine &From, int ToFD) {
985 if (std::error_code EC = openFileForRead(From, ReadFD, OF_None))
988 std::error_code EC = copy_file_internal(ReadFD, ToFD);
1017 if (auto EC = openFileForRead(Path, FD, OF_None))
1044 std::error_code is_directory(const Twine &path, bool &result) {
1046 if (std::error_code ec = status(path, st))
1056 std::error_code is_regular_file(const Twine &path, bool &result) {
1058 if (std::error_code ec = status(path, st))
1068 std::error_code is_symlink_file(const Twine &path, bool &result) {
1070 if (std::error_code ec = status(path, st, false))
1082 std::error_code is_other(const Twine &Path, bool &Result) {
1084 if (std::error_code EC = status(Path, FileStatus))
1101 if (std::error_code EC = status(Path, Status))
1137 std::error_code EC = std::error_code(errno, std::generic_category());
1148 std::error_code RemoveEC;
1181 std::error_code RenameEC = fs::rename(TmpName, Name);
1196 std::error_code EC(errno, std::generic_category());
1219 std::error_code EC(errno, std::generic_category());
1230 if (std::error_code EC =
1239 std::error_code EC(errc::operation_not_permitted);
lib/Support/RandomNumberGenerator.cpp 58 std::error_code llvm::getRandomBytes(void *Buffer, size_t Size) {
71 std::error_code Ret;
lib/Support/SpecialCaseList.cpp 103 if (std::error_code EC = FileOrErr.getError()) {
lib/Support/TarWriter.cpp 163 if (std::error_code EC =
lib/Support/Timer.cpp 69 std::error_code EC;
lib/Support/ToolOutputFile.cpp 36 ToolOutputFile::ToolOutputFile(StringRef Filename, std::error_code &EC,
lib/Support/Unix/Memory.inc 88 std::error_code &EC) {
163 std::error_code
177 std::error_code
lib/Support/Unix/Path.inc 285 std::error_code current_path(SmallVectorImpl<char> &result) {
320 std::error_code set_current_path(const Twine &path) {
330 std::error_code create_directory(const Twine &path, bool IgnoreExisting,
345 std::error_code create_link(const Twine &to, const Twine &from) {
358 std::error_code create_hard_link(const Twine &to, const Twine &from) {
371 std::error_code remove(const Twine &path, bool IgnoreNonExisting) {
477 std::error_code is_local(const Twine &Path, bool &Result) {
486 std::error_code is_local(int FD, bool &Result) {
495 std::error_code rename(const Twine &from, const Twine &to) {
508 std::error_code resize_file(int FD, uint64_t Size) {
542 std::error_code access(const Twine &Path, AccessMode Mode) {
571 std::error_code equivalent(const Twine &A, const Twine &B, bool &result) {
573 if (std::error_code ec = status(A, fsA))
575 if (std::error_code ec = status(B, fsB))
651 static std::error_code fillStatus(int StatRet, const struct stat &Status,
654 std::error_code EC(errno, std::generic_category());
682 std::error_code status(const Twine &Path, file_status &Result, bool Follow) {
691 std::error_code status(int FD, file_status &Result) {
705 std::error_code setPermissions(const Twine &Path, perms Permissions) {
714 std::error_code setPermissions(int FD, perms Permissions) {
720 std::error_code setLastAccessAndModificationTime(int FD, TimePoint<> AccessTime,
745 std::error_code mapped_file_region::init(int FD, uint64_t Offset,
778 uint64_t offset, std::error_code &ec)
810 std::error_code detail::directory_iterator_construct(detail::DirIterState &it,
825 std::error_code detail::directory_iterator_destruct(detail::DirIterState &it) {
847 std::error_code detail::directory_iterator_increment(detail::DirIterState &It) {
866 if (auto EC = fs::status(Path, s, FollowSymlinks))
918 std::error_code openFile(const Twine &Name, int &ResultFD,
945 std::error_code EC = openFile(Name, FD, Disp, Access, Flags, Mode);
951 std::error_code openFileForRead(const Twine &Name, int &ResultFD,
954 std::error_code EC =
992 std::error_code EC = openFileForRead(Name, ResultFD, Flags, RealPath);
1026 std::error_code closeFile(file_t &F) {
1033 static std::error_code remove_directories_impl(const T &Entry,
1035 std::error_code EC;
1061 std::error_code remove_directories(const Twine &path, bool IgnoreErrors) {
1062 auto EC = remove_directories_impl(path, IgnoreErrors);
1071 std::error_code real_path(const Twine &path, SmallVectorImpl<char> &dest,
lib/Support/Unix/Process.inc 193 std::error_code Process::FixupStandardFileDescriptors() {
227 std::error_code Process::SafelyCloseFileDescriptor(int FD) {
lib/Support/Unix/Program.inc 433 std::error_code sys::ChangeStdinToBinary() {
438 std::error_code sys::ChangeStdoutToBinary() {
443 std::error_code
446 std::error_code EC;
lib/Support/VirtualFileSystem.cpp 124 std::error_code FileSystem::makeAbsolute(SmallVectorImpl<char> &Path) const {
136 std::error_code FileSystem::getRealPath(const Twine &Path,
141 std::error_code FileSystem::isLocal(const Twine &Path, bool &Result) {
195 std::error_code close() override;
206 if (std::error_code EC = sys::fs::status(FD, RealStatus))
225 std::error_code RealFile::close() {
226 std::error_code EC = sys::fs::closeFile(FD);
257 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
260 std::error_code setCurrentWorkingDirectory(const Twine &Path) override;
261 std::error_code isLocal(const Twine &Path, bool &Result) override;
262 std::error_code getRealPath(const Twine &Path,
290 if (std::error_code EC =
312 if (std::error_code EC = llvm::sys::fs::current_path(Dir))
317 std::error_code RealFileSystem::setCurrentWorkingDirectory(const Twine &Path) {
324 if (auto Err = llvm::sys::fs::is_directory(Absolute, IsDir))
328 if (auto Err = llvm::sys::fs::real_path(Absolute, Resolved))
334 std::error_code RealFileSystem::isLocal(const Twine &Path, bool &Result) {
339 std::error_code
361 RealFSDirIter(const Twine &Path, std::error_code &EC) : Iter(Path, EC) {
366 std::error_code increment() override {
367 std::error_code EC;
379 std::error_code &EC) {
427 std::error_code
430 if (std::error_code EC = FS->setCurrentWorkingDirectory(Path))
435 std::error_code OverlayFileSystem::isLocal(const Twine &Path, bool &Result) {
442 std::error_code
462 std::error_code incrementFS() {
466 std::error_code EC;
476 std::error_code incrementDirIter(bool IsFirstTime) {
479 std::error_code EC;
487 std::error_code incrementImpl(bool IsFirstTime) {
489 std::error_code EC = incrementDirIter(IsFirstTime);
504 std::error_code &EC)
510 std::error_code increment() override { return incrementImpl(false); }
516 std::error_code &EC) {
618 std::error_code close() override { return {}; }
703 std::error_code EC = makeAbsolute(Path);
813 std::error_code EC = FS.makeAbsolute(Path);
925 std::error_code increment() override {
935 std::error_code &EC) {
950 std::error_code InMemoryFileSystem::setCurrentWorkingDirectory(const Twine &P) {
955 std::error_code EC = makeAbsolute(Path);
967 std::error_code
974 if (auto EC = makeAbsolute(Output))
980 std::error_code InMemoryFileSystem::isLocal(const Twine &Path, bool &Result) {
1029 std::error_code incrementImpl(bool IsFirstTime);
1031 std::error_code incrementContent(bool IsFirstTime);
1033 std::error_code incrementExternal();
1041 bool IterateExternalFS, FileSystem &ExternalFS, std::error_code &EC);
1043 std::error_code increment() override;
1051 std::error_code
1059 auto EC = ExternalFS->setCurrentWorkingDirectory(Path);
1065 if (std::error_code EC = makeAbsolute(AbsolutePath))
1071 std::error_code RedirectingFileSystem::isLocal(const Twine &Path,
1077 std::error_code &EC) {
1612 std::error_code EC = llvm::sys::fs::make_absolute(OverlayAbsDir);
1630 if (std::error_code EC = makeAbsolute(Path))
1758 std::error_code close() override { return InnerFile->close(); }
1793 std::error_code
2038 bool IterateExternalFS, FileSystem &ExternalFS, std::error_code &EC)
2044 std::error_code VFSFromYamlDirIterImpl::increment() {
2048 std::error_code VFSFromYamlDirIterImpl::incrementExternal() {
2051 std::error_code EC;
2069 std::error_code VFSFromYamlDirIterImpl::incrementContent(bool IsFirstTime) {
2091 std::error_code VFSFromYamlDirIterImpl::incrementImpl(bool IsFirstTime) {
2093 std::error_code EC = IsExternalFSCurrent ? incrementExternal()
2105 FileSystem &FS_, const Twine &Path, std::error_code &EC)
2115 recursive_directory_iterator::increment(std::error_code &EC) {
lib/Support/YAMLParser.cpp 255 std::error_code *EC = nullptr);
257 std::error_code *EC = nullptr);
558 std::error_code *EC;
757 std::error_code *EC)
763 std::error_code *EC)
1763 std::error_code *EC)
1767 std::error_code *EC)
lib/Support/YAMLTraits.cpp 73 std::error_code Input::error() { return EC; }
lib/Support/raw_ostream.cpp 519 static int getFD(StringRef Filename, std::error_code &EC,
547 raw_fd_ostream::raw_fd_ostream(StringRef Filename, std::error_code &EC)
551 raw_fd_ostream::raw_fd_ostream(StringRef Filename, std::error_code &EC,
555 raw_fd_ostream::raw_fd_ostream(StringRef Filename, std::error_code &EC,
560 raw_fd_ostream::raw_fd_ostream(StringRef Filename, std::error_code &EC,
565 raw_fd_ostream::raw_fd_ostream(StringRef Filename, std::error_code &EC,
615 if (auto EC = sys::Process::SafelyCloseFileDescriptor(FD))
747 if (auto EC = sys::Process::SafelyCloseFileDescriptor(FD))
874 std::error_code EC;
lib/TableGen/Main.cpp 69 std::error_code EC;
89 if (std::error_code EC = FileOrErr.getError())
129 std::error_code EC;
lib/Target/TargetMachineC.cpp 221 std::error_code EC;
lib/Target/X86/X86InsertPrefetch.cpp 163 if (std::error_code EC = ReaderOrErr.getError()) {
lib/TextAPI/ELF/TBEHandler.cpp 149 if (std::error_code Err = YamlIn.error())
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp 60 if (std::error_code EC = MB.getError()) {
lib/ToolDrivers/llvm-lib/LibDriver.cpp 146 std::error_code EC;
lib/Transforms/IPO/FunctionImport.cpp 894 std::error_code llvm::EmitImportsFiles(
897 std::error_code EC;
lib/Transforms/IPO/LowerTypeTests.cpp 1691 std::error_code EC;
lib/Transforms/IPO/SampleProfile.cpp 1682 if (std::error_code EC = ReaderOrErr.getError()) {
lib/Transforms/IPO/WholeProgramDevirt.cpp 767 std::error_code EC;
lib/Transforms/Instrumentation/GCOVProfiling.cpp 679 std::error_code EC;
lib/Transforms/Instrumentation/InstrOrderFile.cpp 102 std::error_code EC;
lib/XRay/InstrumentationMap.cpp 180 std::error_code EC;
lib/XRay/Profile.cpp 268 if (auto EC = sys::fs::file_size(Filename, FileSize))
272 std::error_code EC;
lib/XRay/Trace.cpp 386 if (auto EC = sys::fs::file_size(Filename, FileSize)) {
397 std::error_code EC;
tools/bugpoint/ExecutionDriver.cpp 307 std::error_code EC = sys::fs::createUniqueFile(
333 std::error_code EC = sys::fs::createUniqueFile(OutputFile, UniqueFile);
tools/bugpoint/Miscompilation.cpp 949 std::error_code EC = sys::fs::createTemporaryFile("bugpoint.test", "bc",
1041 std::error_code EC = sys::fs::createTemporaryFile("bugpoint.test", "bc",
tools/bugpoint/OptimizerDriver.cpp 81 std::error_code EC;
137 std::error_code EC = sys::fs::createUniqueFile(
tools/bugpoint/ToolRunner.cpp 116 std::error_code EC = sys::fs::createTemporaryFile(
439 std::error_code EC =
665 std::error_code EC =
769 std::error_code EC = sys::fs::createUniqueFile(
tools/clang/include/clang/AST/ASTImporter.h 70 std::error_code convertToErrorCode() const override;
tools/clang/include/clang/Basic/DiagnosticError.h 51 std::error_code convertToErrorCode() const override {
tools/clang/include/clang/Basic/FileManager.h 238 std::error_code getStatValue(StringRef Path, llvm::vfs::Status &Status,
398 std::error_code getNoncachedStatValue(StringRef Path,
tools/clang/include/clang/Basic/FileSystemStatCache.h 50 static std::error_code
59 virtual std::error_code getStat(StringRef Path, llvm::vfs::Status &Status,
80 std::error_code getStat(StringRef Path, llvm::vfs::Status &Status,
tools/clang/include/clang/CrossTU/CrossTranslationUnit.h 65 std::error_code convertToErrorCode() const override;
tools/clang/include/clang/Format/Format.h 45 std::error_code make_error_code(ParseError e);
2168 friend std::error_code parseConfiguration(StringRef Text, FormatStyle *Style);
2223 std::error_code parseConfiguration(StringRef Text, FormatStyle *Style);
tools/clang/include/clang/Frontend/CompilerInstance.h 748 createOutputFile(StringRef OutputPath, std::error_code &Error, bool Binary,
tools/clang/include/clang/Frontend/PrecompiledPreamble.h 304 std::error_code make_error_code(BuildPreambleError Error);
tools/clang/include/clang/Frontend/SerializedDiagnosticReader.h 41 inline std::error_code make_error_code(SDError E) {
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 {}; }
86 virtual std::error_code visitEndOfDiagnostic() { return {}; }
89 virtual std::error_code visitCategoryRecord(unsigned ID, StringRef Name) {
94 virtual std::error_code visitDiagFlagRecord(unsigned ID, StringRef Name) {
99 virtual std::error_code
106 virtual std::error_code visitFilenameRecord(unsigned ID, unsigned Size,
113 virtual std::error_code
119 virtual std::error_code visitSourceRangeRecord(const Location &Start,
125 virtual std::error_code visitVersionRecord(unsigned Version) { return {}; }
tools/clang/include/clang/Frontend/Utils.h 162 std::error_code copyToRoot(StringRef Src, StringRef Dst = {});
tools/clang/include/clang/Tooling/Core/Replacement.h 186 std::error_code convertToErrorCode() const override {
tools/clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h 39 CachedFileSystemEntry(std::error_code Error) : MaybeStat(std::move(Error)) {}
tools/clang/lib/ARCMigrate/FileRemapper.cpp 122 std::error_code EC;
179 std::error_code EC;
tools/clang/lib/ARCMigrate/ObjCMT.cpp 1953 std::error_code EC;
2008 std::error_code EC;
tools/clang/lib/ARCMigrate/PlistReporter.cpp 58 std::error_code EC;
tools/clang/lib/AST/ASTImporter.cpp 103 std::error_code ImportError::convertToErrorCode() const {
tools/clang/lib/AST/InheritViz.cpp 141 if (std::error_code EC = llvm::sys::fs::createTemporaryFile(
tools/clang/lib/AST/Interp/ByteCodeGenError.h 38 std::error_code convertToErrorCode() const override {
tools/clang/lib/Basic/FileManager.cpp 159 auto statError = getStatValue(InterndDirName, Status, false,
253 auto statError = getStatValue(InterndFileName, Status, true,
496 std::error_code
512 std::error_code
tools/clang/lib/Basic/FileSystemStatCache.cpp 33 std::error_code
39 std::error_code RetCode;
101 std::error_code
106 auto err = get(Path, Status, isFile, F, nullptr, FS);
tools/clang/lib/CodeGen/BackendUtil.cpp 121 std::error_code EC;
tools/clang/lib/CodeGen/CGCUDANV.cpp 520 if (std::error_code EC = CudaGpuBinaryOrErr.getError()) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp 2660 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID))
4233 if (auto EC = Buf.getError()) {
4243 if (auto EC = ME.getError()) {
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp 127 std::error_code IndexError::convertToErrorCode() const {
tools/clang/lib/DirectoryWatcher/DirectoryScanner.cpp 19 std::error_code EC = status(Path, Status);
29 std::error_code EC;
tools/clang/lib/Driver/Compilation.cpp 116 if (std::error_code EC = llvm::sys::fs::remove(File)) {
161 std::error_code EC;
tools/clang/lib/Driver/Driver.cpp 1171 std::error_code EC;
1388 std::error_code EC;
4415 std::error_code EC = llvm::sys::fs::createUniqueFile(
4655 std::error_code EC = llvm::sys::fs::createTemporaryFile(Prefix, Suffix, Path);
4666 std::error_code EC = llvm::sys::fs::createUniqueDirectory(Prefix, Path);
tools/clang/lib/Driver/Job.cpp 185 std::error_code EC = fs::current_path(OutInc);
358 if (std::error_code EC = writeFileWithEncoding(
tools/clang/lib/Driver/ToolChains/BareMetal.cpp 118 std::error_code EC;
tools/clang/lib/Driver/ToolChains/Clang.cpp 1923 std::error_code EC;
1988 auto Err = llvm::sys::fs::create_directory(Path, /*IgnoreExisting=*/true);
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp 1356 std::error_code EC;
tools/clang/lib/Driver/ToolChains/Cuda.cpp 179 std::error_code EC;
tools/clang/lib/Driver/ToolChains/Gnu.cpp 1886 std::error_code EC;
2385 std::error_code EC;
tools/clang/lib/Driver/ToolChains/Linux.cpp 870 std::error_code EC;
tools/clang/lib/Driver/ToolChains/MSVC.cpp 1035 std::error_code EC;
tools/clang/lib/Driver/ToolChains/MinGW.cpp 304 std::error_code EC;
tools/clang/lib/Format/Format.cpp 617 std::error_code make_error_code(ParseError e) {
1147 std::error_code parseConfiguration(StringRef Text, FormatStyle *Style) {
2586 if (std::error_code ec = parseConfiguration(StyleName, &Style))
2600 if (std::error_code EC = FS->makeAbsolute(Path))
2633 if (std::error_code EC = Text.getError())
2635 if (std::error_code ec =
tools/clang/lib/Frontend/CompilerInstance.cpp 179 std::error_code EC;
221 std::error_code EC;
650 if (std::error_code ec =
688 std::error_code EC;
707 StringRef OutputPath, std::error_code &Error, bool Binary,
763 std::error_code EC =
879 if (std::error_code EC = SBOrErr.getError()) {
1008 std::error_code EC;
1391 std::error_code EC;
1405 if (std::error_code EC = llvm::sys::fs::status(TimestampFile, StatBuf)) {
1428 std::error_code EC;
2004 if (std::error_code EC = llvm::sys::fs::createTemporaryFile(
tools/clang/lib/Frontend/DependencyFile.cpp 313 std::error_code EC;
tools/clang/lib/Frontend/DependencyGraph.cpp 102 std::error_code EC;
tools/clang/lib/Frontend/FrontendAction.cpp 317 static std::error_code collectModuleHeaderIncludes(
360 std::error_code EC;
408 if (std::error_code Err = collectModuleHeaderIncludes(
518 std::error_code Err = std::error_code();
714 std::error_code EC;
tools/clang/lib/Frontend/FrontendActions.cpp 703 std::error_code EC;
tools/clang/lib/Frontend/HeaderIncludeGen.cpp 101 std::error_code EC;
tools/clang/lib/Frontend/ModuleDependencyCollector.cpp 148 std::error_code EC;
183 std::error_code ModuleDependencyCollector::copyToRoot(StringRef Src,
221 if (std::error_code EC = fs::create_directories(path::parent_path(CacheDst),
224 if (std::error_code EC = fs::copy_file(CopyFrom, CacheDst))
tools/clang/lib/Frontend/PrecompiledPreamble.cpp 552 auto EC = llvm::sys::fs::createTemporaryFile(Prefix, Suffix, FD, File);
771 std::error_code clang::make_error_code(BuildPreambleError Error) {
tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp 99 std::error_code EC;
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp 100 std::error_code mergeRecordsFromFile(const char *File) {
105 std::error_code visitStartOfDiagnostic() override;
106 std::error_code visitEndOfDiagnostic() override;
107 std::error_code visitCategoryRecord(unsigned ID, StringRef Name) override;
108 std::error_code visitDiagFlagRecord(unsigned ID, StringRef Name) override;
109 std::error_code visitDiagnosticRecord(
112 std::error_code visitFilenameRecord(unsigned ID, unsigned Size,
115 std::error_code visitFixitRecord(const serialized_diags::Location &Start,
118 std::error_code
123 std::error_code adjustSourceLocFilename(RecordData &Record,
782 std::error_code EC;
796 std::error_code SDiagsMerger::visitStartOfDiagnostic() {
801 std::error_code SDiagsMerger::visitEndOfDiagnostic() {
806 std::error_code
817 std::error_code SDiagsMerger::visitDiagnosticRecord(
830 std::error_code
844 std::error_code SDiagsMerger::visitFilenameRecord(unsigned ID, unsigned Size,
851 std::error_code SDiagsMerger::visitCategoryRecord(unsigned ID, StringRef Name) {
856 std::error_code SDiagsMerger::visitDiagFlagRecord(unsigned ID, StringRef Name) {
tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp 28 std::error_code SerializedDiagnosticReader::readDiagnostics(StringRef File) {
66 std::error_code EC;
161 std::error_code
210 std::error_code
219 std::error_code EC;
tools/clang/lib/Lex/HeaderSearch.cpp 329 std::error_code EC = llvm::errorToErrorCode(File.takeError());
1637 std::error_code EC;
1709 std::error_code EC;
tools/clang/lib/Lex/ModuleMap.cpp 1035 std::error_code EC;
2418 std::error_code EC;
tools/clang/lib/Lex/PPLexerChange.cpp 277 std::error_code EC;
tools/clang/lib/Rewrite/Rewriter.cpp 442 if (std::error_code ec = llvm::sys::fs::rename(TempFilename, Filename)) {
tools/clang/lib/Sema/SemaCodeComplete.cpp 8692 std::error_code EC;
tools/clang/lib/Serialization/ASTReader.cpp 4103 std::error_code EC;
tools/clang/lib/Serialization/GlobalModuleIndex.cpp 881 std::error_code EC;
tools/clang/lib/StaticAnalyzer/Checkers/Yaml.h 36 if (std::error_code ec = Buffer.getError()) {
47 if (std::error_code ec = Input.error()) {
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp 167 if (std::error_code ec = llvm::sys::fs::create_directories(Directory)) {
223 if (std::error_code EC =
229 if (std::error_code EC =
237 std::error_code EC;
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp 647 std::error_code EC;
tools/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp 344 std::error_code EC;
tools/clang/lib/Tooling/CompilationDatabase.cpp 367 if (std::error_code Result = File.getError()) {
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp 229 std::error_code close() override { return {}; }
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp 59 std::error_code setCurrentWorkingDirectory(const Twine &Path) override {
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp 202 if (std::error_code Result = DatabaseBuffer.getError()) {
tools/clang/lib/Tooling/Tooling.cpp 234 if (auto EC = FS.makeAbsolute(AbsolutePath))
560 if (auto EC =
tools/clang/tools/clang-format/ClangFormat.cpp 380 if (std::error_code EC = CodeOrErr.getError()) {
486 if (std::error_code EC = CodeOrErr.getError()) {
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp 666 std::error_code EC;
679 if (std::error_code EC = CodeOrErr.getError())
718 if (std::error_code EC = CodeOrErr.getError())
766 std::error_code EC;
785 std::error_code EC;
805 std::error_code EC;
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp 352 std::error_code EC;
tools/clang/tools/clang-refactor/ClangRefactor.cpp 501 std::error_code EC;
tools/clang/tools/clang-rename/ClangRename.cpp 190 std::error_code EC;
tools/clang/tools/driver/cc1as_main.cpp 317 std::error_code EC;
339 if (std::error_code EC = Buffer.getError()) {
tools/clang/tools/extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h 65 std::error_code collectReplacementsFromDirectory(
69 std::error_code collectReplacementsFromDirectory(
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp 39 std::error_code collectReplacementsFromDirectory(
45 std::error_code ErrorCode;
62 if (std::error_code BufferError = Out.getError()) {
83 std::error_code collectReplacementsFromDirectory(
89 std::error_code ErrorCode;
106 if (std::error_code BufferError = Out.getError()) {
249 std::error_code Error = llvm::sys::fs::remove(Filename);
tools/clang/tools/extra/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp 110 std::error_code ErrorCode =
154 std::error_code EC;
tools/clang/tools/extra/clang-doc/HTMLGenerator.cpp 887 std::error_code OK;
888 std::error_code FileErr;
937 std::error_code FileErr, OK;
972 std::error_code OK;
973 std::error_code FileErr = llvm::sys::fs::copy_file(PathRead, PathWrite);
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp 134 std::error_code OK;
137 std::error_code RemoveStatus = llvm::sys::fs::remove_directories(DirName);
144 std::error_code DirectoryStatus = llvm::sys::fs::create_directories(DirName);
183 std::error_code OK;
304 std::error_code FileErr;
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp 79 std::error_code EC;
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp 280 if (std::error_code EC = CodeOrErr.getError()) {
tools/clang/tools/extra/clang-move/Move.cpp 89 if (std::error_code EC =
tools/clang/tools/extra/clang-move/tool/ClangMove.cpp 30 std::error_code CreateNewFile(const llvm::Twine &path) {
32 if (std::error_code ec = llvm::sys::fs::openFileForWrite(
122 if (std::error_code EC = llvm::sys::fs::current_path(InitialDirectory))
155 std::error_code EC = CreateNewFile(NewCC);
163 std::error_code EC = CreateNewFile(NewHeader);
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.cpp 296 if (std::error_code EC = Text.getError()) {
320 std::error_code parseLineFilter(StringRef LineFilter,
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.h 262 std::error_code parseLineFilter(llvm::StringRef LineFilter,
tools/clang/tools/extra/clang-tidy/ClangTidyProfiling.cpp 62 if (std::error_code EC = llvm::sys::fs::create_directories(OutputDirectory)) {
68 std::error_code EC;
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp 261 if (std::error_code Err = parseLineFilter(LineFilter, GlobalOptions)) {
353 if (std::error_code EC = llvm::sys::fs::make_absolute(AbsolutePath)) {
446 std::error_code EC;
tools/clang/tools/extra/clangd/Cancellation.h 91 std::error_code convertToErrorCode() const override {
tools/clang/tools/extra/clangd/FSProvider.cpp 63 std::error_code close() override { return Wrapped->close(); }
tools/clang/tools/extra/clangd/Protocol.h 67 std::error_code convertToErrorCode() const override {
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp 110 if (auto EC = llvm::sys::fs::createTemporaryFile("system-includes", "clangd",
tools/clang/tools/extra/clangd/SourceCode.cpp 636 if (auto EC =
tools/clang/tools/extra/clangd/index/BackgroundIndexStorage.cpp 51 std::error_code OK;
52 std::error_code EC = llvm::sys::fs::create_directories(DiskShardRoot);
tools/clang/tools/extra/clangd/tool/ClangdMain.cpp 488 std::error_code EC;
506 std::error_code EC;
536 if (auto Err = llvm::sys::fs::current_path(CWD))
556 if (std::error_code EC = llvm::sys::fs::make_absolute(Path)) {
tools/clang/tools/extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp 225 std::error_code EC;
tools/clang/tools/extra/modularize/CoverageChecker.cpp 171 std::error_code CoverageChecker::doChecks() {
172 std::error_code returnValue;
245 std::error_code EC;
367 std::error_code EC;
tools/clang/tools/extra/modularize/CoverageChecker.h 106 std::error_code doChecks();
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp 73 std::error_code ModularizeUtilities::loadAllHeaderListsAndDependencies() {
80 if (std::error_code EC = loadModuleMap(InputPath))
85 if (std::error_code EC = loadSingleHeaderListsAndDependencies(InputPath)) {
95 if (std::error_code EC = loadProblemHeaderList(ProblemFilesPath)) {
114 std::error_code ModularizeUtilities::doCoverageCheck(
119 std::error_code EC;
125 std::error_code LocalEC = Checker->doChecks();
133 std::error_code ModularizeUtilities::loadSingleHeaderListsAndDependencies(
149 if (std::error_code EC = listBuffer.getError())
206 std::error_code ModularizeUtilities::loadProblemHeaderList(
222 if (std::error_code EC = listBuffer.getError())
258 std::error_code ModularizeUtilities::loadModuleMap(
405 std::error_code EC;
tools/clang/tools/extra/modularize/ModularizeUtilities.h 88 std::error_code loadAllHeaderListsAndDependencies();
105 std::error_code doCoverageCheck(std::vector<std::string> &IncludePaths,
134 std::error_code loadSingleHeaderListsAndDependencies(
140 std::error_code loadProblemHeaderList(
146 std::error_code loadModuleMap(
tools/clang/tools/extra/modularize/ModuleAssistant.cpp 270 std::error_code EC;
tools/clang/tools/extra/pp-trace/PPTrace.cpp 154 std::error_code EC;
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp 34 std::error_code Error = parseLineFilter(
tools/clang/tools/libclang/CXLoadedDiagnostic.cpp 193 std::error_code reportBad(enum CXLoadDiag_Error code, llvm::StringRef err) {
201 std::error_code reportInvalidFile(llvm::StringRef err) {
205 std::error_code readRange(const serialized_diags::Location &SDStart,
209 std::error_code readLocation(const serialized_diags::Location &SDLoc,
213 std::error_code visitStartOfDiagnostic() override;
214 std::error_code visitEndOfDiagnostic() override;
216 std::error_code visitCategoryRecord(unsigned ID, StringRef Name) override;
218 std::error_code visitDiagFlagRecord(unsigned ID, StringRef Name) override;
220 std::error_code visitDiagnosticRecord(
224 std::error_code visitFilenameRecord(unsigned ID, unsigned Size,
228 std::error_code visitFixitRecord(const serialized_diags::Location &Start,
232 std::error_code
252 std::error_code EC = readDiagnostics(file);
271 std::error_code
288 std::error_code
296 std::error_code EC;
308 std::error_code DiagLoader::visitStartOfDiagnostic() {
313 std::error_code DiagLoader::visitEndOfDiagnostic() {
322 std::error_code DiagLoader::visitCategoryRecord(unsigned ID, StringRef Name) {
330 std::error_code DiagLoader::visitDiagFlagRecord(unsigned ID, StringRef Name) {
338 std::error_code DiagLoader::visitFilenameRecord(unsigned ID, unsigned Size,
350 std::error_code
354 if (std::error_code EC = readRange(Start, End, SR))
360 std::error_code
365 if (std::error_code EC = readRange(Start, End, SR))
375 std::error_code DiagLoader::visitDiagnosticRecord(
380 if (std::error_code EC = readLocation(Location, D.DiagLoc))
tools/clang/unittests/Basic/FileManagerTest.cpp 60 std::error_code getStat(StringRef Path, llvm::vfs::Status &Status,
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp 44 std::error_code UniqDirRes =
52 std::error_code CreateDirRes =
80 std::error_code EC =
374 std::error_code error;
tools/clang/unittests/Tooling/RefactoringTest.cpp 595 std::error_code EC = llvm::sys::fs::remove(Name);
604 std::error_code EC = llvm::sys::fs::createTemporaryFile(Name, "", FD, Path);
tools/clang/unittests/Tooling/RewriterTestContext.h 69 std::error_code EC = llvm::sys::fs::createTemporaryFile(Name, "", FD, Path);
tools/dsymutil/BinaryHolder.cpp 50 if (auto Err = ErrOrBuff.getError())
89 if (auto Err = ErrOrBuff.getError())
tools/dsymutil/DebugMap.cpp 130 if (auto Err = ErrOrFile.getError())
141 if (auto EC = yin.error())
tools/dsymutil/DwarfLinker.cpp 2508 std::error_code EC;
2604 if (auto Err = sys::fs::status(File, Stat)) {
tools/dsymutil/SymbolMap.cpp 119 if (auto EC = ErrOrMemBuffer.getError()) {
tools/dsymutil/dsymutil.cpp 132 std::error_code EC;
279 std::error_code EC;
341 if (std::error_code EC =
504 if (auto EC = DebugMapPtrsOrErr.getError()) {
582 std::error_code EC;
tools/gold/gold-plugin.cpp 518 if (std::error_code EC = BufferOrErr.getError()) {
531 std::error_code EC = EI.convertToErrorCode();
794 std::error_code EC =
803 std::error_code EC =
888 std::error_code EC;
947 std::error_code EC;
976 std::error_code EC;
1118 std::error_code EC = sys::fs::remove(output_name);
1131 std::error_code EC = sys::fs::remove(Name);
tools/llc/llc.cpp 241 std::error_code EC;
481 std::error_code EC;
tools/lld/COFF/Driver.cpp 125 using MBErrPair = std::pair<std::unique_ptr<MemoryBuffer>, std::error_code>;
781 if (std::error_code ec =
1727 if (auto e = tryCreateFile(config->outputFile)) {
tools/lld/COFF/DriverUtils.cpp 58 if (auto ec = exeOrErr.getError())
319 if (auto ec = sys::fs::createTemporaryFile("lld-" + prefix, extn, s))
324 std::error_code ec;
412 std::error_code ec;
513 std::error_code ec;
tools/lld/COFF/InputFiles.cpp 204 if (auto ec = coffObj->getSection(i, sec))
tools/lld/COFF/LTO.cpp 47 std::error_code ec;
tools/lld/COFF/MapFile.cpp 94 std::error_code ec;
tools/lld/COFF/MinGW.cpp 151 std::error_code ec;
tools/lld/Common/Filesystem.cpp 55 std::error_code ec = sys::fs::openFileForRead(path, fd);
93 std::error_code lld::tryCreateFile(StringRef path) {
tools/lld/Common/Strings.cpp 76 std::error_code ec;
tools/lld/ELF/CallGraphSort.cpp 236 std::error_code ec;
tools/lld/ELF/Driver.cpp 1715 if (auto e = tryCreateFile(config->outputFile))
1717 if (auto e = tryCreateFile(config->mapFile))
tools/lld/ELF/InputFiles.cpp 112 if (auto ec = mbOrErr.getError()) {
tools/lld/ELF/LTO.cpp 51 std::error_code ec;
tools/lld/ELF/MapFile.cpp 146 std::error_code ec;
tools/lld/ELF/Writer.cpp 2729 if (auto ec = llvm::getRandomBytes(buildId.data(), hashSize))
tools/lld/include/lld/Common/ErrorHandler.h 131 if (auto ec = e.getError())
144 if (auto ec = e.getError())
tools/lld/include/lld/Common/Filesystem.h 17 std::error_code tryCreateFile(StringRef path);
tools/lld/include/lld/Core/ArchiveLibraryFile.h 36 virtual std::error_code
tools/lld/include/lld/Core/Error.h 30 inline std::error_code make_error_code(YamlReaderError e) {
40 std::error_code make_dynamic_error_code(StringRef msg);
53 std::error_code convertToErrorCode() const override {
tools/lld/include/lld/Core/File.h 201 void setLastError(std::error_code err) { _lastError = err; }
203 std::error_code parse();
222 virtual std::error_code doParse() { return std::error_code(); }
238 llvm::Optional<std::error_code> _lastError;
249 ErrorFile(StringRef path, std::error_code ec)
252 std::error_code doParse() override { return _ec; }
271 std::error_code _ec;
tools/lld/include/lld/ReaderWriter/MachOLinkingContext.h 148 std::error_code createDependencyFile(StringRef path);
tools/lld/lib/Core/Error.cpp 80 std::error_code make_dynamic_error_code(StringRef msg) {
tools/lld/lib/Core/File.cpp 21 std::error_code File::parse() {
tools/lld/lib/Core/Resolver.cpp 225 if (std::error_code ec = file->parse()) {
tools/lld/lib/Driver/DarwinLdDriver.cpp 96 makeErrorFile(StringRef path, std::error_code ec) {
106 if (std::error_code ec = archive->parseAllMembers(members))
121 if (std::error_code ec = mbOrErr.getError())
125 if (std::error_code ec = fileOrErr.getError())
131 if (std::error_code ec = shl->parse())
168 static std::error_code parseExportsList(StringRef exportFilePath,
173 if (std::error_code ec = mb.getError())
198 static std::error_code parseOrderFile(StringRef orderFilePath,
203 if (std::error_code ec = mb.getError())
262 if (std::error_code ec = mb.getError())
572 if (std::error_code ec = ctx.createDependencyFile(depInfo->getValue()))
659 if (std::error_code ec = parseExportsList(expFile->getValue(), ctx)) {
685 if (std::error_code ec = parseExportsList(expFile->getValue(), ctx)) {
970 if (std::error_code ec = parseOrderFile(orderFile->getValue(), ctx)) {
tools/lld/lib/ReaderWriter/FileArchive.cpp 80 std::error_code
82 if (std::error_code ec = parse())
88 if (std::error_code ec = instantiateMember(*mf, file)) {
125 std::error_code doParse() override {
131 std::error_code ec;
138 std::error_code instantiateMember(Archive::Child member,
155 if (std::error_code ec = fileOrErr.getError())
158 if (std::error_code ec = result->parse())
168 std::error_code buildTableOfContents() {
tools/lld/lib/ReaderWriter/MachO/File.h 241 std::error_code doParse() override {
331 std::error_code doParse() override {
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp 663 if (std::error_code ec = mbOrErr.getError())
898 std::error_code MachOLinkingContext::createDependencyFile(StringRef path) {
899 std::error_code ec;
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFile.h 299 std::error_code writeYaml(const NormalizedFile &file, raw_ostream &out);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp 82 static std::error_code appendRelocations(Relocations &relocs, StringRef buffer,
96 static std::error_code
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp 187 std::error_code _ec;
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp 892 if (auto EC = llvm::sys::fs::make_absolute(pathBuf))
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp 815 if (auto ec = yin.error())
825 std::error_code writeYaml(const NormalizedFile &file, raw_ostream &out) {
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp 615 std::error_code
1301 std::error_code ec;
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp 747 std::error_code ec =
tools/lld/unittests/MachOTests/MachONormalizedFileBinaryWriterTests.cpp 33 std::error_code ec = mbOrErr.getError();
147 std::error_code ec =
222 std::error_code ec = llvm::sys::fs::remove(Twine(tmpFl));
260 std::error_code ec =
333 std::error_code ec = llvm::sys::fs::remove(Twine(tmpFl));
379 std::error_code ec =
463 std::error_code ec = llvm::sys::fs::remove(Twine(tmpFl));
536 std::error_code ec =
693 std::error_code ec = llvm::sys::fs::remove(Twine(tmpFl));
tools/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp 39 std::error_code ec = lld::mach_o::normalized::writeYaml(f, ostr);
tools/lld/wasm/InputFiles.cpp 49 if (auto ec = mbOrErr.getError()) {
tools/lldb/include/lldb/Host/FileSystem.h 74 std::error_code &ec);
76 std::error_code &ec);
104 uint32_t GetPermissions(const FileSpec &file_spec, std::error_code &ec) const;
105 uint32_t GetPermissions(const llvm::Twine &path, std::error_code &ec) const;
134 std::error_code MakeAbsolute(llvm::SmallVectorImpl<char> &path) const;
135 std::error_code MakeAbsolute(FileSpec &file_spec) const;
179 std::error_code GetRealPath(const llvm::Twine &path,
tools/lldb/include/lldb/Utility/Reproducer.h 104 if (auto ec = m_collector->copyFiles(/*stop_on_error=*/false))
143 if (std::error_code EC = llvm::sys::fs::current_path(cwd))
158 DataRecorder(const FileSpec &filename, std::error_code &ec)
tools/lldb/include/lldb/Utility/Status.h 62 Status(std::error_code EC);
tools/lldb/source/API/SBReproducerPrivate.h 52 std::error_code m_ec;
tools/lldb/source/Commands/CommandCompletions.cpp 177 std::error_code EC;
tools/lldb/source/Commands/CommandObjectReproducer.cpp 315 if (auto err = command_buffer.getError()) {
328 if (auto err = error_or_file.getError()) {
337 if (auto err = yin.error()) {
tools/lldb/source/Core/Debugger.cpp 1181 if (std::error_code ec = llvm::sys::fs::openFileForWrite(
tools/lldb/source/Host/common/FileSystem.cpp 89 std::error_code &ec) {
94 std::error_code &ec) {
135 std::error_code &ec) const {
140 std::error_code ec;
145 std::error_code &ec) const {
193 std::error_code EC;
219 std::error_code FileSystem::MakeAbsolute(SmallVectorImpl<char> &path) const {
223 std::error_code FileSystem::MakeAbsolute(FileSpec &file_spec) const {
227 auto EC = MakeAbsolute(path);
236 std::error_code FileSystem::GetRealPath(const Twine &path,
tools/lldb/source/Initialization/SystemInitializerCommon.cpp 84 if (std::error_code ec = FileSystem::Instance()
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp 973 auto ec = entry.getName(dll_name);
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp 412 std::error_code EC;
439 std::error_code EC;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp 182 if (auto err = error_or_file.getError())
188 if (auto err = yin.error())
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp 528 std::error_code code = errorToErrorCode(file.takeError());
666 std::error_code ec;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp 341 if (std::error_code ec = llvm::sys::fs::current_path(cwd))
356 if (std::error_code ec = llvm::sys::fs::set_current_path(path))
tools/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp 1035 std::error_code PythonException::convertToErrorCode() const {
tools/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h 688 std::error_code convertToErrorCode() const override;
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp 2718 std::error_code ec = status(target_file.GetPath(), st);
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp 131 auto ec = obj->getDebugPDBInfo(pdb_info, pdb_file);
tools/lldb/source/Symbol/CxxModuleHandler.cpp 107 std::error_code convertToErrorCode() const override {
tools/lldb/source/Target/ModuleCache.cpp 199 const auto err_code =
tools/lldb/source/Target/Platform.cpp 749 if (std::error_code ec = llvm::sys::fs::set_current_path(file_spec.GetPath())) {
1630 std::error_code EC;
tools/lldb/source/Utility/Reproducer.cpp 32 auto ec = sys::fs::createUniqueDirectory("reproducer", repro_dir);
38 auto ec = sys::fs::create_directory(root->GetPath());
187 std::error_code EC;
211 if (auto err = error_or_file.getError())
216 if (auto err = yin.error())
236 std::error_code ec;
267 std::error_code ec;
279 std::error_code ec;
288 std::error_code ec;
298 std::error_code EC;
313 if (auto err = error_or_file.getError())
320 if (auto err = yin.error())
tools/lldb/source/Utility/ReproducerInstrumentation.cpp 39 if (auto err = error_or_file.getError())
tools/lldb/source/Utility/Status.cpp 46 Status::Status(std::error_code EC)
68 std::error_code ec = e->convertToErrorCode();
tools/lldb/tools/lldb-server/LLDBServerUtilities.cpp 25 std::error_code EC;
tools/lldb/tools/lldb-server/lldb-gdbserver.cpp 182 if (std::error_code ec = llvm::sys::fs::current_path(cwd)) {
tools/lldb/unittests/Host/FileSystemTest.cpp 32 std::error_code close() override { return std::error_code(); }
66 std::error_code setCurrentWorkingDirectory(const Twine &Path) override {
71 std::error_code getRealPath(const Twine &Path,
110 std::error_code increment() override {
126 std::error_code &EC) override {
225 auto EC = fs.MakeAbsolute(foo);
232 auto EC = fs.MakeAbsolute(file_spec);
301 std::error_code code = errorToErrorCode(file.takeError());
tools/lldb/unittests/Host/SocketTest.cpp 93 std::error_code EC = llvm::sys::fs::createUniqueDirectory("DomainListenConnectAccept", Path);
197 std::error_code EC =
tools/lldb/unittests/Target/ModuleCacheTest.cpp 116 std::error_code ec = llvm::sys::fs::copy_file(
154 std::error_code ec =
tools/lldb/unittests/TestingSupport/TestUtilities.cpp 34 if (std::error_code EC = llvm::sys::fs::createTemporaryFile(
61 if (std::error_code EC =
tools/lldb/unittests/Utility/StatusTest.cpp 49 std::error_code ec = llvm::errorToErrorCode(std::move(eagain));
tools/lli/lli.cpp 253 std::error_code EC;
728 std::error_code EC;
tools/llvm-ar/llvm-ar.cpp 143 static void failIfError(std::error_code EC, Twine Context = "") {
965 std::error_code EC = Buf.getError();
tools/llvm-as/llvm-as.cpp 83 std::error_code EC;
tools/llvm-cat/llvm-cat.cpp 87 std::error_code EC;
tools/llvm-cfi-verify/lib/FileAnalysis.cpp 587 std::error_code UnsupportedDisassembly::convertToErrorCode() const {
tools/llvm-cfi-verify/lib/FileAnalysis.h 243 std::error_code convertToErrorCode() const override;
tools/llvm-cov/CodeCoverage.cpp 188 if (std::error_code EC = sys::fs::make_absolute(EffectivePath)) {
214 std::error_code EC;
243 if (auto EC = Buffer.getError()) {
448 std::error_code EC =
859 if (auto E = sys::fs::create_directories(ViewOpts.ShowOutputDirectory)) {
tools/llvm-cov/SourceCoverageView.cpp 63 if (auto E = sys::fs::create_directories(ParentDir))
66 std::error_code E;
tools/llvm-cov/TestingSupport.cpp 92 if (auto Err = sys::fs::openFileForWrite(OutputFilename, FD)) {
tools/llvm-cov/gcov.cpp 48 if (std::error_code EC = GCNO_Buff.getError()) {
60 if (std::error_code EC = GCDA_Buff.getError()) {
tools/llvm-cvtres/llvm-cvtres.cpp 75 static void reportError(StringRef Input, std::error_code EC) {
79 void error(std::error_code EC) {
tools/llvm-cxxdump/Error.h 27 inline std::error_code make_error_code(cxxdump_error e) {
tools/llvm-cxxdump/llvm-cxxdump.cpp 43 static void error(std::error_code EC) {
75 static void reportError(StringRef Input, std::error_code EC) {
529 auto EC = errorToErrorCode(BinaryOrErr.takeError());
tools/llvm-cxxmap/llvm-cxxmap.cpp 72 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") {
147 std::error_code EC;
tools/llvm-dis/llvm-dis.cpp 187 std::error_code EC;
tools/llvm-dwarfdump/llvm-dwarfdump.cpp 229 static void error(StringRef Prefix, std::error_code EC) {
542 std::error_code EC;
586 std::error_code EC;
tools/llvm-dwp/DWPError.h 13 std::error_code convertToErrorCode() const override {
tools/llvm-dwp/llvm-dwp.cpp 708 std::error_code EC;
tools/llvm-elfabi/llvm-elfabi.cpp 56 std::error_code SysErr;
tools/llvm-exegesis/lib/SnippetFile.cpp 123 if (std::error_code EC = BufferPtr.getError()) {
tools/llvm-exegesis/llvm-exegesis.cpp 307 std::error_code ErrorCode;
tools/llvm-extract/llvm-extract.cpp 362 std::error_code EC;
tools/llvm-ifs/llvm-ifs.cpp 215 if (std::error_code Err = YamlIn.error())
522 std::error_code SysErr;
tools/llvm-jitlink/llvm-jitlink.cpp 264 if (auto EC = sys::Memory::releaseMappedMemory(KV.second))
274 if (auto EC = sys::Memory::protectMappedMemory(Block, Prot))
350 std::error_code EC;
tools/llvm-link/llvm-link.cpp 383 std::error_code EC;
tools/llvm-lto/llvm-lto.cpp 295 static void error(std::error_code EC, const Twine &Prefix) {
420 std::error_code EC;
454 if (std::error_code EC = llvm::sys::fs::create_directories(ParentPath))
512 std::error_code EC;
583 std::error_code EC;
621 std::error_code EC;
804 std::error_code EC;
850 std::error_code EC;
1022 std::error_code EC;
tools/llvm-lto2/llvm-lto2.cpp 156 static void check(std::error_code EC, std::string Msg) {
335 std::error_code EC;
tools/llvm-mc/llvm-mc.cpp 214 std::error_code EC;
335 if (std::error_code EC = BufferPtr.getError()) {
tools/llvm-mca/llvm-mca.cpp 239 std::error_code EC;
318 if (std::error_code EC = BufferPtr.getError()) {
404 if (std::error_code EC = OF.getError()) {
tools/llvm-modextract/llvm-modextract.cpp 55 std::error_code EC;
tools/llvm-mt/llvm-mt.cpp 72 static void reportError(StringRef Input, std::error_code EC) {
76 void error(std::error_code EC) {
tools/llvm-nm/llvm-nm.cpp 229 static bool error(std::error_code EC, Twine Path = Twine()) {
tools/llvm-objcopy/COFF/Reader.cpp 49 if (auto EC = COFFObj.getDataDirectory(I, Dir))
61 if (auto EC = COFFObj.getSection(I, Sec))
104 if (auto EC = COFFObj.getSymbolName(SymRef, Sym.Name))
tools/llvm-objcopy/ELF/ELFObjcopy.cpp 206 static Error makeStringError(std::error_code EC, const Twine &Msg, Ts &&... Args) {
220 if (auto EC = sys::fs::create_directories(Path))
240 if (auto EC = sys::fs::create_hard_link(ToLink, TmpPath)) {
248 if (auto EC = sys::fs::rename(TmpPath, Path)) {
257 if (auto EC = sys::fs::remove(TmpPath)) {
tools/llvm-objcopy/llvm-objcopy.cpp 72 LLVM_ATTRIBUTE_NORETURN void reportError(StringRef File, std::error_code EC) {
223 if (auto EC =
228 if (auto EC = sys::fs::setLastAccessAndModificationTime(
233 if (std::error_code EC = sys::fs::status(FD, OStat))
241 if (auto EC = sys::fs::setPermissions(
247 if (auto EC = sys::Process::SafelyCloseFileDescriptor(FD))
259 if (auto EC = sys::fs::status(Config.InputFilename, Stat))
tools/llvm-objcopy/llvm-objcopy.h 25 std::error_code EC);
tools/llvm-objdump/COFFDump.cpp 238 if (std::error_code EC = Obj->getVaPtr(TableVA, IntPtr))
278 if (std::error_code EC = Obj->getDataDirectory(COFF::TLS_TABLE, DataDir))
285 if (std::error_code EC =
311 if (std::error_code EC =
319 if (std::error_code EC =
666 if (std::error_code EC = coff->getSymbolName(*Symbol, Name))
697 if (std::error_code EC =
714 if (std::error_code EC = coff->getAuxSymbol<char>(SI + 1, FileName))
725 if (std::error_code EC =
tools/llvm-objdump/MachODump.cpp 7361 if (std::error_code EC = BufOrErr.getError()) {
10346 std::error_code EC =
tools/llvm-objdump/llvm-objdump.cpp 1175 if (std::error_code EC = ExportEntry.getSymbolName(Name))
1181 if (std::error_code EC = ExportEntry.getExportRVA(RVA))
tools/llvm-opt-report/OptReport.cpp 151 if (std::error_code EC = Buf.getError()) {
246 std::error_code EC;
264 if (std::error_code EC = Buf.getError()) {
tools/llvm-pdbutil/InputFile.cpp 261 if (auto EC = identify_magic(Path, Magic))
tools/llvm-profdata/llvm-profdata.cpp 83 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") {
92 static void warnOrExitGivenError(FailureMode FailMode, std::error_code EC,
365 std::error_code EC;
479 if (std::error_code EC = ReaderOrErr.getError()) {
490 if (std::error_code EC = Reader->read()) {
508 std::error_code EC = make_error_code(Result);
520 if (std::error_code EC = WriterOrErr.getError())
565 std::error_code EC;
742 std::error_code EC;
1023 if (std::error_code EC = ReaderOrErr.getError())
1033 if (std::error_code EC = Reader->read())
1119 std::error_code EC;
tools/llvm-rc/ResourceScriptParser.h 44 std::error_code convertToErrorCode() const override {
tools/llvm-rc/llvm-rc.cpp 178 std::error_code EC;
tools/llvm-readobj/COFFDumper.cpp 163 std::error_code resolveSymbol(const coff_section *Section, uint64_t Offset,
165 std::error_code resolveSymbolName(const coff_section *Section,
167 std::error_code resolveSymbolName(const coff_section *Section,
243 std::error_code createCOFFDumper(const object::ObjectFile *Obj,
258 std::error_code COFFDumper::resolveSymbol(const coff_section *Section,
279 std::error_code COFFDumper::resolveSymbolName(const coff_section *Section,
283 if (std::error_code EC = resolveSymbol(Section, Offset, Symbol))
294 std::error_code COFFDumper::resolveSymbolName(const coff_section *Section,
575 static std::error_code getSymbolAuxData(const COFFObjectFile *Obj,
728 if (std::error_code EC = Obj->getDebugPDBInfo(&D, DebugInfo, PDBFileName))
742 if (std::error_code EC = Obj->getRvaAndSizeAsBytes(D.AddressOfRawData,
753 if (std::error_code EC = Obj->getVaPtr(TableVA, TableStart))
755 if (std::error_code EC =
1035 if (std::error_code EC = resolveSymbolName(Obj->getCOFFSection(Section),
1060 if (std::error_code EC =
1453 if (std::error_code EC = Obj->getSection(Symbol.getSectionNumber(), Section)) {
1481 if (std::error_code EC = getSymbolAuxData(Obj, Symbol, I, Aux))
1492 if (std::error_code EC = getSymbolAuxData(Obj, Symbol, I, Aux))
1500 if (std::error_code EC = Obj->getSymbolName(*Linked, LinkedName))
1510 if (std::error_code EC = getSymbolAuxData(Obj, Symbol, I, FileName))
1520 if (std::error_code EC = getSymbolAuxData(Obj, Symbol, I, Aux))
1537 if (std::error_code EC = Obj->getSection(AuxNumber, Assoc))
1548 if (std::error_code EC = getSymbolAuxData(Obj, Symbol, I, Aux))
1557 if (std::error_code EC = Obj->getSymbolName(*ReferredSym, ReferredName))
1624 if (std::error_code EC = I.getSymbolName(Sym))
1627 if (std::error_code EC = I.getOrdinal(Ordinal))
1640 if (std::error_code EC = S.getSymbolName(Sym))
1644 if (std::error_code EC = S.getOrdinal(Ordinal))
1649 if (std::error_code EC = I.getImportAddress(Index++, Addr))
1660 if (std::error_code EC = I.getName(Name))
1664 if (std::error_code EC = I.getImportLookupTableRVA(ILTAddr))
1668 if (std::error_code EC = I.getImportAddressTableRVA(IATAddr))
1683 if (std::error_code EC = I.getName(Name))
1687 if (std::error_code EC = I.getDelayImportTable(Table))
1706 if (std::error_code EC = E.getSymbolName(Name))
1708 if (std::error_code EC = E.getOrdinal(Ordinal))
1710 if (std::error_code EC = E.getExportRVA(RVA))
1749 if (std::error_code EC = I.getRVA(RVA))
1751 if (std::error_code EC = I.getType(Type))
1953 if (std::error_code EC = Obj->getSymbolName(*Sym, SymName))
tools/llvm-readobj/ELFDumper.cpp 612 static std::error_code createELFDumper(const ELFObjectFile<ELFT> *Obj,
619 std::error_code createELFDumper(const object::ObjectFile *Obj,
tools/llvm-readobj/Error.h 30 inline std::error_code make_error_code(readobj_error e) {
tools/llvm-readobj/MachODumper.cpp 71 std::error_code createMachODumper(const object::ObjectFile *Obj,
517 std::error_code EC;
tools/llvm-readobj/ObjDumper.h 115 std::error_code createCOFFDumper(const object::ObjectFile *Obj,
119 std::error_code createELFDumper(const object::ObjectFile *Obj,
123 std::error_code createMachODumper(const object::ObjectFile *Obj,
127 std::error_code createWasmDumper(const object::ObjectFile *Obj,
131 std::error_code createXCOFFDumper(const object::ObjectFile *Obj,
tools/llvm-readobj/WasmDumper.cpp 246 std::error_code createWasmDumper(const object::ObjectFile *Obj,
tools/llvm-readobj/Win64EHDumper.cpp 140 static std::error_code resolveRelocation(const Dumper::Context &Ctx,
146 if (std::error_code EC =
tools/llvm-readobj/Win64EHDumper.h 28 typedef std::error_code (*SymbolResolver)(const object::coff_section *,
tools/llvm-readobj/XCOFFDumper.cpp 534 std::error_code createXCOFFDumper(const object::ObjectFile *Obj,
tools/llvm-readobj/llvm-readobj.cpp 417 static std::error_code createDumper(const ObjectFile *Obj,
445 if (std::error_code EC = createDumper(Obj, Writer, Dumper))
tools/llvm-reduce/deltas/Delta.cpp 27 std::error_code EC =
tools/llvm-reduce/llvm-reduce.cpp 102 std::error_code EC;
tools/llvm-rtdyld/llvm-rtdyld.cpp 246 std::error_code EC;
300 std::error_code EC;
328 std::error_code EC;
377 if (std::error_code EC = InputBuffer.getError())
513 if (std::error_code EC = InputBuffer.getError())
555 if (auto EC = sys::Memory::protectMappedMemory(FM_MB,
586 if (std::error_code EC = CheckerFileBuf.getError())
904 if (std::error_code EC = InputBuffer.getError())
tools/llvm-split/llvm-split.cpp 56 std::error_code EC;
tools/llvm-stress/llvm-stress.cpp 754 std::error_code EC;
tools/llvm-strings/llvm-strings.cpp 112 if (std::error_code EC = Buffer.getError())
tools/llvm-undname/llvm-undname.cpp 85 if (std::error_code EC = FileOrErr.getError()) {
tools/llvm-xray/xray-account.cpp 423 std::error_code EC;
tools/llvm-xray/xray-converter.cpp 387 std::error_code EC;
tools/llvm-xray/xray-extract.cpp 82 std::error_code EC;
tools/llvm-xray/xray-fdr-dump.cpp 43 if (auto EC = sys::fs::file_size(DumpInput, FileSize))
47 std::error_code EC;
tools/llvm-xray/xray-graph-diff.cpp 472 std::error_code EC;
tools/llvm-xray/xray-graph.cpp 508 std::error_code EC;
tools/obj2yaml/Error.cpp 57 std::error_code Obj2YamlError::convertToErrorCode() const {
tools/obj2yaml/Error.h 27 inline std::error_code make_error_code(obj2yaml_error e) {
40 std::error_code convertToErrorCode() const override;
tools/obj2yaml/coff2yaml.cpp 357 std::error_code coff2yaml(raw_ostream &Out, const object::COFFObjectFile &Obj) {
tools/obj2yaml/dwarf2yaml.cpp 349 std::error_code dwarf2yaml(DWARFContext &DCtx, DWARFYAML::Data &Y) {
tools/obj2yaml/macho2yaml.cpp 200 if (auto Err = dwarf2yaml(*DICtx, Y->DWARF))
546 std::error_code macho2yaml(raw_ostream &Out, const object::Binary &Binary) {
tools/obj2yaml/obj2yaml.h 22 std::error_code coff2yaml(llvm::raw_ostream &Out,
26 std::error_code macho2yaml(llvm::raw_ostream &Out,
30 std::error_code xcoff2yaml(llvm::raw_ostream &Out,
32 std::error_code wasm2yaml(llvm::raw_ostream &Out,
43 std::error_code dwarf2yaml(llvm::DWARFContext &DCtx, llvm::DWARFYAML::Data &Y);
tools/obj2yaml/wasm2yaml.cpp 377 std::error_code wasm2yaml(raw_ostream &Out, const object::WasmObjectFile &Obj) {
380 if (std::error_code EC = YAMLOrErr.getError())
tools/obj2yaml/xcoff2yaml.cpp 22 std::error_code dumpSymbols();
26 std::error_code dump();
31 std::error_code XCOFFDumper::dump() {
53 std::error_code XCOFFDumper::dumpSymbols() {
85 std::error_code xcoff2yaml(raw_ostream &Out,
89 if (std::error_code EC = Dumper.dump())
tools/opt/Debugify.cpp 399 std::error_code EC;
tools/opt/opt.cpp 613 std::error_code EC;
723 std::error_code EC;
tools/polly/lib/Exchange/JSONExporter.cpp 180 std::error_code EC;
703 std::error_code ec = result.getError();
tools/polly/lib/Support/DumpModulePass.cpp 65 std::error_code EC;
tools/sancov/sancov.cpp 184 static void failIfError(std::error_code Error) {
668 std::error_code EC = Export.getExportRVA(RVA);
tools/verify-uselistorder/verify-uselistorder.cpp 110 if (auto EC = sys::fs::createTemporaryFile("uselistorder", Ext, Vector)) {
125 std::error_code EC;
138 std::error_code EC;
tools/yaml2obj/yaml2obj.cpp 52 std::error_code EC;
unittests/BinaryFormat/TestFileMagic.cpp 130 std::error_code EC;
unittests/DebugInfo/DWARF/DwarfGenerator.cpp 533 std::error_code EC;
unittests/ExecutionEngine/Orc/QueueChannel.h 30 std::error_code convertToErrorCode() const override {
unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp 56 std::error_code convertToErrorCode() const override {
unittests/ProfileData/SampleProfTest.cpp 28 static ::testing::AssertionResult NoError(std::error_code EC) {
45 std::error_code EC;
62 std::error_code EC =
150 std::error_code EC;
303 std::error_code EC;
unittests/Support/CommandLineTest.cpp 757 std::error_code EC =
782 std::error_code EC =
859 std::error_code EC = sys::fs::createUniqueDirectory("unittest", TestDir);
925 std::error_code EC = sys::fs::createUniqueDirectory("unittest", TestDir);
1000 std::error_code EC =
unittests/Support/ErrorOrTest.cpp 92 CastsToErrorCode(std::error_code) {}
93 operator std::error_code() { return errc::invalid_argument; }
unittests/Support/ErrorTest.cpp 39 std::error_code convertToErrorCode() const override {
75 std::error_code convertToErrorCode() const override {
442 auto EC =
450 static const std::error_code EC = errc::invalid_argument;
466 auto Res = errorToErrorCode(createStringError(EC, "foo%s", Bar));
926 inline std::error_code make_error_code(test_error_code E) {
932 using ErrorInfo<TestDebugError, StringError >::ErrorInfo; // inherit constructors
unittests/Support/FileCollectorTest.cpp 43 std::error_code EC;
71 std::error_code EC = sys::fs::create_link(To, From);
87 std::error_code EC;
138 std::error_code ec = FileCollector.copyFiles(true);
171 std::error_code ec = FileCollector.copyFiles(true);
211 std::error_code EC;
unittests/Support/LockFileManagerTest.cpp 21 std::error_code EC;
48 std::error_code EC;
91 std::error_code EC;
unittests/Support/MemoryBufferTest.cpp 143 std::error_code EC = MB.getError();
250 std::error_code EC = Buf.getError();
296 std::error_code EC = MB.getError();
unittests/Support/MemoryTest.cpp 98 std::error_code EC;
110 std::error_code EC;
126 std::error_code EC;
162 std::error_code EC;
183 std::error_code EC;
246 std::error_code EC;
304 std::error_code EC;
330 std::error_code EC;
353 std::error_code EC;
380 std::error_code EC;
407 std::error_code EC;
unittests/Support/Path.cpp 640 std::error_code EC = fs::status(TempPath2.c_str(), B);
825 std::error_code ec;
932 std::error_code ec;
1095 std::error_code EC;
1676 std::error_code NoError;
unittests/Support/ReplaceFileTest.cpp 30 std::error_code CreateFileWithContent(const SmallString<128> &FilePath,
33 if (std::error_code ec = fs::openFileForWrite(FilePath, FD))
63 auto EC = fs::openFileForRead(File, FD);
147 std::error_code EC;
unittests/Support/TarWriterTest.cpp 43 std::error_code EC =
125 std::error_code EC =
143 std::error_code EC =
162 std::error_code EC =
unittests/Support/VirtualFileSystemTest.cpp 38 std::error_code close() override { return std::error_code(); }
72 std::error_code setCurrentWorkingDirectory(const Twine &Path) override {
77 std::error_code getRealPath(const Twine &Path,
116 std::error_code increment() override {
132 std::error_code &EC) override {
144 std::error_code EC = makeAbsolute(P);
173 std::error_code setCurrentWorkingDirectory(const Twine &Path) override {
417 std::error_code EC;
445 std::error_code EC = sys::fs::create_link(To, From);
462 std::error_code EC;
483 std::error_code EC;
550 std::error_code EC;
577 std::map<std::string, std::error_code> StatResults;
578 std::error_code EC;
599 std::error_code EC;
649 std::error_code EC;
674 std::error_code EC;
731 std::error_code EC;
752 std::error_code EC;
777 std::error_code EC;
803 std::error_code EC;
845 std::error_code EC;
865 std::error_code EC;
880 std::error_code EC;
889 std::error_code EC;
913 std::error_code EC;
1036 std::error_code EC;
1082 std::error_code EC;
1096 auto EC = FS.getRealPath(P, Output);
1223 std::error_code EC;
1319 std::error_code EC;
1750 std::error_code EC;
1800 std::error_code EC;
1835 std::error_code EC;
1907 std::error_code EC;
1935 std::error_code EC;
1964 std::error_code EC;
2038 std::error_code EC = FS->setCurrentWorkingDirectory("//root/bar");
2097 std::error_code EC = FS->setCurrentWorkingDirectory("//root/");
2154 std::error_code EC = FS->setCurrentWorkingDirectory("//root/");
unittests/Support/raw_ostream_test.cpp 340 std::error_code EC;
unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp 85 std::error_code EC;
unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp 41 std::error_code EC;
usr/include/c++/7.4.0/bits/alloc_traits.h 474 construct(allocator_type& __a, _Up* __p, _Args&&... __args)
usr/include/c++/7.4.0/bits/functional_hash.h 53 typedef _Arg argument_type;
usr/include/c++/7.4.0/bits/ios_base.h 209 inline error_code
263 failure(const string&, const error_code&);
266 failure(const char*, const error_code& = io_errc::stream);
usr/include/c++/7.4.0/bits/move.h 46 inline _GLIBCXX_CONSTEXPR _Tp*
47 __addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
72 constexpr _Tp&&
73 forward(typename std::remove_reference<_Tp>::type& __t) noexcept
83 constexpr _Tp&&
84 forward(typename std::remove_reference<_Tp>::type&& __t) noexcept
98 move(_Tp&& __t) noexcept
136 inline _GLIBCXX17_CONSTEXPR _Tp*
137 addressof(_Tp& __r) noexcept
143 const _Tp* addressof(const _Tp&&) = delete;
143 const _Tp* addressof(const _Tp&&) = delete;
usr/include/c++/7.4.0/bits/shared_ptr.h 343 _Args&&... __args)
688 allocate_shared(const _Alloc& __a, _Args&&... __args)
703 make_shared(_Args&&... __args)
usr/include/c++/7.4.0/bits/shared_ptr_base.h 1317 _Args&&... __args)
usr/include/c++/7.4.0/bits/stl_list.h 570 _M_create_node(_Args&&... __args)
1131 emplace_back(_Args&&... __args)
1799 _M_insert(iterator __position, _Args&&... __args)
usr/include/c++/7.4.0/bits/stl_map.h 103 typedef _Tp mapped_type;
104 typedef std::pair<const _Key, _Tp> value_type;
usr/include/c++/7.4.0/bits/stl_pair.h 101 is_constructible<_T2, const _U2&>>::value;
101 is_constructible<_T2, const _U2&>>::value;
108 is_convertible<const _U2&, _T2>>::value;
108 is_convertible<const _U2&, _T2>>::value;
115 is_constructible<_T2, _U2&&>>::value;
115 is_constructible<_T2, _U2&&>>::value;
122 is_convertible<_U2&&, _T2>>::value;
122 is_convertible<_U2&&, _T2>>::value;
129 is_convertible<_U2&&, _T2>>;
129 is_convertible<_U2&&, _T2>>;
134 is_constructible<_T2, _U2&&>,
134 is_constructible<_T2, _U2&&>,
143 is_convertible<const _U2&, _T2>>;
143 is_convertible<const _U2&, _T2>>;
148 is_constructible<_T2, const _U2&&>,
148 is_constructible<_T2, const _U2&&>,
209 : private __pair_base<_T1, _T2>
212 typedef _T2 second_type; /// @c second_type is the second bound type
215 _T2 second; /// @c second is a copy of the second object
252 using _PCCP = _PCC<true, _T1, _T2>;
260 constexpr pair(const _T1& __a, const _T2& __b)
269 explicit constexpr pair(const _T1& __a, const _T2& __b)
283 _T1, _T2>;
311 constexpr pair(_U1&& __x, const _T2& __y)
318 explicit constexpr pair(_U1&& __x, const _T2& __y)
341 constexpr pair(_U1&& __x, _U2&& __y)
342 : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { }
380 is_copy_assignable<_T2>>::value,
391 is_move_assignable<_T2>>::value,
usr/include/c++/7.4.0/bits/unique_ptr.h 824 make_unique(_Args&&... __args)
825 { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
usr/include/c++/7.4.0/ext/new_allocator.h 135 construct(_Up* __p, _Args&&... __args)
usr/include/c++/7.4.0/future 83 inline error_code
109 const error_code&
114 future_error(error_code __ec)
120 error_code _M_code;
usr/include/c++/7.4.0/system_error 118 equivalent(const error_code& __code, int __i) const noexcept;
139 error_code make_error_code(errc) noexcept;
173 error_code&>::type
203 inline error_code
208 operator<(const error_code& __lhs, const error_code& __rhs) noexcept
208 operator<(const error_code& __lhs, const error_code& __rhs) noexcept
217 operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
292 operator==(const error_code& __lhs, const error_code& __rhs) noexcept
292 operator==(const error_code& __lhs, const error_code& __rhs) noexcept
297 operator==(const error_code& __lhs, const error_condition& __rhs) noexcept
304 operator==(const error_condition& __lhs, const error_code& __rhs) noexcept
319 operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
319 operator!=(const error_code& __lhs, const error_code& __rhs) noexcept
323 operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept
327 operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept
344 error_code _M_code;
347 system_error(error_code __ec = error_code())
350 system_error(error_code __ec, const string& __what)
353 system_error(error_code __ec, const char* __what)
369 const error_code&
387 : public __hash_base<size_t, error_code>
390 operator()(const error_code& __e) const noexcept
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
326 : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
354 : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
381 : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
567 : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
631 : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
762 typename add_rvalue_reference<_Tp>::type declval() noexcept;
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
798 typedef decltype(__test<_Tp>(0)) type;
811 remove_all_extents<_Tp>::type>::type
825 : public __is_destructible_safe<_Tp>::type
984 typedef decltype(__test<_Tp, _Arg>(0)) type;
989 : public __and_<is_destructible<_Tp>,
990 __is_direct_constructible_impl<_Tp, _Arg>>
1072 __is_direct_constructible_ref_cast<_Tp, _Arg>,
1073 __is_direct_constructible_new_safe<_Tp, _Arg>
1079 : public __is_direct_constructible_new<_Tp, _Arg>::type
1119 : public __is_direct_constructible<_Tp, _Arg>
1130 : public __is_constructible_impl<_Tp, _Args...>::type
1142 : public is_constructible<_Tp, const _Tp&>
1142 : public is_constructible<_Tp, const _Tp&>
1148 : public __is_copy_constructible_impl<_Tp>
1160 : public is_constructible<_Tp, _Tp&&>
1160 : public is_constructible<_Tp, _Tp&&>
1166 : public __is_move_constructible_impl<_Tp>
1304 : public is_assignable<_Tp&, _Tp&&>
1304 : public is_assignable<_Tp&, _Tp&&>
1310 : public __is_move_assignable_impl<_Tp>
1526 static void __test_aux(_To1);
1538 typedef decltype(__test<_From, _To>(0)) type;
1538 typedef decltype(__test<_From, _To>(0)) type;
1545 : public __is_convertible_helper<_From, _To>::type
1545 : public __is_convertible_helper<_From, _To>::type
1554 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1629 { typedef _Tp type; };
1633 { typedef _Tp type; };
1659 { typedef _Tp&& type; };
1664 : public __add_rvalue_reference_helper<_Tp>
1955 { typedef _Tp type; };
utils/FileCheck/FileCheck.cpp 591 if (std::error_code EC = CheckFileOrErr.getError()) {
611 if (std::error_code EC = InputFileOrErr.getError()) {
utils/unittest/googlemock/include/gmock/gmock-matchers.h 206 bool operator()(const A& a, const B& b) const { return a == b; }
206 bool operator()(const A& a, const B& b) const { return a == b; }
519 static Matcher<T> Cast(const M& polymorphic_matcher_or_value) {
536 internal::ImplicitlyConvertible<M, Matcher<T> >::value>());
540 static Matcher<T> CastImpl(const M& value, BooleanConstant<false>) {
547 static Matcher<T> CastImpl(const M& polymorphic_matcher_or_value,
629 static inline Matcher<T> Cast(const M& polymorphic_matcher_or_value) {
630 return internal::MatcherCastImpl<T, M>::Cast(polymorphic_matcher_or_value);
667 inline Matcher<T> SafeMatcherCast(const M& polymorphic_matcher) {
897 explicit ComparisonBase(const Rhs& rhs) : rhs_(rhs) {}
907 explicit Impl(const Rhs& rhs) : rhs_(rhs) {}
921 Rhs rhs_;
924 Rhs rhs_;
929 class EqMatcher : public ComparisonBase<EqMatcher<Rhs>, Rhs, AnyEq> {
929 class EqMatcher : public ComparisonBase<EqMatcher<Rhs>, Rhs, AnyEq> {
931 explicit EqMatcher(const Rhs& rhs)
3013 PairMatcherImpl(FirstMatcher first_matcher, SecondMatcher second_matcher)
3094 PairMatcher(FirstMatcher first_matcher, SecondMatcher second_matcher)
3106 const SecondMatcher second_matcher_;
3760 inline internal::EqMatcher<T> Eq(T x) { return internal::EqMatcher<T>(x); }
3760 inline internal::EqMatcher<T> Eq(T x) { return internal::EqMatcher<T>(x); }
4350 inline internal::PairMatcher<FirstMatcher, SecondMatcher>
4351 Pair(FirstMatcher first_matcher, SecondMatcher second_matcher) {
utils/unittest/googletest/include/gtest/gtest-message.h 116 inline Message& operator <<(const T& val) {
utils/unittest/googletest/include/gtest/gtest-printers.h 205 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
223 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
276 static ::std::string Format(const ToPrint& value) {
351 const T1& value, const T2& /* other_operand */) {
351 const T1& value, const T2& /* other_operand */) {
352 return FormatForComparison<T1, T2>::Format(value);
352 return FormatForComparison<T1, T2>::Format(value);
366 void UniversalPrint(const T& value, ::std::ostream* os);
373 const C& container, ::std::ostream* os) {
439 const T& value, ::std::ostream* os) {
455 void PrintTo(const T& value, ::std::ostream* os) {
478 DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os);
677 void PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) {
683 UniversalPrinter<T2>::Print(value.second, os);
699 static void Print(const T& value, ::std::ostream* os) {
784 static void Print(const T& value, ::std::ostream* os) {
856 typedef T T1;
983 internal::UniversalTersePrinter<T>::Print(value, &ss);
utils/unittest/googletest/include/gtest/gtest.h 273 const T& success,
275 !internal::ImplicitlyConvertible<T, AssertionResult>::value>::type*
1377 const T1& lhs, const T2& rhs) {
1377 const T1& lhs, const T2& rhs) {
1389 const T1& lhs,
1390 const T2& rhs) {
1419 const T1& lhs,
1420 const T2& rhs) {
utils/unittest/googletest/include/gtest/internal/custom/raw-ostream.h 29 static const T& printable(const T& V) { return V; }
29 static const T& printable(const T& V) { return V; }
35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
37 return StreamSwitch<T>::printable(V);
utils/unittest/googletest/include/gtest/internal/gtest-internal.h 94 ::std::string PrintToString(const T& value);
830 struct AddReference { typedef T& type; }; // NOLINT
863 static typename AddReference<From>::type MakeFrom();