Files
Bigfoot/format.bat
Romain BOULLARD f3a1c7ec36
Some checks failed
Bigfoot / build-and-test (Debug, ON) (push) Successful in 25s
Bigfoot / build-and-test (RelWithDebInfo, OFF) (push) Successful in 27s
Bigfoot / build-and-test (RelWithDebInfo, ON) (push) Successful in 25s
Bigfoot / build-and-test (Release, OFF) (push) Successful in 20s
Bigfoot / build-and-test (Release, ON) (push) Has been cancelled
Bigfoot / build-and-test (Debug, OFF) (push) Successful in 26s
Update compilation
2026-01-28 14:28:07 +01:00

31 lines
576 B
Batchfile

@echo off
REM Variable that will hold the name of the clang-format command
SET FMT=clang-format
REM Function to format files
:format
for /r %%f in (*.h *.hpp *.m *.mm *.c *.cpp) do (
echo %%~nxf | findstr /i "_generated$" >nul
if errorlevel 1 (
echo format %%f
%FMT% -i "%%f"
)
)
echo ~~~ %1 Done ~~~
exit /b
REM Check if argument is provided
if "%1"=="" (
echo Please provide a directory as an argument.
exit /b
)
REM Check if directory exists
if not exist "%1" (
echo %1 is not a valid directory.
exit /b
)
cd %1
call :format