From: Douglas Gregor Date: Fri, 13 Jan 2012 01:20:43 +0000 (+0000) Subject: When inferring a module map for a framework, add the 'private' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d30630f86592524f087f7bc7c889555a9293d7c8;p=clang When inferring a module map for a framework, add the 'private' requirement to headers under PrivateHeaders. We don't want to build them as part of the module (yet). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148082 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/ModuleMap.cpp b/lib/Lex/ModuleMap.cpp index 55fa50809a..b74a74da46 100644 --- a/lib/Lex/ModuleMap.cpp +++ b/lib/Lex/ModuleMap.cpp @@ -350,6 +350,7 @@ ModuleMap::inferFrameworkModule(StringRef ModuleName, /*IsFramework=*/false, /*IsExplicit=*/true).first; setUmbrellaDir(Private, Dir); + Private->addRequirement("private", LangOpts); Private->InferSubmodules = true; Private->InferExplicitSubmodules = true; Private->InferExportWildcard = true;