You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($verLine-match [regex]::Escape($PINNED_CLANG_FORMAT)) { return$cmd.Source }
107
+
}
108
+
returnGet-LlvmTool'clang-format.exe'
109
+
}
110
+
89
111
# --- Resolve MSBuild ---
90
112
$msbuildCandidates=@()
91
113
if ($vsInstall) {
@@ -107,9 +129,9 @@ function Get-SourceFiles {
107
129
108
130
switch ($mode) {
109
131
'format' {
110
-
$clangFormat=Get-LlvmTool'clang-format.exe'
132
+
$clangFormat=Get-ClangFormat
111
133
if (-not$clangFormat) {
112
-
Write-Host'clang-format not found. Install LLVM tools via Visual Studio or put clang-format.exe on PATH.'-ForegroundColor Red
134
+
Write-Host"clang-format not found. Install it with 'pip install clang-format==$PINNED_CLANG_FORMAT' or via Visual Studio LLVM tools."-ForegroundColor Red
113
135
exit1
114
136
}
115
137
Write-Host'Formatting source files...'
@@ -118,9 +140,9 @@ switch ($mode) {
118
140
exit0
119
141
}
120
142
'check-format' {
121
-
$clangFormat=Get-LlvmTool'clang-format.exe'
143
+
$clangFormat=Get-ClangFormat
122
144
if (-not$clangFormat) {
123
-
Write-Host'clang-format not found. Install LLVM tools via Visual Studio or put clang-format.exe on PATH.'-ForegroundColor Red
145
+
Write-Host"clang-format not found. Install it with 'pip install clang-format==$PINNED_CLANG_FORMAT' or via Visual Studio LLVM tools."-ForegroundColor Red
0 commit comments