mirror of
https://github.com/microsoft/GSL.git
synced 2026-07-05 08:00:49 +02:00
14 lines
421 B
Batchfile
14 lines
421 B
Batchfile
|
|
@echo off
|
||
|
|
setlocal enabledelayedexpansion
|
||
|
|
|
||
|
|
"%VCINSTALLDIR%Tools\Llvm\bin\clang-format" -version
|
||
|
|
if %errorlevel% neq 0 (
|
||
|
|
echo [ERROR] clang-format not found, script should be called from a visual studio developer command prompt.
|
||
|
|
exit /b %errorlevel%
|
||
|
|
)
|
||
|
|
|
||
|
|
for %%f in (include\gsl\* tests\*.h tests\*.cpp) do (
|
||
|
|
echo formatting %%f
|
||
|
|
"%VCINSTALLDIR%Tools\Llvm\bin\clang-format" -i --assume-filename x.cpp "%%f"
|
||
|
|
)
|