summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/normal-module-map
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-08 19:11:24 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-08 19:11:24 +0000
commit524e33e1f8d614926b56f83e123d915d43543c2d (patch)
tree1c44c6640b704afcd3c1c8f9914dee2f514a7969 /clang/test/Modules/Inputs/normal-module-map
parent5780f9df56ec5efda7e40df8a88d8c6057663033 (diff)
downloadbcm5719-llvm-524e33e1f8d614926b56f83e123d915d43543c2d.tar.gz
bcm5719-llvm-524e33e1f8d614926b56f83e123d915d43543c2d.zip
Implement umbrella directories for modules, which are similar to
umbrella headers in the sense that all of the headers within that directory (and eventually its subdirectories) are considered to be part of the module with that umbrella directory. However, unlike umbrella headers, which are expected to include all of the headers within their subdirectories, Clang will automatically include all of the headers it finds in the named subdirectory. The intent here is to allow a module map to trivially turn a subdirectory into a module, where the module's structure can mimic the directory structure. llvm-svn: 146165
Diffstat (limited to 'clang/test/Modules/Inputs/normal-module-map')
-rw-r--r--clang/test/Modules/Inputs/normal-module-map/module.map5
-rw-r--r--clang/test/Modules/Inputs/normal-module-map/nested_umbrella/a.h2
-rw-r--r--clang/test/Modules/Inputs/normal-module-map/nested_umbrella/b.h2
3 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/normal-module-map/module.map b/clang/test/Modules/Inputs/normal-module-map/module.map
index 91e4bf7178e..e17f44a8f4f 100644
--- a/clang/test/Modules/Inputs/normal-module-map/module.map
+++ b/clang/test/Modules/Inputs/normal-module-map/module.map
@@ -6,3 +6,8 @@ module libA {
module libB {
header "b1.h"
}
+
+module nested_umbrella {
+ umbrella "nested_umbrella"
+ module * { }
+}
diff --git a/clang/test/Modules/Inputs/normal-module-map/nested_umbrella/a.h b/clang/test/Modules/Inputs/normal-module-map/nested_umbrella/a.h
new file mode 100644
index 00000000000..ab180fe0739
--- /dev/null
+++ b/clang/test/Modules/Inputs/normal-module-map/nested_umbrella/a.h
@@ -0,0 +1,2 @@
+int nested_umbrella_a;
+
diff --git a/clang/test/Modules/Inputs/normal-module-map/nested_umbrella/b.h b/clang/test/Modules/Inputs/normal-module-map/nested_umbrella/b.h
new file mode 100644
index 00000000000..a903f5d8abd
--- /dev/null
+++ b/clang/test/Modules/Inputs/normal-module-map/nested_umbrella/b.h
@@ -0,0 +1,2 @@
+int nested_umbrella_b;
+
OpenPOWER on IntegriCloud