diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-11-29 19:06:37 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-11-29 19:06:37 +0000 |
commit | f9e357d8a66c606a86a6e1aef678898b8843bd30 (patch) | |
tree | 7ab77c3935faa49ea645bd0de570bbe875e5d8c9 /include/clang/Lex/ModuleMap.h | |
parent | 933e7a61da12400d8971890719cb03d68c1b02eb (diff) |
Teach the module import mechanism how to rebuild modules expressed via
module map, rather than assuming that there is an umbrella
header. This allows us to automatically build umbrella-less modules.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/ModuleMap.h')
-rw-r--r-- | include/clang/Lex/ModuleMap.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/clang/Lex/ModuleMap.h b/include/clang/Lex/ModuleMap.h index d38bbe672b..4f89f1e728 100644 --- a/include/clang/Lex/ModuleMap.h +++ b/include/clang/Lex/ModuleMap.h @@ -166,7 +166,16 @@ public: /// framework directory. Module *inferFrameworkModule(StringRef ModuleName, const DirectoryEntry *FrameworkDir); - + + /// \brief Retrieve the module map file containing the definition of the given + /// module. + /// + /// \param Module The module whose module map file will be returned, if known. + /// + /// \returns The file entry for the module map file containing the given + /// module, or NULL if the module definition was inferred. + const FileEntry *getContainingModuleMapFile(ModuleMap::Module *Module); + /// \brief Parse the given module map file, and record any modules we /// encounter. /// |