Home | History | Annotate | Download | only in Basic

Lines Matching refs:Path

28 #include "llvm/Support/Path.h"
111 if (llvm::sys::path::is_separator(Filename[Filename.size() - 1]))
114 StringRef DirName = llvm::sys::path::parent_path(Filename);
115 // Use the current directory if file has no path component.
122 /// Add all ancestors of the given path (pointing to either a file or
124 void FileManager::addAncestorsAsVirtualDirs(StringRef Path) {
125 StringRef DirName = llvm::sys::path::parent_path(Path);
155 DirName != llvm::sys::path::root_path(DirName) &&
156 llvm::sys::path::is_separator(DirName.back()))
163 DirName.equals_lower(llvm::sys::path::root_name(DirName))) {
191 // There's no real directory at the given path.
199 // symlinked to another, for example) or the same path (on
256 // There's no real file at the given path.
286 // FIXME: this hack ensures that if we look up a file by a virtual path in
287 // the VFS that the getDir() will have the virtual path, even if we found
288 // the file by a 'real' path first. This is required in order to find a
388 bool FileManager::FixupRelativePath(SmallVectorImpl<char> &path) const {
389 StringRef pathRef(path.data(), path.size());
392 || llvm::sys::path::is_absolute(pathRef))
396 llvm::sys::path::append(NewPath, pathRef);
397 path = NewPath;
401 bool FileManager::makeAbsolutePath(SmallVectorImpl<char> &Path) const {
402 bool Changed = FixupRelativePath(Path);
404 if (!llvm::sys::path::is_absolute(StringRef(Path.data(), Path.size()))) {
405 llvm::sys::fs::make_absolute(Path);
456 /// getStatValue - Get the 'stat' information for the specified path,
458 /// if the path points to a virtual file or does not exist, or returns
461 bool FileManager::getStatValue(const char *Path, FileData &Data, bool isFile,
466 Path, Data, isFile, F,StatCache.get(), *FS);
468 SmallString<128> FilePath(Path);
475 bool FileManager::getNoncachedStatValue(StringRef Path,
477 SmallString<128> FilePath(Path);
539 llvm::sys::path::native(CanonicalNameBuf);
546 llvm::sys::path::remove_dots(CanonicalNameBuf, /* remove_dot_dot */ true);