]> granicus.if.org Git - clang/commit
Introduce inferred framework modules into the module map file,
authorDouglas Gregor <dgregor@apple.com>
Tue, 6 Nov 2012 19:39:40 +0000 (19:39 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 6 Nov 2012 19:39:40 +0000 (19:39 +0000)
commit82e52377bd76ed71e8c09edc5f2f452e388b16ad
treed948502e6bf97f1cbc452f410e5cdea4d53797bf
parentf64231e9f47234826fbcdc3b4fe0370ef6c9961d
Introduce inferred framework modules into the module map file,
allowing a module map to be placed one level above the '.framework'
directories to specify that all .frameworks within that directory can
be inferred as framework modules. One can also specifically exclude
frameworks known not to work.

This makes explicit (and more restricted) behavior modules have had
"forever", where *any* .framework was assumed to be able to be built
as a module. That's not necessarily true, so we white-list directories
(with exclusions) when those directories have been audited.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167482 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticLexKinds.td
include/clang/Lex/ModuleMap.h
lib/Lex/HeaderSearch.cpp
lib/Lex/ModuleMap.cpp
test/Index/Inputs/Frameworks/module.map [new file with mode: 0644]
test/Modules/Inputs/NotAModule.framework/Headers/NotAModule.h [new file with mode: 0644]
test/Modules/Inputs/module.map
test/Modules/inferred-frameworks.m [new file with mode: 0644]