[patch] Slightly less hackish implementation of -Wwrite-strings

Richard Smith richard at metafoo.co.uk
Tue Nov 5 13:19:49 PST 2013


LGTM


On Tue, Oct 29, 2013 at 7:48 AM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> ping
>
> On 25 September 2013 17:44, Rafael EspĂ­ndola <rafael.espindola at gmail.com>
> wrote:
> > 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.
> >
> > Chandler, is the include of clang/Sema/SemaDiagnostic.h OK in here or
> > some extra refactoring is needed?
> >
> > Cheers,
> > Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131105/9dd80d02/attachment.html>


More information about the cfe-commits mailing list