[scripts][codestyle] add some comments on the codestyle script

This commit is contained in:
Travis Geiselbrecht
2020-05-16 15:33:00 -07:00
parent 6e0762fb53
commit 35c3742b6c

View File

@@ -3,5 +3,11 @@
# formatting script using the astyle tool
# use -A2 (java style braces)
# 4 space indents, convert tabs to spaces
#
# switches documented at http://astyle.sourceforge.net/astyle.html
#
# optional switches to note:
# --add-braces will add { } for every conditional, including one liners
astyle -A2 --align-pointer=name --indent=spaces=4 --indent-switches --keep-one-line-blocks --pad-header --convert-tabs $@
astyle -A2 --align-pointer=name --indent=spaces=4 --indent-switches \
--keep-one-line-blocks --pad-header --convert-tabs $@