From 21b9943fc0771cf25d8409a4a917e71decb220a4 Mon Sep 17 00:00:00 2001 From: Fabian Sauter Date: Wed, 4 May 2022 08:34:42 +0200 Subject: [PATCH] Updated makefile clang format command Signed-off-by: Fabian Sauter --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b85f1a4ef..7e28ea46b 100644 --- a/Makefile +++ b/Makefile @@ -198,7 +198,9 @@ win_build_xxd: cd external/bin/ && gcc.exe -o xxd.exe xxd.c -DCYGWIN format: - $(CLANG_FORMAT_BIN) -i -style=file src/*.cpp src/include/kompute/*.hpp test/*cpp + for val in "examples single_include src test" ; do \ + find $$val -depth -iname *.h -or -iname *.c -or -iname *.hpp -or -iname *.cpp | grep -v "shaders" | xargs $(CLANG_FORMAT_BIN) -style=file -i; \ + done static_scan: cppcheck --project=build/compile_commands.json -iexternal/