From: deztructor Date: Wed, 18 Nov 2009 11:04:31 +0000 (+0000) Subject: astyle formatting options changed X-Git-Url: http://git.maemo.org/git/?p=qtrapids;a=commitdiff_plain;h=2acb66424c20ea4ddd481b37e4b4dcee3acde632 astyle formatting options changed astyle now formats brackets in "Linux kernel" form (no line break before after conditional statements before the bracket), uses tabs for indentation git-svn-id: file:///svnroot/qtrapids/trunk@35 42ac0dd5-4c8c-4c71-bb3e-ecdfe252ffda --- diff --git a/scripts/format_code.sh b/scripts/format_code.sh index 60ad045..4d3a8cc 100644 --- a/scripts/format_code.sh +++ b/scripts/format_code.sh @@ -1,6 +1,7 @@ #!/bin/sh -find ../src \( -name '*.cpp' -and -not -name 'moc_*' -or -name '*.h' -or -name '*.hpp' \) -exec astyle --style=ansi --suffix=none {} \; +find ../src \( -name '*.cpp' -and -not -name 'moc_*' -or -name '*.h' -or -name '*.hpp' \) \ + -exec astyle --style=ansi --suffix=none --brackets=linux --indent=tab {} \;