Skip to content

Commit ca1d1db

Browse files
committed
Reactivate clang-tidy
1 parent 861d1dd commit ca1d1db

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
cd "${env:GITHUB_WORKSPACE}"
2-
3-
# allow errors as some files can't be compiled on all platforms
4-
$oldErrorActio = $ErrorActionPreference
5-
$ErrorActionPreference="Continue"
6-
git ls-files *.cpp | ForEach-Object -Parallel {clang-tidy -p $env:BUILD_DIR/compile_commands.json $_ } -ThrottleLimit 5 | Tee-Object -Path "$([System.IO.Path]::GetTempPath())/clang-tidy.log"
7-
$ErrorActionPreference = $oldErrorActio
1+
run-clang-tidy -p "$env:BUILD_DIR" | Tee-Object -Path "$([System.IO.Path]::GetTempPath())/clang-tidy.log"

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ jobs:
164164
165165
- name: Clang tidy
166166
# disable for now
167-
if: ${{ false && github.event_name != 'pull_request' }}
167+
if: ${{ true || github.event_name != 'pull_request' }}
168168
run: |
169169
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c libs/llvm python-modules/pip
170170
& "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --run python3 -m pip install clang-html

0 commit comments

Comments
 (0)