blob: f07d1f718a5758654d1dec6c61d49a6952865a5a [file] [log] [blame]
Anas Nashif268fa152017-02-03 10:32:41 -05001indent_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_else_brace = add # ignore/add/remove/force
54sp_before_ptr_star = add # ignore/add/remove/force
55sp_after_ptr_star = remove # ignore/add/remove/force
56sp_between_ptr_star = remove # ignore/add/remove/force
57sp_inside_paren = remove # remove spaces inside parens
58sp_paren_paren = remove # remove spaces between nested parens
59sp_inside_sparen = remove # remove spaces inside parens for if, while and the like
60sp_brace_else = add # ignore/add/remove/force
61sp_before_nl_cont = ignore
62sp_cmt_cpp_start = add
Patrick Boettcherd485d6c2018-03-16 13:41:38 +010063sp_brace_typedef = add # }typedefd_name -> } typedefd_name
Anas Nashif268fa152017-02-03 10:32:41 -050064
Patrick Boettcherd485d6c2018-03-16 13:41:38 +010065cmt_sp_after_star_cont = 1
Anas Nashif268fa152017-02-03 10:32:41 -050066#
67# Aligning stuff
68#
69
70align_with_tabs = FALSE # use tabs to align
71align_on_tabstop = TRUE # align on tabstops
72align_enum_equ_span = 4 # '=' in enum definition
73align_struct_init_span = 0 # align stuff in a structure init '= { }'
74align_right_cmt_span = 3
75align_nl_cont = TRUE
76
77
78
79sp_pp_concat = ignore # ignore/add/remove/force