Fix the behavior of clang's -w flag.
authorJames Y Knight <jyknight@google.com>
Tue, 29 Jan 2019 19:33:48 +0000 (19:33 +0000)
committerJames Y Knight <jyknight@google.com>
Tue, 29 Jan 2019 19:33:48 +0000 (19:33 +0000)
commit3f8b9166989709d1d893524f5590f8064e824554
treeb08a01cb714f049e320e9cc4b785ce6550ec23b2
parentd37ff4e888729c807fc4b9e8d2cac0846c5dcf73
Fix the behavior of clang's -w flag.

It is intended to disable _all_ warnings, even those upgraded to
errors via `-Werror=warningname` or `#pragma clang diagnostic error'

Fixes: https://llvm.org/PR38231
Differential Revision: https://reviews.llvm.org/D53199

llvm-svn: 352535
clang/lib/Basic/DiagnosticIDs.cpp
clang/test/Frontend/optimization-remark.c
clang/test/Frontend/warning-mapping-2.c
clang/test/Frontend/warning-mapping-4.c
clang/test/Frontend/warning-mapping-5.c
clang/test/Frontend/warning-mapping-6.c [new file with mode: 0644]
clang/test/Modules/implementation-of-module.m