summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneModule.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2018-06-25 22:24:17 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2018-06-25 22:24:17 +0000
commit1b3b69fbda70d2cfe67a2b2e29d29dd26c9b0f2c (patch)
tree55b2017a00b27f21ae346c27ed3d1402725c655c /llvm/lib/Transforms/Utils/CloneModule.cpp
parent9bca7483a537dc37bd686cadc1af78c103248a8a (diff)
downloadbcm5719-llvm-1b3b69fbda70d2cfe67a2b2e29d29dd26c9b0f2c.tar.gz
bcm5719-llvm-1b3b69fbda70d2cfe67a2b2e29d29dd26c9b0f2c.zip
Warning for framework include violation from Headers to PrivateHeaders
Framework vendors usually layout their framework headers in the following way: Foo.framework/Headers -> "public" headers Foo.framework/PrivateHeader -> "private" headers Since both headers in both directories can be found with #import <Foo/some-header.h>, it's easy to make mistakes and include headers in Foo.framework/PrivateHeader from headers in Foo.framework/Headers, which usually configures a layering violation on Darwin ecosystems. One of the problem this causes is dep cycles when modules are used, since it's very common for "private" modules to include from the "public" ones; adding an edge the other way around will trigger cycles. Add a warning to catch those cases such that: ./A.framework/Headers/A.h:1:10: warning: public framework header includes private framework header 'A/APriv.h' #include <A/APriv.h> ^ rdar://problem/38712182 llvm-svn: 335542
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud