From 2acb66424c20ea4ddd481b37e4b4dcee3acde632 Mon Sep 17 00:00:00 2001 From: deztructor Date: Wed, 18 Nov 2009 11:04:31 +0000 Subject: [PATCH] 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 --- scripts/format_code.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {} \; -- 1.7.9.5