]> granicus.if.org Git - clang/commit
Merging r291963:
authorHans Wennborg <hans@hanshq.net>
Wed, 1 Feb 2017 17:10:26 +0000 (17:10 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 1 Feb 2017 17:10:26 +0000 (17:10 +0000)
commit5eb0ba0f845af0eb3cc9d2b594385435c368994a
treebb51198281588ffc0451ab73bd82f741b9fc220b
parentdff88e090e4672426dfdb219b0a6f804d7768c7a
Merging r291963:
------------------------------------------------------------------------
r291963 | ericwf | 2017-01-13 14:11:40 -0800 (Fri, 13 Jan 2017) | 9 lines

[clang] Emit `diagnose_if` warnings from system headers

Summary: In order for libc++ to meaningfully use `diagnose_if` warnings they need to be emitted from system headers by default. This patch changes the `diagnose_if` warning diagnostic to be shown in system headers.

Reviewers: george.burgess.iv, rsmith, aaron.ballman

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D28703
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_40@293783 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
test/Sema/Inputs/diagnose-if-warn-system-header.h [new file with mode: 0644]
test/Sema/diagnose_if.c