clang-format-all.ps1 412 B

123456789
  1. $clang_format = Join-Path -Path $PSScriptRoot -ChildPath "flipperzero-firmware_official_dev/toolchain/x86_64-windows/bin/clang-format.exe"
  2. Push-Location $PSScriptRoot
  3. Get-ChildItem -Path "totp" -File -Recurse -Include "*.c", "*.h" | ForEach-Object {
  4. if (!($_.FullName -like '*wolfssl*')) {
  5. Write-Host "Formatting $($_.FullName)"
  6. & $clang_format -i -style=file $_.FullName
  7. }
  8. }
  9. Pop-Location