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). llvm-svn: 193549
Showing
- clang/docs/Modules.rst 5 additions, 2 deletionsclang/docs/Modules.rst
- clang/include/clang/Basic/DiagnosticFrontendKinds.td 2 additions, 1 deletionclang/include/clang/Basic/DiagnosticFrontendKinds.td
- clang/include/clang/Basic/Module.h 17 additions, 9 deletionsclang/include/clang/Basic/Module.h
- clang/lib/Basic/Module.cpp 17 additions, 11 deletionsclang/lib/Basic/Module.cpp
- clang/lib/Frontend/CompilerInstance.cpp 3 additions, 3 deletionsclang/lib/Frontend/CompilerInstance.cpp
- clang/lib/Frontend/FrontendActions.cpp 3 additions, 3 deletionsclang/lib/Frontend/FrontendActions.cpp
- clang/lib/Lex/ModuleMap.cpp 19 additions, 3 deletionsclang/lib/Lex/ModuleMap.cpp
- clang/lib/Serialization/ASTReader.cpp 1 addition, 1 deletionclang/lib/Serialization/ASTReader.cpp
- clang/lib/Serialization/ASTWriter.cpp 5 additions, 4 deletionsclang/lib/Serialization/ASTWriter.cpp
- clang/test/Index/index-module.m 2 additions, 0 deletionsclang/test/Index/index-module.m
- clang/test/Modules/Inputs/DependsOnModule.framework/Headers/not_cxx.h 1 addition, 0 deletions...odules/Inputs/DependsOnModule.framework/Headers/not_cxx.h
- clang/test/Modules/Inputs/DependsOnModule.framework/Headers/not_objc.h 1 addition, 0 deletions...dules/Inputs/DependsOnModule.framework/Headers/not_objc.h
- clang/test/Modules/Inputs/DependsOnModule.framework/module.map 8 additions, 0 deletions.../test/Modules/Inputs/DependsOnModule.framework/module.map
- clang/test/Modules/requires.m 2 additions, 1 deletionclang/test/Modules/requires.m
- clang/test/Modules/requires.mm 6 additions, 0 deletionsclang/test/Modules/requires.mm
Loading
Please register or sign in to comment