source: configuration/uncrustify/uncrustify.cfg @ 1376:0c27d6fe47b2

Revision 1376:0c27d6fe47b2, 3.1 KB checked in by niam, 3 years ago (diff)

uncrustify cfg: ident with spaces

Line 
1#
2
3indent_with_tabs        = 0
4
5input_tab_size          = 4             # original tab size
6output_tab_size         = 4             # new tab size
7
8indent_columns          = output_tab_size
9
10indent_brace            = 0
11indent_braces           = false
12indent_switch_case      = indent_columns
13indent_access_spec      = -2
14indent_access_spec_body = false
15indent_class            = true
16indent_class_colon      = true
17indent_namespace        = true
18
19indent_func_class_param = false
20indent_func_proto_param = false
21indent_func_def_param   = false
22indent_func_call_param  = false
23indent_func_ctor_var_param = false
24indent_template_param   = false
25
26indent_align_string     = true
27indent_else_if          = false
28
29pp_indent               = remove
30
31#
32# Source code modifications
33#
34
35#mod_full_brace_nl      = 3             # don't remove if more than 3 newlines
36#mod_full_brace_for     = remove
37#mod_full_brace_if      = remove
38#mod_full_brace_while   = remove
39#mod_full_brace_do      = remove
40
41#
42# inter-character spacing options
43#
44sp_return_paren         = add           # "return (1);" vs "return(1);"
45sp_sizeof_paren         = remove        # "sizeof (int)" vs "sizeof(int)"
46sp_before_sparen        = add           # "if (" vs "if("
47sp_after_cast           = remove        # "(int) a" vs "(int)a"
48sp_inside_braces        = add           # "{ 1 }" vs "{1}"
49sp_inside_braces_struct = add           # "{ 1 }" vs "{1}"
50sp_inside_braces_enum   = add           # "{ 1 }" vs "{1}"
51sp_assign               = add
52sp_arith                = add
53sp_bool                 = add
54sp_compare              = add
55sp_assign               = add
56sp_paren_paren          = remove
57sp_before_byref         = add
58sp_after_byref          = remove
59sp_before_comma         = remove
60sp_after_comma          = add
61sp_inside_sparen        = remove
62sp_func_def_paren       = remove        # "int foo (){" vs "int foo(){"
63sp_func_call_paren      = remove        # "foo (" vs "foo("
64sp_func_proto_paren     = remove        # "int foo ();" vs "int foo();"
65sp_brace_else           = add
66sp_else_brace           = add
67sp_try_brace            = add
68sp_catch_brace          = add
69sp_brace_catch          = add
70sp_sparen_brace         = add
71sp_paren_brace          = add
72
73#
74# Aligning stuff
75#
76
77align_keep_tabs          = false
78align_with_tabs          = true         # use tabs to align
79align_on_tabstop         = true         # align on tabstops
80align_enum_equ_span      = 128          # '=' in enum definition
81align_nl_cont            = true
82align_func_params        = true
83align_var_def_star_style = 1
84align_var_def_amp_style  = 1
85align_func_proto_span    = 0
86align_var_struct_span    = 128
87
88nl_before_access_spec    = 2
89nl_after_access_spec     = 2
90
91nl_before_case           = true
92nl_assign_brace          = remove
93nl_fcall_brace           = remove
94nl_struct_brace          = remove
95nl_union_brace           = remove
96nl_enum_brace            = remove
97nl_if_brace              = remove
98nl_brace_else            = remove
99nl_elseif_brace          = remove
100nl_else_brace            = remove
101nl_else_if               = remove
102nl_try_brace             = remove
103nl_for_brace             = remove
104nl_catch_brace           = remove
105nl_brace_catch           = remove
106nl_while_brace           = remove
107nl_do_brace              = remove
108nl_brace_while           = remove
109nl_switch_brace          = remove
110nl_namespace_brace       = remove
111nl_class_brace           = remove
112nl_func_proto_type_name  = remove
113nl_func_decl_args        = add
114nl_func_decl_end         = remove
115nl_fdef_brace            = add
116nl_after_case            = false
117nl_multi_line_cond       = false
118nl_class_init_args       = add
119nl_func_type_name        = add
120nl_after_brace_open      = true
121
122eat_blanks_after_open_brace = true
123eat_blanks_before_close_brace = true
124
125cmt_c_group                      = true
126cmt_indent_multi                 = true
127cmt_cpp_group                    = true
128indent_relative_single_line_comments = true
129align_right_cmt_span             = 16
130indent_sing_line_comments        = 4
Note: See TracBrowser for help on using the repository browser.