From 7c45a71f2252c4b47244ba5cb500d9a761c12287 Mon Sep 17 00:00:00 2001 From: kakwa Date: Tue, 23 Aug 2016 19:38:39 +0200 Subject: [PATCH] add format script --- goodies/format | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 goodies/format 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"` +