...
All of these formatting options are good to keep in mind while you're writing code. But if you forget to implement them, astyle will take care of it.
Linux
Install astyle (sudo apt-get install astyle
). Then enter the following from the top-level directory for the GUI:
astyle --options=astyle.options --recursive "./Source/*.cpp" "./Source/*.h"
Windows
An AStyle extension can be installed in the Professional editions of Visual Studio (2010 and higher).
...