]> granicus.if.org Git - clang/commitdiff
Enable programmatic provisioning of virtual module.map files (instead of writing...
authorAxel Naumann <Axel.Naumann@cern.ch>
Tue, 2 Oct 2012 12:26:36 +0000 (12:26 +0000)
committerAxel Naumann <Axel.Naumann@cern.ch>
Tue, 2 Oct 2012 12:26:36 +0000 (12:26 +0000)
Opens up the wonders of clang::Modules to tools - though they remain as experimental as before.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165002 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/HeaderSearch.h

index 9687793d67f0f75f5738176007776baf668fbb7b..80a22f9c56d8f0a162288d58e6b2330eb49478ff 100644 (file)
@@ -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() {