diff --git a/goodies/format b/goodies/format new file mode 100755 index 0000000..f517761 --- /dev/null +++ b/goodies/format @@ -0,0 +1,10 @@ +#!/bin/sh + +cd `dirname $0`/../ + +clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4, AllowShortFunctionsOnASingleLine: None, KeepEmptyLinesAtTheStartOfBlocks: false}" -i \ + `find ./src/ ./inc/ -type f -name "*.cpp" -o \ + -type f -name "*.c" -o \ + -type f -name "*.h" -o \ + -type f -name "*.hpp"` +