rdevlin.cronin | be2898eb | 2016-07-13 01:20:36 | [diff] [blame] | 1 | # Clang Tidy |
| 2 | |
| 3 | [TOC] |
| 4 | |
rdevlin.cronin | be2898eb | 2016-07-13 01:20:36 | [diff] [blame] | 5 | ## Introduction |
| 6 | |
| 7 | [clang-tidy](http://clang.llvm.org/extra/clang-tidy/) is a clang-based C++ |
| 8 | “linter” tool. Its purpose is to provide an extensible framework for diagnosing |
| 9 | and fixing typical programming errors, like style violations, interface misuse, |
| 10 | or bugs that can be deduced via static analysis. |
| 11 | |
George Burgess IV | 288fcf5 | 2019-12-18 02:19:46 | [diff] [blame] | 12 | ## Where is it? |
rdevlin.cronin | be2898eb | 2016-07-13 01:20:36 | [diff] [blame] | 13 | |
George Burgess IV | 288fcf5 | 2019-12-18 02:19:46 | [diff] [blame] | 14 | clang-tidy is available in two places in Chromium: |
Daniel McArdle | b26068f | 2019-03-07 16:29:32 | [diff] [blame] | 15 | |
George Burgess IV | 288fcf5 | 2019-12-18 02:19:46 | [diff] [blame] | 16 | - In Chromium checkouts |
| 17 | - In code review on Gerrit |
Daniel McArdle | b26068f | 2019-03-07 16:29:32 | [diff] [blame] | 18 | |
George Burgess IV | 288fcf5 | 2019-12-18 02:19:46 | [diff] [blame] | 19 | Clang-tidy automatically runs on any CL that Chromium committers upload to |
| 20 | Gerrit, and will leave code review comments there. This is the recommended way |
| 21 | of using clang-tidy. |
Daniel McArdle | b26068f | 2019-03-07 16:29:32 | [diff] [blame] | 22 | |
George Burgess IV | 288fcf5 | 2019-12-18 02:19:46 | [diff] [blame] |
|