[PATCH] D59449: [clang-tidy] Integrate clang-tidy-diff.py machinery into run-clang-tidy.py

Zinovy Nis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 16 03:16:44 PDT 2019


zinovy.nis created this revision.
zinovy.nis added reviewers: alexfh, bkramer.
zinovy.nis added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a reviewer: serge-sans-paille.
Herald added a project: clang.

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.exe -p out/Debug -checks=-*,performance-* option_regex


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D59449

Files:
  clang-tidy/tool/run-clang-tidy.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59449.190953.patch
Type: text/x-patch
Size: 4992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190316/73a7dc1b/attachment-0001.bin>


More information about the cfe-commits mailing list