uncrustify.cfg (1516B)
1 input_tab_size = 2 2 output_tab_size = 2 3 4 indent_columns = 2 5 indent_with_tabs = 0 6 indent_case_brace = 2 7 indent_label=0 8 9 code_width=80 10 cmt_width=code_width 11 #cmd_width=80 12 13 # Leave most comments alone for now 14 cmt_indent_multi=false 15 sp_cmt_cpp_start=add 16 17 sp_not=add 18 19 sp_func_call_user_paren_paren=remove 20 sp_inside_fparen=remove 21 sp_after_cast=add 22 23 ls_for_split_full=true 24 ls_func_split_full=true 25 ls_code_width=true 26 27 # Arithmetic operations in wrapped expressions should be at the start 28 # of the line. 29 pos_arith=lead 30 31 # Fully parenthesize boolean exprs 32 mod_full_paren_if_bool=false 33 34 # Braces should be on their own line 35 nl_fdef_brace=add 36 nl_enum_brace=add 37 nl_struct_brace=add 38 nl_union_brace=add 39 nl_if_brace=add 40 nl_brace_else=add 41 nl_elseif_brace=add 42 nl_while_brace=add 43 nl_switch_brace=add 44 45 # no newline between "else" and "if" 46 nl_else_if=remove 47 48 nl_func_paren=remove 49 nl_assign_brace=remove 50 51 # No extra newlines that cause noisy diffs 52 nl_start_of_file=remove 53 # If there's no new line, it's not a text file! 54 nl_end_of_file=add 55 56 sp_inside_paren = remove 57 58 sp_arith = add 59 sp_arith_additive = add 60 61 # We want spaces before and after "=" 62 sp_before_assign = add 63 sp_after_assign = add 64 65 # we want "char *foo;" 66 sp_after_ptr_star = remove 67 sp_between_ptr_star = remove 68 69 # we want "if (foo) { ... }" 70 sp_before_sparen = add 71 72 sp_inside_fparen = remove 73 74 # add space before function call and decl: "foo (x)" 75 sp_func_call_paren = add 76 sp_func_proto_paren = add 77 sp_func_proto_paren_empty = add 78 sp_func_def_paren = add 79 sp_func_def_paren_empty = add