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.<div>
<br></div><div>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.<br><div><br></div><div>
Please review!</div><div><br></div><div>Nick</div><div><br></div></div>