summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-05 00:04:05 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-05 00:04:05 +0000
commitd2a8fe187d216d81930838841b7c0595a5bb72c3 (patch)
tree7d39cde37989c54c09849005a0b71c3ed4d8fff6 /clang/test/Modules
parent7735a7d1a07607a2c6176225b6dcaf338dd6b7f7 (diff)
downloadbcm5719-llvm-d2a8fe187d216d81930838841b7c0595a5bb72c3.tar.gz
bcm5719-llvm-d2a8fe187d216d81930838841b7c0595a5bb72c3.zip
When generating includes for all of the headers we found in an
umbrella directory, skip includes for any headers that are part of an unavailable module. llvm-svn: 147572
Diffstat (limited to 'clang/test/Modules')
-rw-r--r--clang/test/Modules/Inputs/NoUmbrella.framework/Headers/Boom.h1
-rw-r--r--clang/test/Modules/Inputs/NoUmbrella.framework/module.map7
2 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/Boom.h b/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/Boom.h
new file mode 100644
index 00000000000..ac4a14aa597
--- /dev/null
+++ b/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/Boom.h
@@ -0,0 +1 @@
+this is gibberish
diff --git a/clang/test/Modules/Inputs/NoUmbrella.framework/module.map b/clang/test/Modules/Inputs/NoUmbrella.framework/module.map
index 944150146fa..986cca995c1 100644
--- a/clang/test/Modules/Inputs/NoUmbrella.framework/module.map
+++ b/clang/test/Modules/Inputs/NoUmbrella.framework/module.map
@@ -1,4 +1,9 @@
framework module NoUmbrella {
umbrella "Headers"
module * { }
-} \ No newline at end of file
+
+ module unavailable {
+ requires unavailable
+ header "Boom.h"
+ }
+}
OpenPOWER on IntegriCloud