Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions utils/clang-format.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
#!/usr/bin/env pwsh

# Check PowerShell version
if ($PSVersionTable.PSVersion.Major -lt 7) {
$currentVersion = $PSVersionTable.PSVersion
Write-Error @"
This script requires PowerShell 7 or later.
Current version: $currentVersion

Install PowerShell 7+:
- Or run: winget install Microsoft.PowerShell (Windows)
- Windows/macOS/Linux: https://github.com/PowerShell/PowerShell#get-powershell
"@
exit 1
}

$ToolConfig = @{
"clang-format" = @{
"linux-amd64" = @{
Expand Down
Loading