[cfe-commits] [patch] Warn in string literal + integral

Richard Smith richard at metafoo.co.uk
Fri Mar 2 15:02:23 PST 2012


On Fri, Mar 2, 2012 at 2:15 PM, Nico Weber <thakis at chromium.org> wrote:

> > Thanks, this looks fine to commit.
>
> Thanks, r151943.
>
> >> > Other than that, a test for the fix-it would be great (see test/FixIt
> >> > for
> >> > examples).
> >>
> >> Wouldn't that require the fixit to be on the warning instead of the
> >> note? (If so, maybe there's no need for the test yet?)
> >
> >
> > You can test fixits on notes with -fdiagnostics-parseable-fixits +
> > FileCheck. See test/FixIt/fixit-vexing-parse.cpp for an example of that.
> I'm
> > happy for that to be a subsequent commit.
>
> Attached. I added only a test for the first fixit since having lots of
> line numbers hardcoded in the test would probably make the test more
> annoying than useful. Is this what you had in mind?
>

This looks great, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120302/fe40e778/attachment.html>


More information about the cfe-commits mailing list