clang-format

This commit is contained in:
IRainman 2025-05-06 14:42:16 +03:00
parent c94d3a048c
commit b2ea7bcaab

View File

@ -17,9 +17,12 @@ if not exist ".clang-format" (
echo Formatting files with .clang-format... echo Formatting files with .clang-format...
set count=0 set count=0
for /R ".\" %%f in (*.cpp, *.h, *.c, *.hpp) do ( for /R ".\" %%f in (*.cpp, *.h, *.c, *.hpp) do (
echo "%%f" | findstr /i "\\build\\ \\.vs\\ \\.git\\ \\.github\\" >nul
if !errorlevel! equ 1 (
echo Formatting "%%f" echo Formatting "%%f"
clang-format -i -style=file "%%f" clang-format -i -style=file "%%f"
set /a count+=1 set /a count+=1
) )
)
echo Done. Proccesed !count! files. echo Done. Processed !count! files.