[cfe-commits] PATCH: teach clang -fixit to fix what it can
Nick Lewycky
nlewycky at google.com
Thu Aug 12 21:04:48 PDT 2010
The attached patch adds a new feature to clang -fixit, labelled
"-fix-what-you-can". By default, fix-it will refuse to make any fixes in a
file that contains unfixable errors. This is undesirable behaviour much of
the time, so the new -fix-what-you-can flag applies all fixits in each file.
It's implemented by extending the existing FixItPathRewriter to include a
bool FixWhatYouCan, and then renaming it to FixItOptions since it's no
longer just for rewriting paths.
Please review!
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100812/bfdc139f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-what-you-can.patch
Type: text/x-patch
Size: 7263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100812/bfdc139f/attachment.bin>
More information about the cfe-commits
mailing list