[all-commits] [llvm/llvm-project] 27d9a5: [clang][modules] Infer framework modules in explic...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Feb 23 05:46:38 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 27d9a58407c44c8bb3fe7b94ff8d3b9bea25afc4
      https://github.com/llvm/llvm-project/commit/27d9a58407c44c8bb3fe7b94ff8d3b9bea25afc4
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

  Changed paths:
    M clang/include/clang/Lex/ModuleMap.h
    M clang/lib/Frontend/FrontendAction.cpp
    M clang/test/Modules/explicit-build-inferred.cpp

  Log Message:
  -----------
  [clang][modules] Infer framework modules in explicit builds

This patch enables inferring framework modules in explicit builds in all contexts. Until now, inferring framework modules only worked with `-fimplicit-module-maps` due to this block of code:

```
// HeaderSearch::loadFrameworkModule
  case LMM_InvalidModuleMap:
    // Try to infer a module map from the framework directory.
    if (HSOpts->ImplicitModuleMaps)
      ModMap.inferFrameworkModule(Dir, IsSystem, /*Parent=*/nullptr);
    break;
```

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D113880




More information about the All-commits mailing list