Lines Matching refs:EC

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