]> granicus.if.org Git - clang/commit
Warn about -Wno-foo where foo is an unknown warning option. This is helpful
authorChad Rosier <mcrosier@apple.com>
Wed, 16 May 2012 19:28:02 +0000 (19:28 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 16 May 2012 19:28:02 +0000 (19:28 +0000)
commitff1affef282d7146e14c8aa894eb5466a659398c
treef069b9a4d02406b51d1ecffa5df86ae75c9f4f70
parent87014f33f123461a012995b2f7eb5e6ecf6dc461
Warn about -Wno-foo where foo is an unknown warning option.  This is helpful
for subtle misspellings such as -Wno-unused-command-line-arguments instead of
-Wno-unused-command-line-argument.

Also fix the diagnostic messages to properly handle -Wno- options.  Previously,
the positive version was always emitted (i.e., -Wfoo was emitted for -Wno-foo).
rdar://11461500

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156937 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticFrontendKinds.td
lib/Frontend/Warnings.cpp
test/Driver/warning-options.cpp