Uncrustify is a source code beautifier for C, C++, C#, D, and Java.
The goals of this project are simple:
Create a highly configurable, easily modifiable source code beautifier.
Main features:
- 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
Enhancements:
- Add nl_after_vbrace_open
- Improve option descriptions
- Fix seg faults (check for NULL)
- Fix spacing for operators () and []
- Add sp_before_dc and sp_after_dc to control spacing around ::
- Split pos_class_comma from pos_comma
- Improve line splitting a littleno longer break at :: or -> or .
- Add nl_enum_leave_one_liners and nl_getset_leave_one_liners
- Add mod_remove_extra_semicolon
- Fix handling of macro-open and macro-close
- Add align_var_struct_thresh
- Improve handling of comments after braces
- Add support for Qt slots and signals
- Add align_typedef_amp_style and align_var_def_amp_style
- Add sp_attribute_paren and handling of the __attribute__ macro
- Add align_typedef_func, improve aligning of typedefs
- Add sp_after_semi_for_empty
The goals of this project are simple:
Create a highly configurable, easily modifiable source code beautifier.
Main features:
- 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
Enhancements:
- Add nl_after_vbrace_open
- Improve option descriptions
- Fix seg faults (check for NULL)
- Fix spacing for operators () and []
- Add sp_before_dc and sp_after_dc to control spacing around ::
- Split pos_class_comma from pos_comma
- Improve line splitting a littleno longer break at :: or -> or .
- Add nl_enum_leave_one_liners and nl_getset_leave_one_liners
- Add mod_remove_extra_semicolon
- Fix handling of macro-open and macro-close
- Add align_var_struct_thresh
- Improve handling of comments after braces
- Add support for Qt slots and signals
- Add align_typedef_amp_style and align_var_def_amp_style
- Add sp_attribute_paren and handling of the __attribute__ macro
- Add align_typedef_func, improve aligning of typedefs
- Add sp_after_semi_for_empty
No comments:
Post a Comment