Do use Doxygen for building documentation. It can infer a lot from the source as-is with the right settings. It gets better with suitable comments for each documented object. However, Doxygen won't help you regularize your code's format and layout.
For that task, you want a code beautifier. The classic tool was indent
. However, a much more versatile tool is Uncrustify, which is one of several beautifiers included in the clearly named Universal Indent GUI. The latter tool supports a wide array of languages, and provides a nice GUI interface to help you tune the settings to your preferred style.
All of the above are free and open source, incidentally.
Once you get into using Doxygen, you will want to also install the Graphviz tools so that it can draw you call graphs and other diagrams.