commit | 34fa539ae32030e31d3ab910afe3df24f8fb1e3b | [log] [tgz] |
---|---|---|
author | Zinovy Nis <zynis@yandex-team.ru> | Wed Mar 13 07:08:11 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Mar 13 07:08:11 2019 |
tree | df7db48715ef4bf306195b684494f19216276d73 | |
parent | cf05e84b69d899dd0530d953fe2b1cb947390dd8 [diff] |
Add a mode for checking the diff only for clang_tidy_tool.py Usage: chromium/src$ git show -U5 | tools/clang/scripts/clang_tidy_tool.py --checks=* --diff out/Debug chrome or chromium/src$ git diff -U5 | tools/clang/scripts/clang_tidy_tool.py --checks=* --diff out/Debug chrome Add `--diff` mode to clang_tidy_tool.py to check only the modified lines of code. Can be used as a kind of presubmit routine. Will run much faster (parallelized) after my https://reviews.llvm.org/D57662 is landed in LLVM. Bug: 936989 Change-Id: I83369d3479f271ed62a757b42fea2e22802f9569 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1514052 Commit-Queue: Zinovy Nis <zynis@yandex-team.ru> Reviewed-by: Hans Wennborg <hans@chromium.org> Cr-Commit-Position: refs/heads/master@{#640229}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .