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