Lines Matching refs:Path
163 ErrorOr<Status> status(const Twine &Path) override;
164 std::error_code openFileForRead(const Twine &Path,
170 ErrorOr<Status> RealFileSystem::status(const Twine &Path) { in status() argument
172 if (std::error_code EC = sys::fs::status(Path, RealStatus)) in status()
175 Result.setName(Path.str()); in status()
196 std::string Path; member in __anon0ae46cf00311::RealFSDirIter
200 : Path(_Path.str()), Iter(Path, EC) { in RealFSDirIter()
245 ErrorOr<Status> OverlayFileSystem::status(const Twine &Path) { in status() argument
248 ErrorOr<Status> Status = (*I)->status(Path); in status()
256 OverlayFileSystem::openFileForRead(const llvm::Twine &Path, in openFileForRead() argument
260 std::error_code EC = (*I)->openFileForRead(Path, Result); in openFileForRead()
272 std::string Path; member in __anon0ae46cf00411::OverlayFSDirIterImpl
282 CurrentDirIter = (*CurrentFS)->dir_begin(Path, EC); in incrementFS()
318 OverlayFSDirIterImpl(const Twine &Path, OverlayFileSystem &FS, in OverlayFSDirIterImpl() argument
320 : Overlays(FS), Path(Path.str()), CurrentFS(Overlays.overlays_begin()) { in OverlayFSDirIterImpl()
321 CurrentDirIter = (*CurrentFS)->dir_begin(Path, EC); in OverlayFSDirIterImpl()
418 VFSFromYamlDirIterImpl(const Twine &Path, VFSFromYAML &FS,
502 ErrorOr<Entry *> lookupPath(const Twine &Path);
510 ErrorOr<Status> status(const Twine &Path, Entry *E);
524 ErrorOr<Status> status(const Twine &Path) override;
525 std::error_code openFileForRead(const Twine &Path,
894 SmallString<256> Path; in lookupPath() local
895 Path_.toVector(Path); in lookupPath()
898 if (std::error_code EC = sys::fs::make_absolute(Path)) in lookupPath()
901 if (Path.empty()) in lookupPath()
904 sys::path::const_iterator Start = sys::path::begin(Path); in lookupPath()
905 sys::path::const_iterator End = sys::path::end(Path); in lookupPath()
948 ErrorOr<Status> VFSFromYAML::status(const Twine &Path, Entry *E) { in status() argument
950 std::string PathStr(Path.str()); in status()
967 ErrorOr<Status> VFSFromYAML::status(const Twine &Path) { in status() argument
968 ErrorOr<Entry *> Result = lookupPath(Path); in status()
971 return status(Path, *Result); in status()
975 VFSFromYAML::openFileForRead(const Twine &Path, in openFileForRead() argument
977 ErrorOr<Entry *> E = lookupPath(Path); in openFileForRead()
990 Result->setName(Path.str()); in openFileForRead()
1011 static bool pathHasTraversal(StringRef Path) { in pathHasTraversal() argument
1013 for (StringRef Comp : llvm::make_range(path::begin(Path), path::end(Path))) in pathHasTraversal()
1033 bool containedIn(StringRef Parent, StringRef Path);
1034 StringRef containedPart(StringRef Parent, StringRef Path);
1035 void startDirectory(StringRef Path);
1045 bool JSONWriter::containedIn(StringRef Parent, StringRef Path) { in containedIn() argument
1049 for (auto IChild = path::begin(Path), EChild = path::end(Path); in containedIn()
1058 StringRef JSONWriter::containedPart(StringRef Parent, StringRef Path) { in containedPart() argument
1060 assert(containedIn(Parent, Path)); in containedPart()
1061 return Path.slice(Parent.size() + 1, StringRef::npos); in containedPart()
1064 void JSONWriter::startDirectory(StringRef Path) { in startDirectory() argument
1066 DirStack.empty() ? Path : containedPart(DirStack.back(), Path); in startDirectory()
1067 DirStack.push_back(Path); in startDirectory()
1178 const Twine &Path, in recursive_directory_iterator() argument
1181 directory_iterator I = FS->dir_begin(Path, EC); in recursive_directory_iterator()