blob: 76c73fde76db8559d23145e556502d4f60bdbdcc [file] [log] [blame] [view]
rdevlin.croninbe2898eb2016-07-13 01:20:361# Clang Tidy
2
3[TOC]
4
rdevlin.croninbe2898eb2016-07-13 01:20:365## 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
9and fixing typical programming errors, like style violations, interface misuse,
10or bugs that can be deduced via static analysis.
11
George Burgess IV288fcf52019-12-18 02:19:4612## Where is it?
rdevlin.croninbe2898eb2016-07-13 01:20:3613
George Burgess IV288fcf52019-12-18 02:19:4614clang-tidy is available in two places in Chromium:
Daniel McArdleb26068f2019-03-07 16:29:3215
George Burgess IV288fcf52019-12-18 02:19:4616- In Chromium checkouts
17- In code review on Gerrit
Daniel McArdleb26068f2019-03-07 16:29:3218
George Burgess IV288fcf52019-12-18 02:19:4619Clang-tidy automatically runs on any CL that Chromium committers upload to
20Gerrit, and will leave code review comments there. This is the recommended way
21of using clang-tidy.
Daniel McArdleb26068f2019-03-07 16:29:3222
George Burgess IV288fcf52019-12-18 02:19:46