From 807e2662f8dd0c39eff37d02c12b142c79ccd753 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Wed, 5 Oct 2016 14:00:40 +0300 Subject: [PATCH] Add config for uncrustify Original: https://strcpy.net/mark/libevent-uncrustify.cfg (@ellzey) --- .uncrustify | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .uncrustify diff --git a/.uncrustify b/.uncrustify new file mode 100644 index 0000000000..da2daa1350 --- /dev/null +++ b/.uncrustify @@ -0,0 +1,55 @@ +input_tab_size = 8 +output_tab_size = 8 +indent_with_tabs = 2 +indent_cmt_with_tabs = false +indent_brace_parent = false +indent_func_call_param = true +indent_func_def_param = true +sp_enum_before_assign = add +sp_enum_after_assign = add +sp_inside_paren = remove +sp_paren_brace = add +sp_before_ptr_star = add +sp_before_unnamed_ptr_star = add +sp_between_ptr_star = remove +sp_after_ptr_star = remove +sp_after_ptr_star_func = add +sp_before_ptr_star_func = add +sp_before_sparen = add +sp_inside_sparen = remove +sp_inside_sparen_close = remove +sp_after_sparen = add +sp_sparen_brace = add +sp_special_semi = remove +sp_before_semi_for = remove +sp_after_comma = add +sp_after_cast = remove +sp_inside_braces_struct = add +sp_type_func = remove +sp_func_def_paren = remove +sp_inside_fparen = remove +sp_fparen_brace = add +sp_func_call_paren = remove +sp_else_brace = add +sp_after_oc_block_caret = remove +align_keep_tabs = true +align_with_tabs = true +align_on_tabstop = true +nl_fcall_brace = remove +nl_enum_brace = remove +nl_struct_brace = remove +nl_union_brace = remove +nl_if_brace = remove +nl_brace_else = remove +nl_elseif_brace = remove +nl_else_brace = remove +nl_else_if = remove +nl_for_brace = remove +sp_after_semi_for_empty = remove +nl_while_brace = remove +nl_do_brace = remove +nl_brace_while = remove +nl_switch_brace = remove +nl_func_type_name = add +nl_fdef_brace = add +mod_paren_on_return = ignore