diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-23 16:19:45 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-24 00:46:16 +0200 |
commit | 33f8d6d4c653b1894c29388d6a51f1815209900c (patch) | |
tree | 8368d3f7669bc8392eb01e517618bf62765ea6bf /docs/markdown/snippets/clangformat.md | |
parent | 4df9006ca43338fea07b9d542f94da34369e43d3 (diff) | |
download | meson-clangformat.tar.gz |
Add a clang-format target.clangformat
Diffstat (limited to 'docs/markdown/snippets/clangformat.md')
-rw-r--r-- | docs/markdown/snippets/clangformat.md | 11 |
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 000000000..89832432d --- /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 +``` + |