[clang-tidy] Added -fix-errors option
authorAlexander Kornienko <alexfh@google.com>
Mon, 3 Nov 2014 14:06:31 +0000 (14:06 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 3 Nov 2014 14:06:31 +0000 (14:06 +0000)
commit5eac3c6a44405e86639901e802fa86a4f02792f3
treebf38b5eb90d02b1ed65483155be5554280268693
parentcf6bfb1dd0a87fb93795b4ddedc663addab59293
[clang-tidy] Added -fix-errors option

Summary:
Added -fix-errors option to allow applying fixes when compiler errors
are present. Without this flag -fix would bail out if there are compiler errors.
This is needed to avoid applying wrong fixes if Clang fails to recover from
compilation errors correctly.

Reviewers: djasper, klimek

Reviewed By: klimek

Subscribers: curdeius, cfe-commits

Differential Revision: http://reviews.llvm.org/D6059

llvm-svn: 221152
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
clang-tools-extra/test/clang-tidy/fix-errors.cpp [new file with mode: 0644]