Lines Matching defs:Path
13 #include "llvm/Support/Path.h"
34 static bool isCaseSensitivePath(StringRef Path) {
35 SmallString<256> TmpDest = Path, UpperDest, RealDest;
38 if (sys::fs::real_path(Path, TmpDest))
40 Path = TmpDest;
46 UpperDest = Path.upper();
47 if (!sys::fs::real_path(UpperDest, RealDest) && Path == RealDest)
59 SmallVectorImpl<char> &Path) {
60 StringRef SrcPath(Path.begin(), Path.size());
87 Path.swap(RealPath);
90 /// Make Path absolute.
91 static void makeAbsolute(SmallVectorImpl<char> &Path) {
93 sys::fs::make_absolute(Path);
96 sys::path::native(Path);
99 Path.erase(Path.begin(), sys::path::remove_leading_dotslash(
100 StringRef(Path.begin(), Path.size()))
263 llvm::ErrorOr<llvm::vfs::Status> status(const Twine &Path) override {
264 auto Result = FS->status(Path);
266 Collector->addFile(Path);
271 openFileForRead(const Twine &Path) override {
272 auto Result = FS->openFileForRead(Path);
274 Collector->addFile(Path);
283 std::error_code getRealPath(const Twine &Path,
285 auto EC = FS->getRealPath(Path, Output);
287 Collector->addFile(Path);
294 std::error_code isLocal(const Twine &Path, bool &Result) override {
295 return FS->isLocal(Path, Result);
302 std::error_code setCurrentWorkingDirectory(const llvm::Twine &Path) override {
303 return FS->setCurrentWorkingDirectory(Path);