darling-cocotron/formatting/format.sh
2020-05-12 17:04:15 -04:00

13 lines
301 B
Bash
Executable File

#!/bin/sh
export PATH="$(pwd)/llvm/build/bin:${PATH}"
set -e
cd ../
clang-format --version
find . -path './formatting' -prune -o -path './.git' -prune -o \( \( -name '*.m' -o -name '*.mm' -o -name '*.h' -o -name '*.cpp' -o -name '*.c' \) -a -exec clang-format --verbose --style file -i {} \; \)