[cfe-commits] r165002 - /cfe/trunk/include/clang/Lex/HeaderSearch.h
Axel Naumann
Axel.Naumann at cern.ch
Tue Oct 2 05:26:36 PDT 2012
Author: axel
Date: Tue Oct 2 07:26:36 2012
New Revision: 165002
URL: http://llvm.org/viewvc/llvm-project?rev=165002&view=rev
Log:
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.
Modified:
cfe/trunk/include/clang/Lex/HeaderSearch.h
Modified: cfe/trunk/include/clang/Lex/HeaderSearch.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/HeaderSearch.h?rev=165002&r1=165001&r2=165002&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/HeaderSearch.h (original)
+++ cfe/trunk/include/clang/Lex/HeaderSearch.h Tue Oct 2 07:26:36 2012
@@ -281,6 +281,11 @@
/// \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() {
More information about the cfe-commits
mailing list