Lines Matching refs:Path
26 #include "llvm/Support/Path.h"
114 if (llvm::sys::path::is_separator(Filename[Filename.size() - 1]))
117 StringRef DirName = llvm::sys::path::parent_path(Filename);
118 // Use the current directory if file has no path component.
125 /// Add all ancestors of the given path (pointing to either a file or
127 void FileManager::addAncestorsAsVirtualDirs(StringRef Path) {
128 StringRef DirName = llvm::sys::path::parent_path(Path);
158 DirName != llvm::sys::path::root_path(DirName) &&
159 llvm::sys::path::is_separator(DirName.back()))
166 DirName.equals_lower(llvm::sys::path::root_name(DirName))) {
194 // There's no real directory at the given path.
202 // symlinked to another, for example) or the same path (on
259 // There's no real file at the given path.
275 // FIXME: this hack ensures that if we look up a file by a virtual path in
276 // the VFS that the getDir() will have the virtual path, even if we found
277 // the file by a 'real' path first. This is required in order to find a
370 void FileManager::FixupRelativePath(SmallVectorImpl<char> &path) const {
371 StringRef pathRef(path.data(), path.size());
374 || llvm::sys::path::is_absolute(pathRef))
378 llvm::sys::path::append(NewPath, pathRef);
379 path = NewPath;
446 /// getStatValue - Get the 'stat' information for the specified path,
448 /// if the path points to a virtual file or does not exist, or returns
451 bool FileManager::getStatValue(const char *Path, FileData &Data, bool isFile,
456 return FileSystemStatCache::get(Path, Data, isFile, F,StatCache.get(), *FS);
458 SmallString<128> FilePath(Path);
465 bool FileManager::getNoncachedStatValue(StringRef Path,
467 SmallString<128> FilePath(Path);