Skip to content

Commit

Permalink
Updrade clang-tidy to 17
Browse files Browse the repository at this point in the history
  • Loading branch information
coldav committed Oct 15, 2024
1 parent 0460ef4 commit a3bce43
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/run_pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,9 @@ jobs:
- name: setup-ubuntu
uses: ./.github/actions/setup_ubuntu_build
with:
llvm_version: 16
llvm_version: 18
llvm_build_type: RelAssert

# installs clang-tidy
- name: setup-clang-tidy
run:
sudo apt-get install -y clang-tidy-12

# These need to match the configurations of build_pr_cache to use the cache effectively
- name: build initial config files
Expand Down Expand Up @@ -162,7 +158,7 @@ jobs:
HEAD..origin/${{ github.base_ref }} | \
grep -P '\.(c|cc|cxx|cpp|h|hh|hpp|hxx)$'` | \
tee /dev/stderr | \
parallel --verbose -- clang-tidy-12 --quiet -p "$PWD/build/" "{}"
parallel --verbose -- clang-tidy-18 --quiet -p "$PWD/build/" "{}"
# ^ When updating the clang-tidy version, the version used by the cmake
# target should match updated c.f. the `tidy` target
Expand All @@ -181,7 +177,7 @@ jobs:

- name: run clang-format
run: |
# we've installed clang-format-16 in the docker via pip, which just installs it as clang-format,
# we've installed clang-format-17 in the docker via pip, which just installs it as clang-format,
# so just use clang-format-diff and -b clang-format directly
git fetch origin ${{ github.base_ref }}
git diff --no-color origin/${{ github.base_ref }} | \
Expand Down

0 comments on commit a3bce43

Please sign in to comment.