Add the `clang-tidy-fix` target to apply clang-tidy fixes to the source code. This is done by calling `run-clang-tidy` with `-fix` argument. Add a test case to run `clang-tidy-fix` and verify the file is changed. Signed-off-by: Lei YU <yulei.sh@bytedance.com>pull/12283/head
parent
f20f331494
commit
8d6b474bf6
5 changed files with 41 additions and 3 deletions
@ -0,0 +1,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. |
Loading…
Reference in new issue