Lines Matching defs:Dir
236 const DirectoryEntry *Dir, bool IsSystemHeaderDir,
240 HS.hasModuleMap(FileName, Dir, IsSystemHeaderDir);
251 HS.hasModuleMap(FileName, Dir, IsSystemHeaderDir))
371 const DirectoryEntry *Dir = FileMgr.getDirectory(DirName);
372 if (!Dir)
379 TopFrameworkDir = Dir;
411 // Otherwise, construct the path to this framework dir.
430 // If the framework dir doesn't exist, we fail.
431 const DirectoryEntry *Dir = FileMgr.getDirectory(FrameworkName.str());
432 if (!Dir) return nullptr;
490 const DirectoryEntry *Dir = FileMgr.getDirectory(FrameworkPath);
491 if (!Dir)
733 // This file is a system header or C++ unfriendly if the dir is.
868 // If the framework dir doesn't exist, we fail.
869 const DirectoryEntry *Dir = FileMgr.getDirectory(FrameworkName.str());
870 if (!Dir) return nullptr;
874 CacheLookup.getValue().Directory = Dir;
1106 const DirectoryEntry *Dir = FileMgr.getDirectory(DirName);
1107 if (!Dir)
1111 switch (loadModuleMapFile(Dir, IsSystem, /*IsFramework*/false)) {
1126 if (Dir == Root)
1131 FixUpDirectories.push_back(Dir);
1175 const DirectoryEntry *Dir = File->getDir();
1176 auto KnownDir = DirectoryHasModuleMap.find(Dir);
1181 DirectoryHasModuleMap[Dir] = false;
1187 getPrivateModuleMap(File->getName(), Dir, FileMgr)) {
1189 DirectoryHasModuleMap[Dir] = false;
1195 DirectoryHasModuleMap[Dir] = true;
1200 HeaderSearch::lookupModuleMapFile(const DirectoryEntry *Dir, bool IsFramework) {
1203 SmallString<128> ModuleMapFileName(Dir->getName());
1211 ModuleMapFileName = Dir->getName();
1217 const DirectoryEntry *Dir,
1223 switch (loadModuleMapFile(Dir, IsSystem, /*IsFramework*/true)) {
1237 return ModMap.inferFrameworkModule(Name, Dir, IsSystem, /*Parent=*/nullptr);
1244 if (const DirectoryEntry *Dir = FileMgr.getDirectory(DirName))
1245 return loadModuleMapFile(Dir, IsSystem, IsFramework);
1251 HeaderSearch::loadModuleMapFile(const DirectoryEntry *Dir, bool IsSystem,
1253 auto KnownDir = DirectoryHasModuleMap.find(Dir);
1257 if (const FileEntry *ModuleMapFile = lookupModuleMapFile(Dir, IsFramework)) {
1259 // Add Dir explicitly in case ModuleMapFile is in a subdirectory.
1261 // ^Dir ^ModuleMapFile
1263 DirectoryHasModuleMap[Dir] = true;
1282 for (llvm::sys::fs::directory_iterator Dir(DirNative.str(), EC), DirEnd;
1283 Dir != DirEnd && !EC; Dir.increment(EC)) {
1284 if (llvm::sys::path::extension(Dir->path()) != ".framework")
1287 const DirectoryEntry *FrameworkDir = FileMgr.getDirectory(Dir->path());
1292 loadFrameworkModule(llvm::sys::path::stem(Dir->path()), FrameworkDir,
1340 for (llvm::sys::fs::directory_iterator Dir(DirNative.str(), EC), DirEnd;
1341 Dir != DirEnd && !EC; Dir.increment(EC)) {
1342 loadModuleMapFile(Dir->path(), SearchDir.isSystemHeaderDirectory(),