mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-06 17:59:52 +08:00
remove format.cmd: use IDE.
This commit is contained in:
parent
7ce53435fc
commit
6cefbb53ba
28
format.cmd
28
format.cmd
@ -1,28 +0,0 @@
|
|||||||
@echo off
|
|
||||||
setlocal enabledelayedexpansion
|
|
||||||
|
|
||||||
echo Searching for clang-format...
|
|
||||||
where clang-format >nul 2>&1
|
|
||||||
if %errorlevel% neq 0 (
|
|
||||||
echo Error: clang-format not found in PATH. Install LLVM or add it to PATH.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
echo Checking for .clang-format...
|
|
||||||
if not exist ".clang-format" (
|
|
||||||
echo Error: .clang-format config file not found in the current directory.
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
|
|
||||||
echo Formatting files with .clang-format...
|
|
||||||
set count=0
|
|
||||||
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"
|
|
||||||
clang-format -i -style=file "%%f"
|
|
||||||
set /a count+=1
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
echo Done. Processed !count! files.
|
|
||||||
Loading…
x
Reference in New Issue
Block a user