Use dry-run to check for clang-format errors instead of inplace editing

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

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
# 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