From 34ac462b95da3c865b8c5dc3007e025206ccca8f Mon Sep 17 00:00:00 2001 From: Francesco Date: Wed, 27 May 2026 00:42:03 +0200 Subject: [PATCH] chore: add ninja format command --- meson.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index f523a6a..3079b44 100644 --- a/meson.build +++ b/meson.build @@ -40,7 +40,6 @@ tgbot_dep = declare_dependency( ) cppcheck = find_program('cppcheck', required: false) - if cppcheck.found() run_target( 'cppcheck', @@ -57,10 +56,15 @@ if cppcheck.found() ) endif +clangformat = find_program('clang-format', required: false) +if clangformat.found() + run_target('format', command: [clangformat, '-i', sources]) +endif + # Example executable( 'example', 'examples/sender/sendpic.c', dependencies: tgbot_dep, build_by_default: false, -) \ No newline at end of file +)