blob: ad7a4bb01152d62eb3c2de18f3b89a394f1a6f94 [file] [log] [blame]
#
# K&R style
#
indent_with_tabs = 1 # 1=indent to level only, 2=indent with tabs
input_tab_size = 8 # original tab size
output_tab_size = 8 # new tab size
indent_columns = output_tab_size
# brace placement
nl_assign_brace = remove # "= {" vs "= \n {"
nl_enum_brace = remove # "enum {" vs "enum \n {"
nl_union_brace = remove # "union {" vs "union \n {"
nl_struct_brace = remove # "struct {" vs "struct \n {"
nl_do_brace = remove # "do {" vs "do \n {"
nl_if_brace = remove # "if () {" vs "if () \n {"
nl_for_brace = remove # "for () {" vs "for () \n {"
nl_else_brace = remove # "else {" vs "else \n {"
nl_while_brace = remove # "while () {" vs "while () \n {"
nl_switch_brace = remove # "switch () {" vs "switch () \n {"
nl_fcall_brace = add # "foo() {" vs "foo()\n{"
nl_fdef_brace = add # "int foo() {" vs "int foo()\n{"
nl_brace_while = remove
nl_brace_else = remove
# spaces around braces
sp_before_sparen = force # "if (" vs "if("
sp_after_sparen = force # "if () {" vs "if (){"
sp_assign = add
sp_else_brace = force
# nl_squeeze_ifdef = TRUE
# nl_func_var_def_blk = 1
# nl_before_case = 1
# nl_after_return = TRUE
nl_after_brace_open = false
nl_remove_extra_newlines = 2
mod_full_brace_do = add
mod_full_brace_for = add
mod_full_brace_if = add