chore: add ninja format command
This commit is contained in:
+5
-1
@@ -40,7 +40,6 @@ tgbot_dep = declare_dependency(
|
||||
)
|
||||
|
||||
cppcheck = find_program('cppcheck', required: false)
|
||||
|
||||
if cppcheck.found()
|
||||
run_target(
|
||||
'cppcheck',
|
||||
@@ -57,6 +56,11 @@ 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',
|
||||
|
||||
Reference in New Issue
Block a user