regex-engine/scripts/format.sh

6 lines
179 B
Bash

cd "$(git rev-parse --show-toplevel)"
find . -not \( -path './.git' -prune \) \
-not \( -path './build' -prune \) \
-name '*.c' -o -name '*.h' \
| xargs -n 1 clang-format -i