From eda96ffadc824742bf937c58f5295c86389a6d5e Mon Sep 17 00:00:00 2001 From: Finlay Davidson Date: Tue, 3 Jan 2023 14:05:30 +0000 Subject: Update clang-{format,tidy} to 14 Also add configuration options only available in 13 and 14. Fixes warning about -fstack-usage in clang-tidy check. --- tests/test-format.sh | 2 +- tests/test-tidy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test-format.sh b/tests/test-format.sh index fd3201d0..693377b9 100755 --- a/tests/test-format.sh +++ b/tests/test-format.sh @@ -20,7 +20,7 @@ do *.cpp|*.h) echo Checking "$file" PATCH="$(basename "$file").patch" - git clang-format-12 -q --style file --diff "$GITHUB_BASE_REF" "$file" > "$PATCH" + git clang-format-14 -q --style file --diff "$GITHUB_BASE_REF" "$file" > "$PATCH" if [ -s "$PATCH" ] then printf "\033[31mError:\033[0m Formatting error in %s\n" "$file" diff --git a/tests/test-tidy.sh b/tests/test-tidy.sh index f1ee5fed..522f6e2a 100755 --- a/tests/test-tidy.sh +++ b/tests/test-tidy.sh @@ -17,7 +17,7 @@ do src/libs/*|src/FreeRTOS/*) continue ;; *.cpp|*.h) echo "::group::$file" - clang-tidy-12 -p build "$file" || true + clang-tidy-14 -p build "$file" || true echo "::endgroup::" esac done -- cgit v1.2.3