ci: Upgrade to clang-tidy-19

This commit is contained in:
Eduardo Almeida
2024-10-30 19:23:19 +00:00
parent a5ea0088d2
commit 93d45be986

View File

@@ -27,7 +27,7 @@ check-style-clang-format-15:
CLANG_FORMAT_VERSION: 15
# Clang-tidy
clang-tidy-18:
clang-tidy-19:
stage: code-linting
image: ubuntu:rolling
variables:
@@ -38,7 +38,7 @@ clang-tidy-18:
- apt update
- DEBIAN_FRONTEND=noninteractive apt install -y
clang cmake
clang-tidy clang-tidy-18
clang-tidy clang-tidy-19
libboost-all-dev libeigen3-dev libgtk-3-dev libopenmpi-dev libsqlite3-dev
gsl-bin libgsl-dev libgsl28
git ssh
@@ -58,13 +58,13 @@ clang-tidy-18:
# File paths generated by git diff are relative to the working tree. Therefore, iregex should only contain paths relative to the working tree.
- if [[ $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH ]] || (grep -q ".clang-tidy" $FILES_CHANGED) ; then
echo "Running full clang-tidy" ;
run-clang-tidy-18 -p cmake-cache/ -quiet
run-clang-tidy-19 -p cmake-cache/ -quiet
1> $CLANG_TIDY_OUTPUT
2> /dev/null ;
else
echo "Running clang-tidy-diff" ;
git diff -U0 upstream/$CI_DEFAULT_BRANCH |
clang-tidy-diff-18.py -path cmake-cache/ -p1 -quiet -use-color
clang-tidy-diff-19.py -path cmake-cache/ -p1 -quiet -use-color
-iregex "(contrib|examples|src|scratch|utils)\/.+\.(cpp|cc|cxx|h|hpp)"
1> $CLANG_TIDY_OUTPUT
2> /dev/null || true ;