summaryrefslogtreecommitdiff
path: root/tools
diff options
authorNeil Jagdish Patel <neil.patel@canonical.com>2011-07-21 15:59:25 +0100
committerNeil Jagdish Patel <neil.patel@canonical.com>2011-07-21 15:59:25 +0100
commitbdf50bd68778777a5938e105b57501966b958bab (patch)
treecf2da8578044b3a0f9bbed0d00894810150e6f5d /tools
parentd4f98728182004532bb13334f00cc4460d2bb1b3 (diff)
parent38deccb005d505e34015f2b6e2afc561ab407e57 (diff)
Update formatting to match style (as close as possible)
(bzr r1307)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/apply_unity_formatting.sh18
-rw-r--r--tools/astyle-formatter11
2 files changed, 29 insertions, 0 deletions
diff --git a/tools/apply_unity_formatting.sh b/tools/apply_unity_formatting.sh
new file mode 100755
index 000000000..1b9775052
--- /dev/null
+++ b/tools/apply_unity_formatting.sh
@@ -0,0 +1,18 @@
+astyle --options=astyle-formatter \
+ ../UnityCore/*.cpp \
+ ../UnityCore/*.h \
+ ../plugins/gtkloader/src/*.cpp \
+ ../plugins/gtkloader/src/*.h \
+ ../plugins/networkarearegion/src/*.cpp \
+ ../plugins/networkarearegion/src/*.h \
+ ../plugins/unitydialog/src/*.cpp \
+ ../plugins/unitydialog/src/*.h \
+ ../plugins/unity-mt-grab-handles/src/*.cpp \
+ ../plugins/unity-mt-grab-handles/src/*.h \
+ ../plugins/unityshell/src/*.cpp \
+ ../plugins/unityshell/src/*.h \
+ ../tests/*.cpp \
+ ../tests/*.h \
+ ../tests/unit/*.cpp \
+ ../tests/unit/*.h
+
diff --git a/tools/astyle-formatter b/tools/astyle-formatter
new file mode 100644
index 000000000..44c6b0434
--- /dev/null
+++ b/tools/astyle-formatter
@@ -0,0 +1,11 @@
+--indent=spaces -s2
+--style=bsd
+--indent-switches
+--min-conditional-indent=0
+--unpad-paren
+--pad-oper
+--pad-header
+--convert-tabs
+--align-pointer=type
+--max-instatement-indent=80
+