From 1fca654055d3502d2db9c5aad66a522beaa1df19 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 23 Dec 2018 16:19:45 +0200 Subject: Add a clang-format target. --- docs/markdown/snippets/clangformat.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/markdown/snippets/clangformat.md (limited to 'docs/markdown/snippets') 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 +``` + -- cgit v1.1