This patch adds a new --diff[=2] option to run-clang-tidy.py to run clang-tidy checks against the given diff only, instead of the whole file.
Usage:
git show -U2 | /some/path/1/run-clang-tidy.py --diff=1 -clang-tidy-binary /some/path/2/clang-tidy -p out/Debug -checks=-*,performance-* option_regex