Home | History | Annotate | Download | only in Basic

Lines Matching refs:EC

146     if (std::error_code EC = sys::fs::status(FD, RealStatus))
147 return EC;
184 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
193 if (std::error_code EC = sys::fs::status(Path, RealStatus))
194 return EC;
201 if (std::error_code EC = sys::fs::openFileForRead(Name, FD))
202 return EC;
208 if (std::error_code EC = llvm::sys::fs::current_path(Dir))
209 return EC;
238 RealFSDirIter(const Twine &_Path, std::error_code &EC)
239 : Path(_Path.str()), Iter(Path, EC) {
240 if (!EC && Iter != llvm::sys::fs::directory_iterator()) {
242 EC = Iter->status(S);
243 if (!EC)
249 std::error_code EC;
250 Iter.increment(EC);
251 if (EC) {
252 return EC;
257 EC = Iter->status(S);
260 return EC;
266 std::error_code &EC) {
267 return directory_iterator(std::make_shared<RealFSDirIter>(Dir, EC));
313 if (std::error_code EC = FS->setCurrentWorkingDirectory(Path))
314 return EC;
332 std::error_code EC;
333 CurrentDirIter = (*CurrentFS)->dir_begin(Path, EC);
334 if (EC && EC != errc::no_such_file_or_directory)
335 return EC;
345 std::error_code EC;
347 CurrentDirIter.increment(EC);
348 if (!EC && CurrentDirIter == directory_iterator())
349 EC = incrementFS();
350 return EC;
355 std::error_code EC = incrementDirIter(IsFirstTime);
356 if (EC || CurrentDirIter == directory_iterator()) {
358 return EC;
363 return EC; // name not seen before
370 std::error_code &EC)
372 CurrentDirIter = (*CurrentFS)->dir_begin(Path, EC);
373 EC = incrementImpl(true);
381 std::error_code &EC) {
383 std::make_shared<OverlayFSDirIterImpl>(Dir, *this, EC));
497 std::error_code EC = makeAbsolute(Path);
498 assert(!EC);
499 (void)EC;
570 std::error_code EC = FS.makeAbsolute(Path);
571 assert(!EC);
572 (void)EC;
648 std::error_code &EC) {
651 EC = Node.getError();
658 EC = make_error_code(llvm::errc::not_a_directory);
739 std::error_code &EC);
850 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override{
853 EC = E.getError();
858 EC = S.getError();
862 EC = std::error_code(static_cast<int>(errc::not_a_directory),
869 *this, D->contents_begin(), D->contents_end(), EC));
1221 if (std::error_code EC = makeAbsolute(Path))
1222 return EC;
1499 RedirectingDirectoryEntry::iterator End, std::error_code &EC)
1508 EC = S.getError();
1529 std::error_code &EC)
1531 directory_iterator I = FS->dir_begin(Path, EC);
1532 if (!EC && I != directory_iterator()) {
1539 recursive_directory_iterator::increment(std::error_code &EC) {
1544 vfs::directory_iterator I = FS->dir_begin(State->top()->getName(), EC);
1545 if (EC)
1553 while (!State->empty() && State->top().increment(EC) == End)