Lines Matching refs:Dir
148 auto *Dir =
150 if (!Dir)
152 auto DirName = FileMgr.getCanonicalName(Dir);
254 StringRef FileName, const DirectoryEntry *Dir, bool IsSystemHeaderDir,
263 if (!findUsableModuleForHeader(File, Dir ? Dir : File->getDir(),
383 const DirectoryEntry *Dir = FileMgr.getDirectory(DirName);
384 if (!Dir)
391 TopFrameworkDir = Dir;
420 // Otherwise, construct the path to this framework dir.
439 // If the framework dir doesn't exist, we fail.
440 const DirectoryEntry *Dir = FileMgr.getDirectory(FrameworkName);
441 if (!Dir) return nullptr;
499 const DirectoryEntry *Dir = FileMgr.getDirectory(FrameworkPath);
500 if (!Dir)
727 // This file is a system header or C++ unfriendly if the dir is.
863 // If the framework dir doesn't exist, we fail.
864 const DirectoryEntry *Dir = FileMgr.getDirectory(FrameworkName);
865 if (!Dir) return nullptr;
869 CacheLookup.second.Directory = Dir;
1108 const DirectoryEntry *Dir = FileMgr.getDirectory(DirName);
1109 if (!Dir)
1113 switch (loadModuleMapFile(Dir, IsSystem,
1114 llvm::sys::path::extension(Dir->getName()) ==
1130 if (Dir == Root)
1135 FixUpDirectories.push_back(Dir);
1202 const DirectoryEntry *Dir = nullptr;
1204 Dir = FileMgr.getDirectory(".");
1206 Dir = File->getDir();
1207 StringRef DirName(Dir->getName());
1211 Dir = FileMgr.getDirectory(DirName);
1214 assert(Dir && "parent must exist");
1218 switch (loadModuleMapFileImpl(File, IsSystem, Dir)) {
1231 const DirectoryEntry *Dir) {
1240 if (ModMap.parseModuleMapFile(File, IsSystem, Dir)) {
1247 if (ModMap.parseModuleMapFile(PMMFile, IsSystem, Dir)) {
1258 HeaderSearch::lookupModuleMapFile(const DirectoryEntry *Dir, bool IsFramework) {
1263 SmallString<128> ModuleMapFileName(Dir->getName());
1271 ModuleMapFileName = Dir->getName();
1277 const DirectoryEntry *Dir,
1283 switch (loadModuleMapFile(Dir, IsSystem, /*IsFramework*/true)) {
1287 ModMap.inferFrameworkModule(Dir, IsSystem, /*Parent=*/nullptr);
1305 if (const DirectoryEntry *Dir = FileMgr.getDirectory(DirName))
1306 return loadModuleMapFile(Dir, IsSystem, IsFramework);
1312 HeaderSearch::loadModuleMapFile(const DirectoryEntry *Dir, bool IsSystem,
1314 auto KnownDir = DirectoryHasModuleMap.find(Dir);
1318 if (const FileEntry *ModuleMapFile = lookupModuleMapFile(Dir, IsFramework)) {
1320 loadModuleMapFileImpl(ModuleMapFile, IsSystem, Dir);
1321 // Add Dir explicitly in case ModuleMapFile is in a subdirectory.
1323 // ^Dir ^ModuleMapFile
1325 DirectoryHasModuleMap[Dir] = true;
1327 DirectoryHasModuleMap[Dir] = false;
1347 for (llvm::sys::fs::directory_iterator Dir(DirNative, EC), DirEnd;
1348 Dir != DirEnd && !EC; Dir.increment(EC)) {
1349 if (llvm::sys::path::extension(Dir->path()) != ".framework")
1353 FileMgr.getDirectory(Dir->path());
1358 loadFrameworkModule(llvm::sys::path::stem(Dir->path()), FrameworkDir,
1414 for (llvm::sys::fs::directory_iterator Dir(DirNative, EC), DirEnd;
1415 Dir != DirEnd && !EC; Dir.increment(EC)) {
1416 bool IsFramework = llvm::sys::path::extension(Dir->path()) == ".framework";
1418 loadModuleMapFile(Dir->path(), SearchDir.isSystemHeaderDirectory(),