Browse Source

Use .astylerc options file rather than wrapper script for astyle.

tags/v1.1.4
Andrew Belt 5 years ago
parent
commit
1736687a2f
2 changed files with 24 additions and 22 deletions
  1. +24
    -0
      .astylerc
  2. +0
    -22
      astyle.sh

+ 24
- 0
.astylerc View File

@@ -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

+ 0
- 22
astyle.sh View File

@@ -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 \
$@

Loading…
Cancel
Save