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). --- clang/test/Modules/Inputs/NoUmbrella.framework/Headers/A.h | 8 ++++++++ clang/test/Modules/Inputs/NoUmbrella.framework/Headers/B.h | 1 + clang/test/Modules/Inputs/NoUmbrella.framework/Headers/Boom.h | 1 + .../test/Modules/Inputs/NoUmbrella.framework/Headers/SubDir/C.h | 1 + .../Inputs/NoUmbrella.framework/PrivateHeaders/A_Private.h | 1 + .../Inputs/NoUmbrella.framework/PrivateHeaders/B_Private.h | 1 + clang/test/Modules/Inputs/NoUmbrella.framework/module.map | 9 +++++++++ .../test/Modules/Inputs/NoUmbrella.framework/module_private.map | 4 ++++ 8 files changed, 26 insertions(+) create mode 100644 clang/test/Modules/Inputs/NoUmbrella.framework/Headers/A.h create mode 100644 clang/test/Modules/Inputs/NoUmbrella.framework/Headers/B.h create mode 100644 clang/test/Modules/Inputs/NoUmbrella.framework/Headers/Boom.h create mode 100644 clang/test/Modules/Inputs/NoUmbrella.framework/Headers/SubDir/C.h create mode 100644 clang/test/Modules/Inputs/NoUmbrella.framework/PrivateHeaders/A_Private.h create mode 100644 clang/test/Modules/Inputs/NoUmbrella.framework/PrivateHeaders/B_Private.h create mode 100644 clang/test/Modules/Inputs/NoUmbrella.framework/module.map create mode 100644 clang/test/Modules/Inputs/NoUmbrella.framework/module_private.map (limited to 'clang/test/Modules/Inputs/NoUmbrella.framework') diff --git a/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/A.h b/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/A.h new file mode 100644 index 0000000..73f32bf --- /dev/null +++ b/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/A.h @@ -0,0 +1,8 @@ +int no_umbrella_A; + +inline int has_warning(int x) { + if (x > 0) + return x; + // Note: warning here is suppressed because this module is considered a + // "system" module. +} diff --git a/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/B.h b/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/B.h new file mode 100644 index 0000000..dc6770f --- /dev/null +++ b/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/B.h @@ -0,0 +1 @@ +int no_umbrella_B; 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 0000000..ac4a14a --- /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/Headers/SubDir/C.h b/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/SubDir/C.h new file mode 100644 index 0000000..4a9351a --- /dev/null +++ b/clang/test/Modules/Inputs/NoUmbrella.framework/Headers/SubDir/C.h @@ -0,0 +1 @@ +int no_umbrella_C; diff --git a/clang/test/Modules/Inputs/NoUmbrella.framework/PrivateHeaders/A_Private.h b/clang/test/Modules/Inputs/NoUmbrella.framework/PrivateHeaders/A_Private.h new file mode 100644 index 0000000..bd606d2 --- /dev/null +++ b/clang/test/Modules/Inputs/NoUmbrella.framework/PrivateHeaders/A_Private.h @@ -0,0 +1 @@ +int no_umbrella_A_private; diff --git a/clang/test/Modules/Inputs/NoUmbrella.framework/PrivateHeaders/B_Private.h b/clang/test/Modules/Inputs/NoUmbrella.framework/PrivateHeaders/B_Private.h new file mode 100644 index 0000000..442be2d --- /dev/null +++ b/clang/test/Modules/Inputs/NoUmbrella.framework/PrivateHeaders/B_Private.h @@ -0,0 +1 @@ +int no_umbrella_B_private; diff --git a/clang/test/Modules/Inputs/NoUmbrella.framework/module.map b/clang/test/Modules/Inputs/NoUmbrella.framework/module.map new file mode 100644 index 0000000..4a4d970 --- /dev/null +++ b/clang/test/Modules/Inputs/NoUmbrella.framework/module.map @@ -0,0 +1,9 @@ +framework module NoUmbrella [system] { + umbrella "Headers" + module * { } + + module unavailable { + requires unavailable + header "Boom.h" + } +} diff --git a/clang/test/Modules/Inputs/NoUmbrella.framework/module_private.map b/clang/test/Modules/Inputs/NoUmbrella.framework/module_private.map new file mode 100644 index 0000000..0507ba0 --- /dev/null +++ b/clang/test/Modules/Inputs/NoUmbrella.framework/module_private.map @@ -0,0 +1,4 @@ +explicit module NoUmbrella.Private { + umbrella "PrivateHeaders" + explicit module * { } +} -- cgit v1.2.3