From b2ea7bcaab624988f8f7854de19a8801848579e1 Mon Sep 17 00:00:00 2001 From: IRainman Date: Tue, 6 May 2025 14:42:16 +0300 Subject: [PATCH] clang-format --- format.cmd | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/format.cmd b/format.cmd index 34d891c..cc0d283 100644 --- a/format.cmd +++ b/format.cmd @@ -17,9 +17,12 @@ if not exist ".clang-format" ( echo Formatting files with .clang-format... set count=0 for /R ".\" %%f in (*.cpp, *.h, *.c, *.hpp) do ( - echo Formatting "%%f" - clang-format -i -style=file "%%f" - set /a count+=1 + echo "%%f" | findstr /i "\\build\\ \\.vs\\ \\.git\\ \\.github\\" >nul + if !errorlevel! equ 1 ( + echo Formatting "%%f" + clang-format -i -style=file "%%f" + set /a count+=1 + ) ) -echo Done. Proccesed !count! files. \ No newline at end of file +echo Done. Processed !count! files. \ No newline at end of file