]> granicus.if.org Git - clang/commit
Allow a new syntax in a module requires-declaration:
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 28 Oct 2013 22:18:19 +0000 (22:18 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 28 Oct 2013 22:18:19 +0000 (22:18 +0000)
commit5794b53ad5b38b53c9eaf3a172354e63081ceb2f
tree30b7cd56aa93e5528a8ad1cd5571efb221afd443
parent961d0573487933199cb287ce8c472121812b3c78
Allow a new syntax in a module requires-declaration:

  requires ! feature

The purpose of this is to allow (for instance) the module map for /usr/include
to exclude <tgmath.h> and <complex.h> when building in C++ (these headers are
instead provided by the C++ standard library in this case, and the glibc C
<tgmath.h> header would otherwise try to include <complex.h>, resulting in a
module cycle).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193549 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
docs/Modules.rst
include/clang/Basic/DiagnosticFrontendKinds.td
include/clang/Basic/Module.h
lib/Basic/Module.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/FrontendActions.cpp
lib/Lex/ModuleMap.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/Index/index-module.m
test/Modules/Inputs/DependsOnModule.framework/Headers/not_cxx.h [new file with mode: 0644]
test/Modules/Inputs/DependsOnModule.framework/Headers/not_objc.h [new file with mode: 0644]
test/Modules/Inputs/DependsOnModule.framework/module.map
test/Modules/requires.m
test/Modules/requires.mm [new file with mode: 0644]