Cleanup source with Artistic Style
Quoth the website: "Artistic Style is a source code indenter, formatter, and beautifier for the C, C++, C# and Java programming languages." Right now, our source tree contains many different source formatting styles. This program can be used to clean things up.
Here is a config file that I came up with that mirrors our own code formatting guidelines:
We can keep these settings in a file called astylerc in the root of our source tree.
However, this cleanup is not something we should do lightly. If anyone has any outstanding patches, they will be much more difficult to apply after the cleanup. There is also the small possibility that this cleanup might break functioning code for some obscure reason, so we ought to heavily test the result.
Just as a note, there is an AStyle plugin that comes with codeblocks too