aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/meson_clang_tidy_fix.md
blob: 3a8c772f3f63486bb4776ae2df51d6f1b79db959 (plain)
1
2
3
4
5
6
7
8
9
## clang-tidy-fix target

If `clang-tidy` is installed and the project's source root contains a
`.clang-tidy` (or `_clang-tidy`) file, Meson will automatically define
a `clang-tidy-fix` target that runs `run-clang-tidy` tool with `-fix`
option to apply the changes found by clang-tidy to the source code.

If you have defined your own `clang-tidy-fix` target, Meson will not
generate its own target.