From 1eec546103f637a47f57d25ccc7245e28bcf60fe Mon Sep 17 00:00:00 2001 From: jared Date: Thu, 11 Jul 2024 15:05:48 +0800 Subject: [PATCH] update format script --- 3rdparty/TaoCommon/clang-foramt-All.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/3rdparty/TaoCommon/clang-foramt-All.ps1 b/3rdparty/TaoCommon/clang-foramt-All.ps1 index 3138c8ca..8650dcbc 100644 --- a/3rdparty/TaoCommon/clang-foramt-All.ps1 +++ b/3rdparty/TaoCommon/clang-foramt-All.ps1 @@ -3,6 +3,8 @@ $currentDir=Get-Location Write-Host "currentDir" $currentDir Write-Host "scriptDir" $scriptDir $names="*.h","*.cpp","*.c","*.hpp" +$env:Path="C:\Program Files\LLVM\bin;C:\Qt\Tools\QtCreator\bin\clang\bin;$env:Path" Get-ChildItem -Include $names -Recurse $currentDir | ForEach-Object { clang-format -i $_.FullName -} \ No newline at end of file +} +timeout /t 3 \ No newline at end of file