Skip to content

Commit e922ae9

Browse files
committed
ci: Upgrade clang-tidy to version 18
1 parent cf00a3a commit e922ae9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/tests/gitlab-ci-code-linting.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ check-style-clang-format-14:
3737
CLANG_FORMAT_VERSION: 14
3838

3939
# Clang-tidy
40-
clang-tidy-17:
40+
clang-tidy-18:
4141
stage: code-linting
4242
image: ubuntu:rolling
4343
variables:
@@ -48,7 +48,7 @@ clang-tidy-17:
4848
- apt update
4949
- DEBIAN_FRONTEND=noninteractive apt install -y
5050
clang cmake
51-
clang-tidy clang-tidy-17
51+
clang-tidy clang-tidy-18
5252
libboost-all-dev libeigen3-dev libgtk-3-dev libopenmpi-dev libsqlite3-dev
5353
gsl-bin libgsl-dev libgsl27
5454
git ssh
@@ -68,13 +68,13 @@ clang-tidy-17:
6868
# File paths generated by git diff are relative to the working tree. Therefore, iregex should only contain paths relative to the working tree.
6969
- if [[ $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ]] || (grep -q ".clang-tidy" $FILES_CHANGED) ; then
7070
echo "Running full clang-tidy" ;
71-
run-clang-tidy-17 -p cmake-cache/ -quiet
71+
run-clang-tidy-18 -p cmake-cache/ -quiet
7272
1> $CLANG_TIDY_OUTPUT
7373
2> /dev/null ;
7474
else
7575
echo "Running clang-tidy-diff" ;
7676
git diff -U0 upstream/$CI_DEFAULT_BRANCH |
77-
clang-tidy-diff-17.py -path cmake-cache/ -p1 -quiet -use-color
77+
clang-tidy-diff-18.py -path cmake-cache/ -p1 -quiet -use-color
7878
-iregex "(contrib|examples|src|scratch|utils)\/.+\.(cpp|cc|cxx|h|hpp)"
7979
1> $CLANG_TIDY_OUTPUT
8080
2> /dev/null ;

0 commit comments

Comments
 (0)