diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-12-31 04:05:44 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-12-31 04:05:44 +0000 |
| commit | 1fb5c3a63a88e4758b196f1bda64eecce9b29d3f (patch) | |
| tree | 0da4770b525e3b6a77a4b54bd828262d2bda7dfa /clang/test/Modules/Inputs/DependsOnModule.framework | |
| parent | 84a5dfdf727df09432aaa40ac72aa94e500326e4 (diff) | |
| download | bcm5719-llvm-1fb5c3a63a88e4758b196f1bda64eecce9b29d3f.tar.gz bcm5719-llvm-1fb5c3a63a88e4758b196f1bda64eecce9b29d3f.zip | |
Implement support for module requirements, which indicate the language
features needed for a particular module to be available. This allows
mixed-language modules, where certain headers only work under some
language variants (e.g., in C++, std.tuple might only be available in
C++11 mode).
llvm-svn: 147387
Diffstat (limited to 'clang/test/Modules/Inputs/DependsOnModule.framework')
| -rw-r--r-- | clang/test/Modules/Inputs/DependsOnModule.framework/Headers/cxx_other.h | 5 | ||||
| -rw-r--r-- | clang/test/Modules/Inputs/DependsOnModule.framework/module.map | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/DependsOnModule.framework/Headers/cxx_other.h b/clang/test/Modules/Inputs/DependsOnModule.framework/Headers/cxx_other.h new file mode 100644 index 00000000000..724d7987af5 --- /dev/null +++ b/clang/test/Modules/Inputs/DependsOnModule.framework/Headers/cxx_other.h @@ -0,0 +1,5 @@ +class CXXOnly { + public: + CXXOnly(); + ~CXXOnly(); +}; diff --git a/clang/test/Modules/Inputs/DependsOnModule.framework/module.map b/clang/test/Modules/Inputs/DependsOnModule.framework/module.map index d8fe2fc3f52..2a3dd8038bd 100644 --- a/clang/test/Modules/Inputs/DependsOnModule.framework/module.map +++ b/clang/test/Modules/Inputs/DependsOnModule.framework/module.map @@ -4,6 +4,11 @@ framework module DependsOnModule { module * { export * } + explicit module CXX { + requires cplusplus + header "cxx_other.h" + } + explicit framework module SubFramework { umbrella header "SubFramework.h" |

