[clang] [clang][modulemap] Lazily load module maps by header name (PR #181916)

Michael Spencer via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 18 16:00:34 PST 2026


================
@@ -1698,12 +1838,9 @@ HeaderSearch::findResolvedModulesForHeader(FileEntryRef File) const {
   return ModMap.findResolvedModulesForHeader(File);
 }
 
-static bool suggestModule(HeaderSearch &HS, FileEntryRef File,
-                          Module *RequestingModule,
+static bool suggestModule(HeaderSearch &HS, ModuleMap::KnownHeader Module,
----------------
Bigcheese wrote:

Yeah, originally there were only the 2 callers and it's a static function so it made sense to just change the API rather than add an extra `Imp` function.

https://github.com/llvm/llvm-project/pull/181916


More information about the cfe-commits mailing list