mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Use clang-format 15
This commit is contained in:
parent
616f39a31e
commit
30052461da
1
.github/workflows/ensure-formatting.yaml
vendored
1
.github/workflows/ensure-formatting.yaml
vendored
@ -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
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user