Lines Matching refs:Path
35 ErrorOr<vfs::Status> status(const Twine &Path) override { in status() argument
37 FilesAndDirs.find(Path.str()); in status()
43 openFileForRead(const Twine &Path) override { in openFileForRead() argument
50 std::string Path; member
52 if (Path.size() < S.size() && S.find(Path) == 0) { in isInPath()
54 if (LastSep == Path.size() || LastSep == Path.size()-1) in isInPath()
62 Path(_Path.str()) { in DirIterImpl()
90 void addEntry(StringRef Path, const vfs::Status &Status) { in addEntry() argument
91 FilesAndDirs[Path] = Status; in addEntry()
94 void addRegularFile(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) { in addRegularFile() argument
95 vfs::Status S(Path, Path, UniqueID(FSID, FileID++), sys::TimeValue::now(), in addRegularFile()
97 addEntry(Path, S); in addRegularFile()
100 void addDirectory(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) { in addDirectory() argument
101 vfs::Status S(Path, Path, UniqueID(FSID, FileID++), sys::TimeValue::now(), in addDirectory()
103 addEntry(Path, S); in addDirectory()
106 void addSymlink(StringRef Path) { in addSymlink() argument
107 vfs::Status S(Path, Path, UniqueID(FSID, FileID++), sys::TimeValue::now(), in addSymlink()
109 addEntry(Path, S); in addSymlink()
263 SmallString<128> Path; member
267 EC = llvm::sys::fs::createUniqueDirectory(Name, Path); in ScopedDir()
269 Path = Name.str(); in ScopedDir()
270 EC = llvm::sys::fs::create_directory(Twine(Path)); in ScopedDir()
273 Path = ""; in ScopedDir()
277 if (Path != "") in ~ScopedDir()
278 EXPECT_FALSE(llvm::sys::fs::remove(Path.str())); in ~ScopedDir()
280 operator StringRef() { return Path.str(); } in operator StringRef()