astyle formatting options changed
authordeztructor <denis.zalewsky@gmail.com>
Wed, 18 Nov 2009 11:04:31 +0000 (11:04 +0000)
committerdeztructor <denis.zalewsky@gmail.com>
Wed, 18 Nov 2009 11:04:31 +0000 (11:04 +0000)
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

scripts/format_code.sh

index 60ad045..4d3a8cc 100644 (file)
@@ -1,6 +1,7 @@
 #!/bin/sh
 
 #!/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 {} \;