diff --git a/.ci/check_format.sh b/.ci/check_format.sh index c7c38b45a9..582da1fe1c 100755 --- a/.ci/check_format.sh +++ b/.ci/check_format.sh @@ -89,17 +89,17 @@ while read -r file; do if [[ "$is_cpp" == true ]]; then # ClangFormat if [[ "$_fix" == true ]]; then - clang-format-16 -i "$file" + clang-format-17 -i "$file" else # Workaround "set -e" and store exit code format_exit_code=0 - output="$(clang-format-16 --dry-run --Werror "$file" 2>&1)" || format_exit_code=$? + output="$(clang-format-17 --dry-run --Werror "$file" 2>&1)" || format_exit_code=$? if [[ $format_exit_code -ne 0 ]]; then EXIT_CODE=1 echo "::error::ClangFormat found issues in: $file" #echo "$output" # Show detailed diff. Requires ClangFormat to run again, but should mostly affect only a few files. - clang-format-16 "$file" | diff --color=always -u "$file" - || true + clang-format-17 "$file" | diff --color=always -u "$file" - || true fi fi diff --git a/.ci/install-clang-format.sh b/.ci/install-clang-format.sh index 164a537d78..9fd38c381e 100755 --- a/.ci/install-clang-format.sh +++ b/.ci/install-clang-format.sh @@ -3,5 +3,5 @@ set -e set -o pipefail wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc -sudo add-apt-repository --yes "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" -sudo apt-get install -y clang-format-16 +sudo add-apt-repository --yes "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-17 main" +sudo apt-get install -y clang-format-17