aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/snippets/clangformat.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/markdown/snippets/clangformat.md b/docs/markdown/snippets/clangformat.md
new file mode 100644
index 0000000..8983243
--- /dev/null
+++ b/docs/markdown/snippets/clangformat.md
@@ -0,0 +1,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
+```
+