aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2020-08-26 11:47:39 -0700
committerGitHub <noreply@github.com>2020-08-26 11:47:39 -0700
commit4a08a10f0466ccced0a362388ec56df38002f249 (patch)
tree59f72b0e39f2022fd94ee8ab0e5764c2ba19fa19 /scripts
parent4a9b658141308ac0c7a26cd98c463466217ff162 (diff)
downloadvcpkg-4a08a10f0466ccced0a362388ec56df38002f249.tar.gz
vcpkg-4a08a10f0466ccced0a362388ec56df38002f249.zip
Allow use of VS LLVM clang-format. (#13142)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/azure-pipelines/windows/Check-CxxFormatting.ps18
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/azure-pipelines/windows/Check-CxxFormatting.ps1 b/scripts/azure-pipelines/windows/Check-CxxFormatting.ps1
index ab5376e0e..eaa9e692b 100644
--- a/scripts/azure-pipelines/windows/Check-CxxFormatting.ps1
+++ b/scripts/azure-pipelines/windows/Check-CxxFormatting.ps1
@@ -9,8 +9,12 @@ Param(
$clangFormat = 'C:\Program Files\LLVM\bin\clang-format.exe'
if (-not (Test-Path $clangFormat))
{
- Write-Error "clang-format not found; is it installed in the CI machines?"
- throw
+ $clangFormat = 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\Llvm\x64\bin\clang-format.exe'
+ if (-not (Test-Path $clangFormat))
+ {
+ Write-Error 'clang-format not found; is it installed in the CI machines?'
+ throw
+ }
}
$toolsrc = Get-Item "$Root/toolsrc"