summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/multiple-include/module.modulemap
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-07-10 22:27:17 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-07-10 22:27:17 +0000
commite70dadd67b0d1e7db10ef8d0cda711f10bfd7768 (patch)
tree2b6841fd5a385db0b371f05657247606f692ee8a /clang/test/Modules/Inputs/multiple-include/module.modulemap
parent0bb1fc410bf249ee9f8369e0219405804d68cba6 (diff)
downloadbcm5719-llvm-e70dadd67b0d1e7db10ef8d0cda711f10bfd7768.tar.gz
bcm5719-llvm-e70dadd67b0d1e7db10ef8d0cda711f10bfd7768.zip
[modules] When checking the include guard for a header, check whether it's
visible in the module we're considering entering. Previously we assumed that if we knew the include guard for a modular header, we'd already parsed it, but that need not be the case if a header is present in the current module and one of its dependencies; the result of getting this wrong was that the current module's submodule for the header would end up empty. llvm-svn: 241953
Diffstat (limited to 'clang/test/Modules/Inputs/multiple-include/module.modulemap')
-rw-r--r--clang/test/Modules/Inputs/multiple-include/module.modulemap2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/multiple-include/module.modulemap b/clang/test/Modules/Inputs/multiple-include/module.modulemap
new file mode 100644
index 00000000000..1228ae6cbb7
--- /dev/null
+++ b/clang/test/Modules/Inputs/multiple-include/module.modulemap
@@ -0,0 +1,2 @@
+module A { module a { header "a.h" } module b { header "b.h" } module c { header "c.h" } }
+module X { module x { header "x.h" } module c { header "c.h" } }
OpenPOWER on IntegriCloud