From 7a4ffacb0094bc9c19202dea26f5e246002d5509 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 22 Jun 2025 11:05:28 +0800 Subject: cmake: fix clang-format and clang-tidy --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3abc4f2..65fa99e 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,10 @@ install: uninstall: xargs rm < ./build/install_manifest.txt -format: - find src -name "*.cpp" -o -name "*.hpp" | xargs clang-format -i +clang-format: + cmake --build ./build --target clang-format + +clang-tidy: + cmake --build ./build --target clang-tidy .PHONY: stub release debug clean all install uninstall format -- cgit v1.2.3