Lines Matching refs:Dir
231 auto tryAPINotes = [&](DirectoryEntryRef Dir, bool WantPublic) { in getCurrentModuleAPINotes() argument
232 if (auto File = findAPINotesFile(Dir, ModuleName, WantPublic)) { in getCurrentModuleAPINotes()
240 if (auto File = findAPINotesFile(Dir, ExportedModuleName, WantPublic)) in getCurrentModuleAPINotes()
362 OptionalDirectoryEntryRef Dir = File->getDir(); in findAPINotes() local
370 auto Known = Readers.find(*Dir); in findAPINotes()
378 DirsVisited.insert(*Dir); in findAPINotes()
379 Dir = Known->second.get<DirectoryEntryRef>(); in findAPINotes()
390 StringRef Path = Dir->getName(); in findAPINotes()
405 Readers[*Dir] = nullptr; in findAPINotes()
413 Dir = *PublicDir; in findAPINotes()
416 Dir = *PrivateDir; in findAPINotes()
421 if (auto Reader = Readers[*Dir].dyn_cast<APINotesReader *>()) in findAPINotes()
427 llvm::SmallString<128> APINotesPath(Dir->getName()); in findAPINotes()
434 if (!loadAPINotes(*Dir, *APINotesFile)) { in findAPINotes()
436 if (auto Reader = Readers[*Dir].dyn_cast<APINotesReader *>()) in findAPINotes()
444 if (!DirsVisited.insert(*Dir)) { in findAPINotes()
445 Dir = std::nullopt; in findAPINotes()
453 Dir = ParentPath.empty() ? std::nullopt in findAPINotes()
455 } while (Dir); in findAPINotes()
461 Readers[Visited] = Dir ? ReaderEntry(*Dir) : ReaderEntry(); in findAPINotes()