1indent_with_tabs = 2 # 1=indent to level only, 2=indent with tabs 2input_tab_size = 8 # original tab size 3output_tab_size = 8 # new tab size 4indent_columns = output_tab_size 5indent_label = 1 # pos: absolute col, neg: relative column 6indent_switch_case = 0 # number 7 8# 9# inter-symbol newlines 10# 11 12nl_enum_brace = remove # "enum {" vs "enum \n {" 13nl_union_brace = remove # "union {" vs "union \n {" 14nl_struct_brace = remove # "struct {" vs "struct \n {" 15nl_do_brace = remove # "do {" vs "do \n {" 16nl_if_brace = remove # "if () {" vs "if () \n {" 17nl_for_brace = remove # "for () {" vs "for () \n {" 18nl_else_brace = remove # "else {" vs "else \n {" 19nl_while_brace = remove # "while () {" vs "while () \n {" 20nl_switch_brace = remove # "switch () {" vs "switch () \n {" 21nl_brace_while = remove # "} while" vs "} \n while" - cuddle while 22nl_brace_else = remove # "} \n else" vs "} else" 23nl_func_var_def_blk = 1 24nl_fcall_brace = remove # "list_for_each() {" vs "list_for_each()\n{" 25nl_fdef_brace = add # "int foo() {" vs "int foo()\n{" 26 27# 28# Source code modifications 29# 30 31mod_paren_on_return = ignore # "return 1;" vs "return (1);" 32mod_full_brace_if = add # "if() { } else { }" vs "if() else" 33 34# 35# inter-character spacing options 36# 37 38sp_sizeof_paren = remove # "sizeof (int)" vs "sizeof(int)" 39sp_before_sparen = force # "if (" vs "if(" 40sp_after_sparen = force # "if () {" vs "if (){" 41sp_inside_braces = add # "{ 1 }" vs "{1}" 42sp_inside_braces_struct = add # "{ 1 }" vs "{1}" 43sp_inside_braces_enum = add # "{ 1 }" vs "{1}" 44sp_assign = add 45sp_arith = add 46sp_bool = add 47sp_compare = add 48sp_assign = add 49sp_after_comma = add 50sp_func_def_paren = remove # "int foo (){" vs "int foo(){" 51sp_func_call_paren = remove # "foo (" vs "foo(" 52sp_func_proto_paren = remove # "int foo ();" vs "int foo();" 53sp_inside_fparen = remove # "func( arg )" vs "func(arg)" 54sp_else_brace = add # ignore/add/remove/force 55sp_before_ptr_star = add # ignore/add/remove/force 56sp_after_ptr_star = remove # ignore/add/remove/force 57sp_between_ptr_star = remove # ignore/add/remove/force 58sp_inside_paren = remove # remove spaces inside parens 59sp_paren_paren = remove # remove spaces between nested parens 60sp_inside_sparen = remove # remove spaces inside parens for if, while and the like 61sp_brace_else = add # ignore/add/remove/force 62sp_before_nl_cont = ignore 63sp_cmt_cpp_start = add 64sp_brace_typedef = add # }typedefd_name -> } typedefd_name 65 66cmt_sp_after_star_cont = 1 67# 68# Aligning stuff 69# 70 71align_with_tabs = FALSE # use tabs to align 72align_on_tabstop = TRUE # align on tabstops 73align_enum_equ_span = 4 # '=' in enum definition 74align_struct_init_span = 0 # align stuff in a structure init '= { }' 75align_right_cmt_span = 3 76align_nl_cont = TRUE 77 78 79 80sp_pp_concat = ignore # ignore/add/remove/force 81