From 1736687a2fac13e0cd76afe2e9a5c57243c56c55 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 6 Aug 2019 15:00:46 -0400 Subject: [PATCH] Use .astylerc options file rather than wrapper script for astyle. --- .astylerc | 24 ++++++++++++++++++++++++ astyle.sh | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) create mode 100644 .astylerc delete mode 100755 astyle.sh diff --git a/.astylerc b/.astylerc new file mode 100644 index 00000000..28360da1 --- /dev/null +++ b/.astylerc @@ -0,0 +1,24 @@ +# astyle settings file + +# Requires Artistic Style 3.1 +# http://astyle.sourceforge.net/ + +# Usage: +# astyle --suffix=none --options=.astylerc filename.cpp + +--style=java +--indent=tab +--indent-switches +--attach-closing-while +--pad-oper +--pad-comma +--pad-header +--unpad-paren +--align-pointer=name +--align-reference=name +--break-closing-braces +--break-one-line-headers +--attach-return-type +--attach-return-type-decl +--keep-one-line-statements +--close-templates diff --git a/astyle.sh b/astyle.sh deleted file mode 100755 index 926de5ce..00000000 --- a/astyle.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -# Requires Artistic Style 3.1 -# http://astyle.sourceforge.net/ - -astyle --suffix=none \ - --style=java \ - --indent=tab \ - --indent-switches \ - --attach-closing-while \ - --pad-oper \ - --pad-comma \ - --pad-header \ - --unpad-paren \ - --align-pointer=name \ - --align-reference=name \ - --break-closing-braces \ - --break-one-line-headers \ - --attach-return-type \ - --attach-return-type-decl \ - --close-templates \ - $@