regex-engine/scripts/format.sh

7 lines
189 B
Bash
Executable File

#!/bin/sh
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