-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathuncrustify.cfg
More file actions
77 lines (68 loc) · 2.31 KB
/
Copy pathuncrustify.cfg
File metadata and controls
77 lines (68 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Language
input_tab_size = 4
output_tab_size = 4
indent_columns = 4
indent_with_tabs = 0
# Newline
newlines = lf
nl_end_of_file = add
nl_end_of_file_min = 1
# Braces
nl_fcall_brace = remove
nl_enum_brace = remove
nl_struct_brace = remove
nl_union_brace = remove
nl_if_brace = add
nl_else_brace = add
nl_for_brace = add
nl_while_brace = add
nl_do_brace = add
nl_switch_brace = add
nl_func_type_name = remove
nl_func_proto_type_name = remove
nl_func_def_paren = remove
nl_func_decl_args = remove
nl_func_def_args = remove
nl_func_def_args_multi_line = false
nl_func_call_args_multi_line = false
# Spacing
sp_arith = add
sp_assign = add
sp_bool = add
sp_compare = add
sp_after_comma = add
sp_before_comma = remove
sp_paren_paren = remove
sp_cparen_oparen = remove
sp_func_proto_paren = remove
sp_func_def_paren = remove
sp_func_call_paren = remove
sp_before_sparen = add
sp_inside_paren = remove
sp_inside_fparen = remove
sp_inside_sparen = remove
sp_inside_braces = add
# Pointer style
sp_before_ptr_star = add
sp_after_ptr_star = remove
sp_between_ptr_star = remove
# Example:
# char *ptr;
# Control statements
mod_full_brace_if = add
mod_full_brace_for = add
mod_full_brace_while = add
mod_full_brace_do = add
# Alignment
align_func_params = false
align_var_def_span = 0
align_assign_span = 0
align_struct_init_span = 0
align_pp_define_span = 0
# Line width
code_width = 120
ls_for_split_full = true
ls_func_split_full = true
# Comments
cmt_width = 120
cmt_star_cont = true