Support for modular module-map-files
This patch is the first step to make module-map-files modular (instead of requiring a single "module.map"-file per include directory). This step adds a new "extern module" declaration that enables module-map-files to reference one another along with a very basic implementation. The next steps are: * Combine this with the use-declaration (from http://llvm-reviews.chandlerc.com/D1546) in order to only load module map files required for a specific compilation. * Add an additional flag to start with a specific module-map-file (instead of requiring there to be at least one "module.map"). Review: http://llvm-reviews.chandlerc.com/D1637 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190497 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/Modules.rst 4 additions, 0 deletionsdocs/Modules.rst
- include/clang/Basic/DiagnosticLexKinds.td 1 addition, 0 deletionsinclude/clang/Basic/DiagnosticLexKinds.td
- lib/Lex/ModuleMap.cpp 57 additions, 2 deletionslib/Lex/ModuleMap.cpp
- test/Modules/Inputs/modular_maps/a.h 4 additions, 0 deletionstest/Modules/Inputs/modular_maps/a.h
- test/Modules/Inputs/modular_maps/b.h 4 additions, 0 deletionstest/Modules/Inputs/modular_maps/b.h
- test/Modules/Inputs/modular_maps/module.map 6 additions, 0 deletionstest/Modules/Inputs/modular_maps/module.map
- test/Modules/Inputs/modular_maps/moduleb.map 3 additions, 0 deletionstest/Modules/Inputs/modular_maps/moduleb.map
- test/Modules/modular_maps.cpp 6 additions, 0 deletionstest/Modules/modular_maps.cpp
Loading
Please register or sign in to comment