]> granicus.if.org Git - clang/commit
Implement support for module requirements, which indicate the language
authorDouglas Gregor <dgregor@apple.com>
Sat, 31 Dec 2011 04:05:44 +0000 (04:05 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 31 Dec 2011 04:05:44 +0000 (04:05 +0000)
commit51f564f80d9f71e175635b452ffeeeff899e9bf1
treeada57bc51cc68158361f5d1a49d8de00b6a1e564
parent868f65c6bf904591f62a0d69866825d2d3dfd16f
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).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147387 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
include/clang/Basic/DiagnosticFrontendKinds.td
include/clang/Basic/DiagnosticLexKinds.td
include/clang/Basic/Module.h
include/clang/Lex/HeaderSearch.h
include/clang/Lex/ModuleMap.h
include/clang/Serialization/ASTBitCodes.h
lib/Basic/Module.cpp
lib/Frontend/ASTUnit.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/FrontendActions.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/ModuleMap.cpp
lib/Lex/PPLexerChange.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/Modules/Inputs/DependsOnModule.framework/Headers/cxx_other.h [new file with mode: 0644]
test/Modules/Inputs/DependsOnModule.framework/module.map
test/Modules/requires.m [new file with mode: 0644]
test/Modules/subframeworks.m