Updated the astyle formatting
authorDavid Fort <contact@hardening-consulting.com>
Thu, 13 Oct 2016 20:01:53 +0000 (22:01 +0200)
committerDavid Fort <contact@hardening-consulting.com>
Fri, 14 Oct 2016 13:12:48 +0000 (15:12 +0200)
scripts/format_code.sh

index 99272f0..92ed9b9 100755 (executable)
@@ -31,9 +31,9 @@ if [ $# -le 0 ]; then
 fi
 
 $ASTYLE --lineend=linux --mode=c --indent=tab=4 --pad-header --pad-oper --style=allman --min-conditional-indent=0 \
-                                                          --indent-switches --indent-cases --indent-preprocessor -k1 --max-code-length=80 \
+                                                          --indent-switches --indent-cases --indent-preprocessor -k1 --max-code-length=100 \
                                                           --indent-col1-comments --delete-empty-lines --break-closing-brackets \
-                                                          --align-pointer=type --indent-labels -xe \
+                                                          --align-pointer=type --indent-labels -xe --break-after-logical \
                                                           --unpad-paren --break-blocks $@
 
 exit $?