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