Uncrustify is a source code beautifier for C, C++, C#, D, and Java.
The goals of this project are simple:
Create a highly configurable, easily modifiable source code beautifier.
Product's homepage
Here are some key features of "Uncrustify":
· Ident code, aligning on parens, assignments, etc
· Align on '=' and variable definitions
· Align structure initializers
· Align #define stuff
· Align backslash-newline stuff
· Reformat comments (a little bit)
· Fix inter-character spacing
· Add or remove parens on return statements
· Add or remove braces on single-statement if/do/while/for statements
What's New in This Release: [ read full changelog ]
· This version adds a few new options, fixes many bugs, and adds UTF-8 and UTF-16 support.