]> granicus.if.org Git - clang/commit
With this patch -Wwrite-strings is still implemented with the terrible
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 5 Nov 2013 21:43:54 +0000 (21:43 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 5 Nov 2013 21:43:54 +0000 (21:43 +0000)
commit1d5cce4f284519bdd1218c8f095462a518b47286
treec40b63cdf3e6c2f55bc41a348b0cd99186dc09c5
parent61a0a7519ee0d26334d30a001501b8c443d36975
With this patch -Wwrite-strings is still implemented with the terrible
hack of passing -fconst-strings to -cc1, but at least the driver uses
the regular warning checking code path.

Since we don't support a warning that is DefaultIgnore in one language
but not in another, this patch creates a dummy C only warning in the same
group as the existing one to get the desired effect.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194097 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Driver/Options.td
lib/Driver/Tools.cpp
test/Driver/clang_f_opts.c