Home | History | Annotate | Download | only in Basic

Lines Matching defs:DirName

114   StringRef DirName = llvm::sys::path::parent_path(Filename);
116 if (DirName.empty())
117 DirName = ".";
119 return FileMgr.getDirectory(DirName, CacheFailure);
125 StringRef DirName = llvm::sys::path::parent_path(Path);
126 if (DirName.empty())
130 *SeenDirEntries.insert(std::make_pair(DirName, nullptr)).first;
133 // at the same time. Therefore, if DirName is already in the cache,
146 addAncestorsAsVirtualDirs(DirName);
149 const DirectoryEntry *FileManager::getDirectory(StringRef DirName,
154 if (DirName.size() > 1 &&
155 DirName != llvm::sys::path::root_path(DirName) &&
156 llvm::sys::path::is_separator(DirName.back()))
157 DirName = DirName.substr(0, DirName.size()-1);
162 if (DirName.size() > 1 && DirName.back() == ':' &&
163 DirName.equals_lower(llvm::sys::path::root_name(DirName))) {
164 DirNameStr = DirName.str() + '.';
165 DirName = DirNameStr;
171 *SeenDirEntries.insert(std::make_pair(DirName, nullptr)).first;
193 SeenDirEntries.erase(DirName);