openframeworks/openFrameworks — pull request #1542 by bilderbuchi (2012-09-04 18:05:17+00:00)
Title: Code styling tool for all of OF

I made a styling script for all of OF. It automatically formats OF core, files in `src` folders in official addons and in all examples.
Just run `./styleWholeOF` to do this. you can redirect output to a `.log` file if you want, those are being ignored in gitignore.

I have not yet included the formatting commit itself. It's huge, and it may be better to wait until after 0072, but now everyone can easily do this him/herself to check the changes.

It's not yet totally automated (so no return values etc.), so we can't use it for automated CI checks yet.

@ofTheo @arturoc @kylemcd and whoever is in Maine, I guess this could be useful for you - if you read the already formatted core, the code style can at the same time be assessed and any edge cases identified (so we can tweak it).

Code styling needs `uncrustify >= 0.58` (for that one mal-formatted `>=` in a template+trinary logic statement), but this is already in homebrew and macports afaik, and for ubuntu users the 12.10 package works flawlessly even in 12.04.