New issue 38 by ryan.pav...@gmail.com: Request for Enhancement: an Astyle
configuration file
http://code.google.com/p/vrjuggler/issues/detail?id=38
Astyle - http://astyle.sourceforge.net/ - is a great tool for keeping a
uniform code style. I know that you have a specific style you like to see
in submitted code, and it would be much easier to always meet that standard
with an "executable format" of it - an astyle configuration file in the
source tree that does minimal reformatting to match the desired style.
astyle can take in --options=astylerc to set things up properly so at least
spacing and line breaks are automatic.
Based on the (somewhat outdated?) wiki page on code style, here's what I
came up with as a starting point:
--style=allman
--break-closing-brackets
--add-brackets
--indent=spaces=3
--unpad-paren
--pad-header
--pad-paren-in
unsure: --indent-namespaces
unsure: --indent-preprocessor
NOT: --indent-classes
NOT: --indent-cases
The docs are here: http://astyle.sourceforge.net/astyle.html