Add code formatter
[platform/core/security/vist.git] / data / tool / formatter.sh
1 #!/bin/bash
2
3 astyle ./*.cpp,*.h,*.hpp \
4         --recursive \
5         --style=linux \
6         --attach-namespaces \
7         --attach-classes \
8         --attach-closing-while \
9         --suffix=none \
10         --indent=force-tab=4 \
11         --pad-oper \
12         --pad-header \
13         --unpad-paren \
14         --align-pointer=type \
15         --align-reference=type \
16         --indent-col1-comments \
17         --close-templates \
18         --max-code-length=100 \
19         --max-continuation-indent=100 \
20         --break-after-logical \
21         --convert-tabs \
22         --indent-preproc-define