diff --git a/run-clang-format.ps1 b/run-clang-format.ps1 index 3de9fa4da2..c617df9443 100644 --- a/run-clang-format.ps1 +++ b/run-clang-format.ps1 @@ -41,8 +41,9 @@ $files = Get-ChildItem -Path $basePath\mm -Recurse -File ` (-not ($_.FullName -like "*\mm\src\*" -or $_.FullName -like "*\mm\include\*")))) -and ` (-not ($_.FullName -like "*\mm\assets\*")) } -foreach ($file in $files) { +for ($i = 0; $i -lt $files.Length; $i++) { + $file = $files[$i] $relativePath = $file.FullName.Substring($basePath.Length + 1) - Write-Host "Formatting $relativePath" + Write-Host "Formatting [$($i+1)/$($files.Length)] $relativePath" .\clang-format.exe -i $file.FullName }