summaryrefslogtreecommitdiff
path: root/run-clang-format.ps1
diff options
context:
space:
mode:
authorArchez <Archez@users.noreply.github.com>2025-04-03 15:23:47 -0400
committerGitHub <noreply@github.com>2025-04-03 15:23:47 -0400
commit2deea6e1055a3074a1edcdc6a1d952d544fcf8b1 (patch)
tree2b06b5877f3ec164124498cf9a7b39d096eb2a35 /run-clang-format.ps1
parentef8fa17e7c748362cafea73132a1e84fe209733b (diff)
Better verbose output for clang-format (#5306)
Diffstat (limited to 'run-clang-format.ps1')
-rw-r--r--run-clang-format.ps15
1 files changed, 3 insertions, 2 deletions
diff --git a/run-clang-format.ps1 b/run-clang-format.ps1
index 6aaf12ea4..ba91db620 100644
--- a/run-clang-format.ps1
+++ b/run-clang-format.ps1
@@ -41,8 +41,9 @@ $files = Get-ChildItem -Path $basePath\soh -Recurse -File `
(-not ($_.FullName -like "*\soh\src\*" -or $_.FullName -like "*\soh\include\*")))) -and `
(-not ($_.FullName -like "*\soh\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
}