This is an archive of the discontinued LLVM Phabricator instance.

Patch bug 27628 (clang-tidy should exit with a failure code when there are errors)
Needs RevisionPublic

Authored by antoyo on Oct 19 2017, 12:44 PM.

Details

Summary

Update clang-tidy to return 1 when there's an error.

Diff Detail

Event Timeline

antoyo created this revision.Oct 19 2017, 12:44 PM
alexfh accepted this revision.Oct 20 2017, 2:38 PM

Looks good! Thank you!

This revision is now accepted and ready to land.Oct 20 2017, 2:38 PM
alexfh requested changes to this revision.Oct 20 2017, 4:02 PM

This patch breaks a number of tests. Please run the tests and fix the failures.

This revision now requires changes to proceed.Oct 20 2017, 4:02 PM
alexfh added inline comments.Oct 20 2017, 4:06 PM
clang-tidy/tool/ClangTidyMain.cpp
452

Failed tests reminded me of the -fix-errors flag.

I suppose, clang-tidy should not return an error code, when all errors it noticed, contained fixes that were successfully applied by -fix-errors.