It's been a while since I tried to get indent to do that, and I came close but was never able to get it - either the braces were indented and the body was further indented, or the body was in the right place and the braces were no indented if I recall. Glad to see I'm not the only one that likes that style - however it is rare.
So I'd very much like to know the solution as well. $0.02 Ben >________________________________ > From: "Kritchevsky, Robert" <[email protected]> >To: "[email protected]" <[email protected]> >Sent: Tuesday, July 10, 2012 3:01 PM >Subject: indentation feature request > >Greetings. > >What a great tool is indent.exe. >Thanks so much for creating and maintaining it. > > >There are so many options that I suppose it likely I failed to find the >correct combination but just in case it really can't be configured to do this, >here is the format I would like to impose. > >Notice that the braces of the function are actually indented as well as the >braces following each if, for, etc. > > >void foo( void ) > { > if ( something happened ) > { > DoThis(); > } > } > > >Thanks a lot! > >Robert Kritchevsky >Voice: 858.762.5309 > >_______________________________________________ >bug-indent mailing list >[email protected] >https://lists.gnu.org/mailman/listinfo/bug-indent > > > _______________________________________________ bug-indent mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-indent
