mirror of https://github.com/zeldaret/tp.git
15 lines
376 B
Bash
Executable File
15 lines
376 B
Bash
Executable File
#!/bin/bash
|
|
if [[ -z "${CLANG_FORMAT_EXE}" ]]; then
|
|
CF="clang-format-10"
|
|
else
|
|
CF="${CLANG_FORMAT_EXE}"
|
|
fi
|
|
|
|
echo "formatting src/*"
|
|
find ./src -iname "*.h" -o -iname "*.cpp" | xargs $CF -i
|
|
echo "formatting libs/*"
|
|
find ./libs -iname "*.h" -o -iname "*.cpp" | xargs $CF -i
|
|
echo "formatting include/*"
|
|
find ./include -iname "*.h" -o -iname "*.cpp" | xargs $CF -i
|
|
echo "done"
|