Skip to content

Commit

Permalink
Install clang-format-15
Browse files Browse the repository at this point in the history
  • Loading branch information
Laupetin committed Oct 2, 2023
1 parent 8ec83ba commit 3c25d8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ensure-formatting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion scripts/check-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3c25d8c

Please sign in to comment.