diff options
author | Axel Naumann <Axel.Naumann@cern.ch> | 2012-10-02 12:26:36 +0000 |
---|---|---|
committer | Axel Naumann <Axel.Naumann@cern.ch> | 2012-10-02 12:26:36 +0000 |
commit | 2bd39fd2decebc6b51f61fc1f4f35a0d973ff17a (patch) | |
tree | 7c50463e084cc5c868830f84ffe43c5ca8ff282e | |
parent | d9a25b3c1782783d991fe2a3627f1cf42c968115 (diff) | |
download | bcm5719-llvm-2bd39fd2decebc6b51f61fc1f4f35a0d973ff17a.tar.gz bcm5719-llvm-2bd39fd2decebc6b51f61fc1f4f35a0d973ff17a.zip |
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
-rw-r--r-- | clang/include/clang/Lex/HeaderSearch.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/include/clang/Lex/HeaderSearch.h b/clang/include/clang/Lex/HeaderSearch.h index 9687793d67f..80a22f9c56d 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() { |