From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- .../Modules/Inputs/normal-module-map/Umbrella/Umbrella.h | 4 ++++ .../Modules/Inputs/normal-module-map/Umbrella/module.map | 3 +++ .../Inputs/normal-module-map/Umbrella/umbrella_sub.h | 2 ++ .../Modules/Inputs/normal-module-map/Umbrella2/Umbrella2.h | 1 + .../Modules/Inputs/normal-module-map/Umbrella2/module.map | 3 +++ clang/test/Modules/Inputs/normal-module-map/a1.h | 1 + clang/test/Modules/Inputs/normal-module-map/a2.h | 1 + clang/test/Modules/Inputs/normal-module-map/b1.h | 2 ++ clang/test/Modules/Inputs/normal-module-map/module.map | 13 +++++++++++++ .../test/Modules/Inputs/normal-module-map/nested/module.map | 4 ++++ .../test/Modules/Inputs/normal-module-map/nested/nested1.h | 1 + .../test/Modules/Inputs/normal-module-map/nested/nested2.h | 1 + .../Modules/Inputs/normal-module-map/nested_umbrella/a.h | 2 ++ .../Modules/Inputs/normal-module-map/nested_umbrella/b.h | 2 ++ 14 files changed, 40 insertions(+) create mode 100644 clang/test/Modules/Inputs/normal-module-map/Umbrella/Umbrella.h create mode 100644 clang/test/Modules/Inputs/normal-module-map/Umbrella/module.map create mode 100644 clang/test/Modules/Inputs/normal-module-map/Umbrella/umbrella_sub.h create mode 100644 clang/test/Modules/Inputs/normal-module-map/Umbrella2/Umbrella2.h create mode 100644 clang/test/Modules/Inputs/normal-module-map/Umbrella2/module.map create mode 100644 clang/test/Modules/Inputs/normal-module-map/a1.h create mode 100644 clang/test/Modules/Inputs/normal-module-map/a2.h create mode 100644 clang/test/Modules/Inputs/normal-module-map/b1.h create mode 100644 clang/test/Modules/Inputs/normal-module-map/module.map create mode 100644 clang/test/Modules/Inputs/normal-module-map/nested/module.map create mode 100644 clang/test/Modules/Inputs/normal-module-map/nested/nested1.h create mode 100644 clang/test/Modules/Inputs/normal-module-map/nested/nested2.h create mode 100644 clang/test/Modules/Inputs/normal-module-map/nested_umbrella/a.h create mode 100644 clang/test/Modules/Inputs/normal-module-map/nested_umbrella/b.h (limited to 'clang/test/Modules/Inputs/normal-module-map') diff --git a/clang/test/Modules/Inputs/normal-module-map/Umbrella/Umbrella.h b/clang/test/Modules/Inputs/normal-module-map/Umbrella/Umbrella.h new file mode 100644 index 0000000..7462376 --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/Umbrella/Umbrella.h @@ -0,0 +1,4 @@ +int umbrella; + +#include "umbrella_sub.h" + diff --git a/clang/test/Modules/Inputs/normal-module-map/Umbrella/module.map b/clang/test/Modules/Inputs/normal-module-map/Umbrella/module.map new file mode 100644 index 0000000..611cf9f --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/Umbrella/module.map @@ -0,0 +1,3 @@ +module Umbrella { + umbrella header "Umbrella.h" +} \ No newline at end of file diff --git a/clang/test/Modules/Inputs/normal-module-map/Umbrella/umbrella_sub.h b/clang/test/Modules/Inputs/normal-module-map/Umbrella/umbrella_sub.h new file mode 100644 index 0000000..9fdccd1 --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/Umbrella/umbrella_sub.h @@ -0,0 +1,2 @@ +int umbrella_sub; + diff --git a/clang/test/Modules/Inputs/normal-module-map/Umbrella2/Umbrella2.h b/clang/test/Modules/Inputs/normal-module-map/Umbrella2/Umbrella2.h new file mode 100644 index 0000000..36110d8 --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/Umbrella2/Umbrella2.h @@ -0,0 +1 @@ +int umbrella2; diff --git a/clang/test/Modules/Inputs/normal-module-map/Umbrella2/module.map b/clang/test/Modules/Inputs/normal-module-map/Umbrella2/module.map new file mode 100644 index 0000000..1e57704 --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/Umbrella2/module.map @@ -0,0 +1,3 @@ +module Umbrella2 { + umbrella header "Umbrella2.h" +} diff --git a/clang/test/Modules/Inputs/normal-module-map/a1.h b/clang/test/Modules/Inputs/normal-module-map/a1.h new file mode 100644 index 0000000..f2d5a49 --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/a1.h @@ -0,0 +1 @@ +int a1; diff --git a/clang/test/Modules/Inputs/normal-module-map/a2.h b/clang/test/Modules/Inputs/normal-module-map/a2.h new file mode 100644 index 0000000..5c4e7ff --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/a2.h @@ -0,0 +1 @@ +int a2; diff --git a/clang/test/Modules/Inputs/normal-module-map/b1.h b/clang/test/Modules/Inputs/normal-module-map/b1.h new file mode 100644 index 0000000..2ed1112 --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/b1.h @@ -0,0 +1,2 @@ +int b1; + diff --git a/clang/test/Modules/Inputs/normal-module-map/module.map b/clang/test/Modules/Inputs/normal-module-map/module.map new file mode 100644 index 0000000..e17f44a --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/module.map @@ -0,0 +1,13 @@ +module libA { + module a1 { header "a1.h" } + header "a2.h" +} + +module libB { + header "b1.h" +} + +module nested_umbrella { + umbrella "nested_umbrella" + module * { } +} diff --git a/clang/test/Modules/Inputs/normal-module-map/nested/module.map b/clang/test/Modules/Inputs/normal-module-map/nested/module.map new file mode 100644 index 0000000..fd463c2 --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/nested/module.map @@ -0,0 +1,4 @@ +module libNested { + header "nested1.h" + header "nested2.h" +} \ No newline at end of file diff --git a/clang/test/Modules/Inputs/normal-module-map/nested/nested1.h b/clang/test/Modules/Inputs/normal-module-map/nested/nested1.h new file mode 100644 index 0000000..3790d1a --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/nested/nested1.h @@ -0,0 +1 @@ +int nested1; diff --git a/clang/test/Modules/Inputs/normal-module-map/nested/nested2.h b/clang/test/Modules/Inputs/normal-module-map/nested/nested2.h new file mode 100644 index 0000000..d56d601 --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/nested/nested2.h @@ -0,0 +1 @@ +int nested2; 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 0000000..ab180fe --- /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 0000000..a903f5d --- /dev/null +++ b/clang/test/Modules/Inputs/normal-module-map/nested_umbrella/b.h @@ -0,0 +1,2 @@ +int nested_umbrella_b; + -- cgit v1.2.3