Lines Matching refs:DirName
77 StringRef DirName = llvm::sys::path::parent_path(Filename); in getDirectoryFromFile() local
79 if (DirName.empty()) in getDirectoryFromFile()
80 DirName = "."; in getDirectoryFromFile()
82 return FileMgr.getDirectoryRef(DirName, CacheFailure); in getDirectoryFromFile()
104 StringRef DirName = llvm::sys::path::parent_path(Path); in addAncestorsAsVirtualDirs() local
105 if (DirName.empty()) in addAncestorsAsVirtualDirs()
106 DirName = "."; in addAncestorsAsVirtualDirs()
109 {DirName, std::errc::no_such_file_or_directory}).first; in addAncestorsAsVirtualDirs()
121 getStatValue(DirName, Status, false, nullptr /*directory lookup*/); in addAncestorsAsVirtualDirs()
135 addAncestorsAsVirtualDirs(DirName); in addAncestorsAsVirtualDirs()
139 FileManager::getDirectoryRef(StringRef DirName, bool CacheFailure) { in getDirectoryRef() argument
143 if (DirName.size() > 1 && in getDirectoryRef()
144 DirName != llvm::sys::path::root_path(DirName) && in getDirectoryRef()
145 llvm::sys::path::is_separator(DirName.back())) in getDirectoryRef()
146 DirName = DirName.substr(0, DirName.size()-1); in getDirectoryRef()
151 if (DirName.size() > 1 && DirName.back() == ':' && in getDirectoryRef()
152 DirName.equals_insensitive(llvm::sys::path::root_name(DirName))) { in getDirectoryRef()
153 DirNameStr = DirName.str() + '.'; in getDirectoryRef()
154 DirName = *DirNameStr; in getDirectoryRef()
163 SeenDirEntries.insert({DirName, std::errc::no_such_file_or_directory}); in getDirectoryRef()
188 SeenDirEntries.erase(DirName); in getDirectoryRef()
200 FileManager::getDirectory(StringRef DirName, bool CacheFailure) { in getDirectory() argument
201 auto Result = getDirectoryRef(DirName, CacheFailure); in getDirectory()