]> granicus.if.org Git - clang/commit
[Modules] If a module map resides in a system header directory, treat it as a system...
authorDouglas Gregor <dgregor@apple.com>
Fri, 21 Jun 2013 16:28:10 +0000 (16:28 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 21 Jun 2013 16:28:10 +0000 (16:28 +0000)
commit8f5d7d1d1f990f174c7f2682271a83acf64dd93d
tree34c22743bb4e86aa987bf5a977f38eee6cbc7045
parent472e66e9d32e587a028bc676aa63bd7137f3d4d4
[Modules] If a module map resides in a system header directory, treat it as a system module.

This prevents -pedantic from causing warnings in the system headers
used to create modules. Fixes <rdar://problem/14201171>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184560 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/FrontendActions.h
include/clang/Lex/DirectoryLookup.h
include/clang/Lex/HeaderSearch.h
include/clang/Lex/ModuleMap.h
lib/Frontend/CompilerInstance.cpp
lib/Frontend/FrontendActions.cpp
lib/Lex/HeaderSearch.cpp
lib/Lex/ModuleMap.cpp
test/Modules/Inputs/module.map
test/Modules/Inputs/warning.h [new file with mode: 0644]
test/Modules/system_headers.m [new file with mode: 0644]