Home | History | Annotate | Download | only in Basic

Lines Matching refs:EC

169     if (std::error_code EC = sys::fs::status(FD, RealStatus))
170 return EC;
189 std::error_code EC = sys::Process::SafelyCloseFileDescriptor(FD);
191 return EC;
200 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
209 if (std::error_code EC = sys::fs::status(Path, RealStatus))
210 return EC;
218 if (std::error_code EC = sys::fs::openFileForRead(Name, FD, &RealName))
219 return EC;
225 if (std::error_code EC = llvm::sys::fs::current_path(Dir))
226 return EC;
255 RealFSDirIter(const Twine &_Path, std::error_code &EC)
256 : Path(_Path.str()), Iter(Path, EC) {
257 if (!EC && Iter != llvm::sys::fs::directory_iterator()) {
259 EC = Iter->status(S);
260 if (!EC)
266 std::error_code EC;
267 Iter.increment(EC);
268 if (EC) {
269 return EC;
274 EC = Iter->status(S);
277 return EC;
283 std::error_code &EC) {
284 return directory_iterator(std::make_shared<RealFSDirIter>(Dir, EC));
330 if (std::error_code EC = FS->setCurrentWorkingDirectory(Path))
331 return EC;
349 std::error_code EC;
350 CurrentDirIter = (*CurrentFS)->dir_begin(Path, EC);
351 if (EC && EC != errc::no_such_file_or_directory)
352 return EC;
362 std::error_code EC;
364 CurrentDirIter.increment(EC);
365 if (!EC && CurrentDirIter == directory_iterator())
366 EC = incrementFS();
367 return EC;
372 std::error_code EC = incrementDirIter(IsFirstTime);
373 if (EC || CurrentDirIter == directory_iterator()) {
375 return EC;
380 return EC; // name not seen before
387 std::error_code &EC)
389 CurrentDirIter = (*CurrentFS)->dir_begin(Path, EC);
390 EC = incrementImpl(true);
398 std::error_code &EC) {
400 std::make_shared<OverlayFSDirIterImpl>(Dir, *this, EC));
514 std::error_code EC = makeAbsolute(Path);
515 assert(!EC);
516 (void)EC;
587 std::error_code EC = FS.makeAbsolute(Path);
588 assert(!EC);
589 (void)EC;
665 std::error_code &EC) {
668 EC = Node.getError();
675 EC = make_error_code(llvm::errc::not_a_directory);
684 std::error_code EC = makeAbsolute(Path);
685 assert(!EC);
686 (void)EC;
780 std::error_code &EC);
910 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override{
913 EC = E.getError();
918 EC = S.getError();
922 EC = std::error_code(static_cast<int>(errc::not_a_directory),
929 *this, D->contents_begin(), D->contents_end(), EC));
1418 std::error_code EC = llvm::sys::fs::make_absolute(OverlayAbsDir);
1419 assert(!EC && "Overlay dir final path must be absolute");
1420 (void)EC;
1435 if (std::error_code EC = makeAbsolute(Path))
1436 return EC;
1757 RedirectingDirectoryEntry::iterator End, std::error_code &EC)
1766 EC = S.getError();
1787 std::error_code &EC)
1789 directory_iterator I = FS->dir_begin(Path, EC);
1790 if (!EC && I != directory_iterator()) {
1797 recursive_directory_iterator::increment(std::error_code &EC) {
1802 vfs::directory_iterator I = FS->dir_begin(State->top()->getName(), EC);
1803 if (EC)
1811 while (!State->empty() && State->top().increment(EC) == End)