diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-04-21 23:08:23 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-04-21 23:08:23 +0000 |
commit | 144bc08f5fe6046bd8e07de5e41a4237dd2c6275 (patch) | |
tree | 47c919da27a540cfdd05ccd69aed35f793f5ea8f /include/clang/Basic/DiagnosticIDs.h | |
parent | cfdadfe547015b916bd59aec892caa972ff76cf0 (diff) | |
download | clang-144bc08f5fe6046bd8e07de5e41a4237dd2c6275.tar.gz clang-144bc08f5fe6046bd8e07de5e41a4237dd2c6275.tar.bz2 clang-144bc08f5fe6046bd8e07de5e41a4237dd2c6275.tar.xz |
Don't hide #warnings in a system header, same as gcc. Fixes rdar://8495837.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129951 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticIDs.h')
-rw-r--r-- | include/clang/Basic/DiagnosticIDs.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/Basic/DiagnosticIDs.h b/include/clang/Basic/DiagnosticIDs.h index f4dec257ef..0296b96d00 100644 --- a/include/clang/Basic/DiagnosticIDs.h +++ b/include/clang/Basic/DiagnosticIDs.h @@ -64,9 +64,12 @@ namespace clang { /// Map this diagnostic to "warning", but make it immune to -Werror. This /// happens when you specify -Wno-error=foo. MAP_WARNING_NO_WERROR = 5, + /// Map this diagnostic to "warning", but make it immune to + /// -Wno-system-headers. + MAP_WARNING_SHOW_IN_SYSTEM_HEADER = 6, /// Map this diagnostic to "error", but make it immune to -Wfatal-errors. /// This happens for -Wno-fatal-errors=foo. - MAP_ERROR_NO_WFATAL = 6 + MAP_ERROR_NO_WFATAL = 7 }; } |