llvm-project/clang-tools-extra/clang-tidy/tool
Jakub Kuderski a7410fdbee [clang-tidy] run-clang-tidy.py: check if clang-apply-replacements succeeds
Summary:
When running run-clang-tidy.py with -fix it tries to apply found replacements at the end.
If there are errors running clang-apply-replacements, the script currently crashes or displays no error at all.

This patch checks for errors running clang-apply-replacements the same way clang-tidy binary is handled.

Another option would be probably checking for clang-apply-replacements (when -fix is passed) even before running clang-tidy.

Reviewers: Prazek, alexfh, bkramer, mfherbst

Reviewed By: Prazek, alexfh

Subscribers: kimgr, cfe-commits

Tags: #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D32294

llvm-svn: 301365
2017-04-25 22:38:39 +00:00
..
CMakeLists.txt Fix clang-tidy shared link with libc++ 2017-04-12 22:07:47 +00:00
ClangTidyMain.cpp [clang-tidy] Update docs and help message 2017-04-06 14:27:00 +00:00
clang-tidy-diff.py [clang-tidy] Add -path option to clang-tidy-diff.py 2017-02-17 19:31:43 +00:00
run-clang-tidy.py [clang-tidy] run-clang-tidy.py: check if clang-apply-replacements succeeds 2017-04-25 22:38:39 +00:00