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.
This commit is contained in:
@@ -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"
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user