aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-12-23 16:19:45 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-30 00:50:00 +0200
commit1fca654055d3502d2db9c5aad66a522beaa1df19 (patch)
treebaf97e14e15d57482ed73adba96ab98180ca13d6 /docs
parent3b495c397ec1baffe99d63031f2b03301b7f6ba5 (diff)
downloadmeson-1fca654055d3502d2db9c5aad66a522beaa1df19.zip
meson-1fca654055d3502d2db9c5aad66a522beaa1df19.tar.gz
meson-1fca654055d3502d2db9c5aad66a522beaa1df19.tar.bz2
Add a clang-format target.
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
+```
+