Use clang-format 15

This commit is contained in:
Jan committed 2023-11-19 12:03:25 +01:00
1 parent 616f39a31e
commit 30052461da
2 files changed
+4 -1

No files matched your search

+1
View File
@@ -15,4 +15,5 @@ jobs:
- name: Test formatting for all files
working-directory: ${{ github.workspace }}
run: |
export CLANG_FORMAT_BIN='clang-format-15'
./scripts/check-format.sh
+3 -1
View File
@@ -3,4 +3,6 @@
# Go to repository root
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