]> granicus.if.org Git - clang/commit
When inferring a module for a framework, first determine whether that
authorDouglas Gregor <dgregor@apple.com>
Fri, 13 Jan 2012 22:31:52 +0000 (22:31 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 13 Jan 2012 22:31:52 +0000 (22:31 +0000)
commita8c6fea0234bc23de6106a84646dc049cf45e8c8
tree6462deec8e2e867cca99821b42e6d976f2be4bea
parentd9b859a74ecaede23a78d37f364498102ef418c9
When inferring a module for a framework, first determine whether that
framework is actually a subframework within a top-level framework. If
so, only infer a module for the top-level framework and then dig out
the appropriate submodule.

This helps us cope with an amusing subframeworks anti-pattern, where
one uses -F <framework>/Frameworks to get direct include access to the
subframeworks of a framework (which otherwise would not be
permitted).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148148 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/HeaderSearch.cpp
test/Modules/subframeworks.m