I'm looking to do the exact same thing. We're importing a bunch of legacy
code, and the formatting is a disaster. Ident and astyle would let us do
it with a script, but we like the ease and flexibility of CDT's code style
tool for tweaking whitespace and other preferences.