summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/clangformat.md
blob: 89832432dc52ec23e55a6e2b85b50778660f5add (plain)
1
2
3
4
5
6
7
8
9
10
11
## A builtin target to run clang-format

If you have `clang-format` installed and there is a `.clang-format`
file in the root of your master project, Meson will generate a run
target called `clang-format` so you can reformat all files with one
command:

```meson
ninja clang-format
```