Browse Source

Added code style tool

QGC4.4
Lorenz Meier 11 years ago
parent
commit
942a02c96b
  1. 19
      tools/fix_code_style.sh

19
tools/fix_code_style.sh

@ -0,0 +1,19 @@ @@ -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 \
$*
Loading…
Cancel
Save