]> granicus.if.org Git - clang/commit
Add -isystem-prefix and -ino-system-prefix arguments, which can be used to
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 13 Jun 2012 20:27:03 +0000 (20:27 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 13 Jun 2012 20:27:03 +0000 (20:27 +0000)
commitf122a138e39dbb29162abfa9a3d44091d8efa7af
tree08459273e5a9442d2471a8f499d76c58341011bd
parent8ab09da1faaa33b9fa78de59cc4e191bfe9907b5
Add -isystem-prefix and -ino-system-prefix arguments, which can be used to
override whether headers are system headers by checking for prefixes of the
header name specified in the #include directive.

This allows warnings to be disabled for third-party code which is found in
specific subdirectories of include paths.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158418 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
docs/UsersManual.html
include/clang/Driver/CC1Options.td
include/clang/Frontend/HeaderSearchOptions.h
include/clang/Lex/HeaderSearch.h
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/InitHeaderSearch.cpp
lib/Lex/HeaderSearch.cpp
test/Frontend/Inputs/SystemHeaderPrefix/libs/boost/all.h [new file with mode: 0644]
test/Frontend/Inputs/SystemHeaderPrefix/libs/boost/warn.h [new file with mode: 0644]
test/Frontend/Inputs/SystemHeaderPrefix/libs/mylib/all.h [new file with mode: 0644]
test/Frontend/Inputs/SystemHeaderPrefix/libs/mylib/warn.h [new file with mode: 0644]
test/Frontend/Inputs/SystemHeaderPrefix/src/all.h [new file with mode: 0644]
test/Frontend/Inputs/SystemHeaderPrefix/src/warn.h [new file with mode: 0644]
test/Frontend/system-header-prefix.c [new file with mode: 0644]