Use clang-format 15

This commit is contained in:
Jan 2023-10-02 23:46:35 +02:00
parent 616f39a31e
commit 30052461da
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C
2 changed files with 4 additions and 1 deletions

View File

@ -15,4 +15,5 @@ jobs:
- name: Test formatting for all files - name: Test formatting for all files
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: | run: |
export CLANG_FORMAT_BIN='clang-format-15'
./scripts/check-format.sh ./scripts/check-format.sh

View File

@ -3,4 +3,6 @@
# Go to repository root # Go to repository root
cd "$(dirname "$0")/.." || exit 2 cd "$(dirname "$0")/.." || exit 2
find ./src ./test -iname '*.h' -o -iname '*.cpp' | xargs clang-format -Werror -ferror-limit=1 --dry-run CLANG_FORMAT_BIN="${CLANG_FORMAT_BIN:-clang-format}"
find ./src ./test -iname '*.h' -o -iname '*.cpp' | xargs $CLANG_FORMAT_BIN -Werror -ferror-limit=1 --dry-run