[cfe-dev] null pointer literals, warnings, and fixups

Manuel Klimek klimek at google.com
Fri Aug 19 14:32:01 PDT 2011


On Fri, Aug 19, 2011 at 2:05 PM, David Blaikie <dblaikie at gmail.com> wrote:
<snip>
> Side question: what tools currently exist that can actually apply
> fixit instructions to code? Is there any existing simple program (that
> would probably work like scan-build, or similar) that could be
> instructed to actually apply all instances of a particular warning
> fixup?

We've been working on infrastructure to do exactly that, but it didn't
get included in mainline (see
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-June/015434.html,
which includes a patch that should still apply somewhat clean). We're
currently working on different options to get it open sourced.

The architectural idea is that you have a clang-fixit tool that uses
cmake's ability to output compile commands to apply all possible fixes
that clang suggests on a file.

Cheers,
/Manuel



More information about the cfe-dev mailing list