There doesn't seem to be a single, "standard" code-formatting tool. There's good reason for this: reformatting huge blocks of code is almost always a Bad Idea(1). If nothing else, six months down the line you ARE going to have to merge in changes from another branch, and if you've reformatted your branch, you are doomed. Better to just adapt to the existing code style in existing modules.
1) I would say "always," except for the one exception I've come across: about a thousand lines of comments, containing railroad-track diagrams. They were the ONLY documentation for a critical part the syntax of a published programming language. The previous code owner had edited the using the editor from MASM, which had done very strange things to the whitespace-- lots of intermixed spaces and tabs. The code referred to by the comments did not compile, and I had to know what it was supposed to do... I spent a week reformatting those railroad-track diagrams.