• Home
  • Raw
  • Download

Lines Matching refs:EC

74   if (std::error_code EC = openFileForRead(Name, F))  in getBufferForFile()  local
75 return EC; in getBufferForFile()
77 std::error_code EC = in getBufferForFile() local
79 return EC; in getBufferForFile()
114 if (std::error_code EC = sys::fs::status(FD, RealStatus)) in status() local
115 return EC; in status()
132 if (std::error_code EC = BufferOrErr.getError()) in getBuffer() local
133 return EC; in getBuffer()
166 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
172 if (std::error_code EC = sys::fs::status(Path, RealStatus)) in status() local
173 return EC; in status()
182 if (std::error_code EC = sys::fs::openFileForRead(Name, FD)) in openFileForRead() local
183 return EC; in openFileForRead()
199 RealFSDirIter(const Twine &_Path, std::error_code &EC) in RealFSDirIter() argument
200 : Path(_Path.str()), Iter(Path, EC) { in RealFSDirIter()
201 if (!EC && Iter != llvm::sys::fs::directory_iterator()) { in RealFSDirIter()
203 EC = Iter->status(S); in RealFSDirIter()
204 if (!EC) { in RealFSDirIter()
212 std::error_code EC; in increment() local
213 Iter.increment(EC); in increment()
214 if (EC) { in increment()
215 return EC; in increment()
220 EC = Iter->status(S); in increment()
224 return EC; in increment()
230 std::error_code &EC) { in dir_begin() argument
231 return directory_iterator(std::make_shared<RealFSDirIter>(Dir, EC)); in dir_begin()
260 std::error_code EC = (*I)->openFileForRead(Path, Result); in openFileForRead() local
261 if (!EC || EC != llvm::errc::no_such_file_or_directory) in openFileForRead()
262 return EC; in openFileForRead()
281 std::error_code EC; in incrementFS() local
282 CurrentDirIter = (*CurrentFS)->dir_begin(Path, EC); in incrementFS()
283 if (EC && EC != errc::no_such_file_or_directory) in incrementFS()
284 return EC; in incrementFS()
294 std::error_code EC; in incrementDirIter() local
296 CurrentDirIter.increment(EC); in incrementDirIter()
297 if (!EC && CurrentDirIter == directory_iterator()) in incrementDirIter()
298 EC = incrementFS(); in incrementDirIter()
299 return EC; in incrementDirIter()
304 std::error_code EC = incrementDirIter(IsFirstTime); in incrementImpl() local
305 if (EC || CurrentDirIter == directory_iterator()) { in incrementImpl()
307 return EC; in incrementImpl()
312 return EC; // name not seen before in incrementImpl()
319 std::error_code &EC) in OverlayFSDirIterImpl() argument
321 CurrentDirIter = (*CurrentFS)->dir_begin(Path, EC); in OverlayFSDirIterImpl()
322 EC = incrementImpl(true); in OverlayFSDirIterImpl()
330 std::error_code &EC) { in dir_begin() argument
332 std::make_shared<OverlayFSDirIterImpl>(Dir, *this, EC)); in dir_begin()
420 DirectoryEntry::iterator End, std::error_code &EC);
528 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override{ in dir_begin() argument
531 EC = E.getError(); in dir_begin()
536 EC = S.getError(); in dir_begin()
540 EC = std::error_code(static_cast<int>(errc::not_a_directory), in dir_begin()
547 *this, D->contents_begin(), D->contents_end(), EC)); in dir_begin()
898 if (std::error_code EC = sys::fs::make_absolute(Path)) in lookupPath() local
899 return EC; in lookupPath()
985 if (std::error_code EC = in openFileForRead() local
987 return EC; in openFileForRead()
1149 std::error_code &EC) in VFSFromYamlDirIterImpl() argument
1158 EC = S.getError(); in VFSFromYamlDirIterImpl()
1179 std::error_code &EC) in recursive_directory_iterator() argument
1181 directory_iterator I = FS->dir_begin(Path, EC); in recursive_directory_iterator()
1182 if (!EC && I != directory_iterator()) { in recursive_directory_iterator()
1189 recursive_directory_iterator::increment(std::error_code &EC) { in increment() argument
1194 vfs::directory_iterator I = FS->dir_begin(State->top()->getName(), EC); in increment()
1195 if (EC) in increment()
1203 while (!State->empty() && State->top().increment(EC) == End) in increment()