summaryrefslogtreecommitdiff
path: root/run-clang-format.ps1
diff options
context:
space:
mode:
authorGlought <Glought@users.noreply.github.com>2026-01-09 10:04:15 -0800
committerGitHub <noreply@github.com>2026-01-09 13:04:15 -0500
commit54d3acd8482854c85542dcff3e414af8cefe2bcc (patch)
treefe407823aeb1aca545a2fa507547107a4eca2941 /run-clang-format.ps1
parent0ebb3c8274cb3285346d153e982dccdb9e5ff342 (diff)
Port how "run-clang-format.ps1" displays its progress from Soh (#1444)
- instead of just "Formatting mm\2s2h\DeveloperTools\ActorViewer.cpp its "Formatting [40/1576] mm\2s2h\DeveloperTools\ActorViewer.cpp"
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 3de9fa4da..c617df944 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
}