Browse Source

Add Artistic Style formatting script.

tags/v1.1.4
Andrew Belt 5 years ago
parent
commit
214503b50e
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      astyle.sh

+ 22
- 0
astyle.sh View File

@@ -0,0 +1,22 @@
#!/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 \
$@

Loading…
Cancel
Save