From 942a02c96b2e4b15dd80f6a27779f59bdafe01d5 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 28 Oct 2013 14:32:48 +0100 Subject: [PATCH] Added code style tool --- tools/fix_code_style.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tools/fix_code_style.sh diff --git a/tools/fix_code_style.sh b/tools/fix_code_style.sh new file mode 100755 index 000000000..a65439988 --- /dev/null +++ b/tools/fix_code_style.sh @@ -0,0 +1,19 @@ +#!/bin/sh +astyle \ + --style=allman \ + --indent=spaces=4 \ + --indent-cases \ + --indent-preprocessor \ + --break-blocks=all \ + --pad-oper \ + --pad-header \ + --unpad-paren \ + --keep-one-line-blocks \ + --keep-one-line-statements \ + --align-pointer=name \ + --align-reference=name \ + --suffix=none \ + --ignore-exclude-errors-x \ + --lineend=linux \ + --exclude=EASTL \ + $* -- 2.22.0