[clang] [clang][modules] Lazily load by name lookups in module maps (PR #132853)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 26 09:30:56 PDT 2025


================
@@ -359,11 +359,11 @@ Module *HeaderSearch::lookupModule(StringRef ModuleName, StringRef SearchName,
     // checked
     DirectoryEntryRef NormalDir = *Dir.getDirRef();
     // Search for a module map file in this directory.
-    if (loadModuleMapFile(NormalDir, IsSystem,
-                          /*IsFramework*/false) == LMM_NewlyLoaded) {
+    if (parseModuleMapFile(NormalDir, IsSystem,
+                           /*IsFramework*/ false) == MMR_NewlyProcessed) {
       // We just loaded a module map file; check whether the module is
       // available now.
----------------
jansvoboda11 wrote:

```suggestion
      // We just parsed a module map file; check whether the module can be
      // loaded now.
```

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


More information about the cfe-commits mailing list