From: Axel Naumann Date: Tue, 2 Oct 2012 12:26:36 +0000 (+0000) Subject: Enable programmatic provisioning of virtual module.map files (instead of writing... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2bd39fd2decebc6b51f61fc1f4f35a0d973ff17a;p=platform%2Fupstream%2Fllvm.git Enable programmatic provisioning of virtual module.map files (instead of writing out actual module.map files). Opens up the wonders of clang::Modules to tools - though they remain as experimental as before. llvm-svn: 165002 --- diff --git a/clang/include/clang/Lex/HeaderSearch.h b/clang/include/clang/Lex/HeaderSearch.h index 9687793..80a22f9 100644 --- a/clang/include/clang/Lex/HeaderSearch.h +++ b/clang/include/clang/Lex/HeaderSearch.h @@ -281,6 +281,11 @@ public: /// \brief Retrieve the path to the module cache. StringRef getModuleCachePath() const { return ModuleCachePath; } + + /// \brief Consider modules when including files from this directory. + void setDirectoryHasModuleMap(const DirectoryEntry* Dir) { + DirectoryHasModuleMap[Dir] = true; + } /// \brief Forget everything we know about headers so far. void ClearFileInfo() {