mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
clang-format
This commit is contained in:
parent
c94d3a048c
commit
b2ea7bcaab
@ -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.
|
||||||
Loading…
x
Reference in New Issue
Block a user