| * Add `"checkout_clang_tidy": True` to `.gclient` file in the `custom_vars`. |
| "checkout_clang_tidy": True, |
| There should now be `third_party/llvm-build/Release+Asserts/bin/clang-tidy` |
| * `git clone https://chromium.googlesource.com/chromium/tools/build` |
| The Chromium build folder contains the `tricium` files used to run `clang-tidy` |
| Running clang-tidy over all the source can be done with: |
| out/build/recipes/recipe_modules/tricium_clang_tidy/resources/tricium_clang_tidy_script.py \ |
| --findings_file all_findings.json \ |
| --clang_tidy_binary $PWD/third_party/llvm-build/Release+Asserts/bin/clang-tidy \ |
| `--all` can be replaced by specific files if desired to run on individual source |
| * https://chromium.googlesource.com/chromium/src.git/+/HEAD/docs/clang_tidy.md |