Add code formatter 77/234377/3
authorSangwan Kwon <sangwan.kwon@samsung.com>
Tue, 26 May 2020 01:48:12 +0000 (10:48 +0900)
committerSangwan Kwon <sangwan.kwon@samsung.com>
Wed, 27 May 2020 06:04:53 +0000 (15:04 +0900)
Change-Id: I5ea1949677848c1810ab3ff902041662eda0736a
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
data/tool/formatter.sh [new file with mode: 0755]

diff --git a/data/tool/formatter.sh b/data/tool/formatter.sh
new file mode 100755 (executable)
index 0000000..72736c9
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+astyle ./*.cpp,*.h,*.hpp \
+       --recursive \
+       --style=linux \
+       --attach-namespaces \
+       --attach-classes \
+       --attach-closing-while \
+       --suffix=none \
+       --indent=force-tab=4 \
+       --pad-oper \
+       --pad-header \
+       --unpad-paren \
+       --align-pointer=type \
+       --align-reference=type \
+       --indent-col1-comments \
+       --close-templates \
+       --max-code-length=100 \
+       --max-continuation-indent=100 \
+       --break-after-logical \
+       --convert-tabs \
+       --indent-preproc-define