]> granicus.if.org Git - clang/commit
Introduce module attributes into the module map grammar, along with a
authorDouglas Gregor <dgregor@apple.com>
Fri, 27 Jan 2012 19:52:33 +0000 (19:52 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 27 Jan 2012 19:52:33 +0000 (19:52 +0000)
commita1f1fad8b60e1cb9d21a40a37f2e03150bcbeb6f
tree45e2eb4952da7a5bf21f923d188d30e242f72bd8
parente4b92761b43ced611c417ae478568610f1ad7b1e
Introduce module attributes into the module map grammar, along with a
single attribute ("system") that allows us to mark a module as being a
"system" module. Each of the headers that makes up a system module is
considered to be a system header, so that we (for example) suppress
warnings there.

If a module is being inferred for a framework, and that framework
directory is within a system frameworks directory, infer it as a
system framework.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149143 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/clang/Basic/DiagnosticLexKinds.td
include/clang/Basic/Module.h
include/clang/Basic/SourceManager.h
include/clang/Frontend/CompilerInstance.h
include/clang/Frontend/FrontendOptions.h
include/clang/Lex/HeaderSearch.h
include/clang/Lex/ModuleMap.h
lib/Basic/Module.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/FrontendAction.cpp
lib/Frontend/FrontendActions.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/ModuleMap.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/Modules/Inputs/NoUmbrella.framework/Headers/A.h
test/Modules/Inputs/NoUmbrella.framework/module.map