Beautify your c/c++ source code

http://uncrustify.sourceforge.net/

  • Ident code, aligning on parens, assignments, etc
  • Align on '=' and variable definitions
  • Align structure initializers
  • Align #define stuff
  • Align backslash-newline stuff
  • Reformat comments (a little bit)
  • Fix inter-character spacing
  • Add or remove parens on return statements
  • Add or remove braces on single-statement if/do/while/for statements
  • Supports embedded SQL 'EXEC SQL' stuff
  • Highly configurable - 385 configurable options as of version 0.56

Output :

 
posted @ 2010-05-29 21:08  qiang.xu  阅读(321)  评论(0编辑  收藏  举报