diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Lex/HeaderSearch.h | 14 | ||||
-rw-r--r-- | include/clang/Lex/ModuleMap.h | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/include/clang/Lex/HeaderSearch.h b/include/clang/Lex/HeaderSearch.h index 07cdc55180..21654c16cc 100644 --- a/include/clang/Lex/HeaderSearch.h +++ b/include/clang/Lex/HeaderSearch.h @@ -389,6 +389,20 @@ public: /// /// \returns The module, if found; otherwise, null. ModuleMap::Module *getModule(StringRef Name, bool AllowSearch = true); + + /// \brief Retrieve a module with the given name, which may be part of the + /// given framework. + /// + /// \param Name The name of the module to retrieve. + /// + /// \param Dir The framework directory (e.g., ModuleName.framework). + /// + /// \returns The module, if found; otherwise, null. + ModuleMap::Module *getFrameworkModule(StringRef Name, + const DirectoryEntry *Dir); + + /// \brief Retrieve the module map. + ModuleMap &getModuleMap() { return ModMap; } unsigned header_file_size() const { return FileInfo.size(); } diff --git a/include/clang/Lex/ModuleMap.h b/include/clang/Lex/ModuleMap.h index 74cca6b881..e9bf1b35c1 100644 --- a/include/clang/Lex/ModuleMap.h +++ b/include/clang/Lex/ModuleMap.h @@ -137,6 +137,11 @@ public: /// \returns The named module, if known; otherwise, returns null. Module *findModule(StringRef Name); + /// \brief Infer the contents of a framework module map from the given + /// framework directory. + Module *inferFrameworkModule(StringRef ModuleName, + const DirectoryEntry *FrameworkDir); + /// \brief Parse the given module map file, and record any modules we /// encounter. /// |