Artistic Style is a re-indenter and reformatter for C, C++ and Java source code
https://astyle.sourceforge.net/