[Modules] Find PrivateHeaders when looking into subframeworks
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 21 Mar 2017 16:43:51 +0000 (16:43 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Tue, 21 Mar 2017 16:43:51 +0000 (16:43 +0000)
commit08ebd61a80b3a0c68675a75bdff984fd2b7c6b39
tree96cfa4bf1bec1f7c03cf0ee5a45d032c91563186
parent5af82a7ae1eea8477be87bb9003aee5583003562
[Modules] Find PrivateHeaders when looking into subframeworks

Fix the current parsing of subframeworks in modulemaps to lookup for
headers based on whether they are frameworks.

rdar://problem/30563982

llvm-svn: 298391
12 files changed:
clang/lib/Lex/ModuleMap.cpp
clang/test/Modules/Inputs/Main.framework/Frameworks/Sub.framework/Headers/B.h [new file with mode: 0644]
clang/test/Modules/Inputs/Main.framework/Frameworks/Sub.framework/Headers/Sub.h [new file with mode: 0644]
clang/test/Modules/Inputs/Main.framework/Frameworks/Sub.framework/PrivateHeaders/BPriv.h [new file with mode: 0644]
clang/test/Modules/Inputs/Main.framework/Frameworks/Sub.framework/PrivateHeaders/SubPriv.h [new file with mode: 0644]
clang/test/Modules/Inputs/Main.framework/Headers/A.h [new file with mode: 0644]
clang/test/Modules/Inputs/Main.framework/Headers/Main.h [new file with mode: 0644]
clang/test/Modules/Inputs/Main.framework/Modules/module.modulemap [new file with mode: 0644]
clang/test/Modules/Inputs/Main.framework/Modules/module.private.modulemap [new file with mode: 0644]
clang/test/Modules/Inputs/Main.framework/PrivateHeaders/APriv.h [new file with mode: 0644]
clang/test/Modules/Inputs/Main.framework/PrivateHeaders/MainPriv.h [new file with mode: 0644]
clang/test/Modules/find-privateheaders.m [new file with mode: 0644]