Fixed formatting, added proper header padding and not removing empty lines.

This commit is contained in:
Armin Novak 2014-05-23 15:30:04 +02:00
parent 3ae7dd1237
commit c6f97b9e26
1 changed files with 2 additions and 2 deletions

4
scripts/format_code.sh Normal file → Executable file
View File

@ -15,9 +15,9 @@ if [ $# -le 0 ]; then
exit 2
fi
$ASTYLE --lineend=linux --mode=c --indent=force-tab=4 --brackets=linux \
$ASTYLE --lineend=linux --mode=c --indent=force-tab=4 --brackets=linux --style=bsd --pad-header \
--indent-switches --indent-cases --indent-preprocessor \
--indent-col1-comments --delete-empty-lines --break-closing-brackets \
--break-elseifs --align-pointer=name --indent-labels --brackets=break \
--unpad-paren $@
--unpad-paren --break-blocks $@
exit $?