-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuncrustify.cfg
More file actions
56 lines (43 loc) · 1.11 KB
/
uncrustify.cfg
File metadata and controls
56 lines (43 loc) · 1.11 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
input_tab_size = 4 # original tab size
output_tab_size = 4 # new tab size
indent_columns = output_tab_size
align_with_tabs = false
indent_with_tabs = 0
# End files with newline
nl_end_of_file = force
nl_end_of_file_min = 1
# Blank line after functions
nl_before_func_body_def = 2
# Space between ) and { for functions
sp_fparen_brace = force
# Space around assignments
sp_assign = force
# Space out operations in an expression
sp_compare = force
sp_bool = force
sp_arith = force
# Make conditial () s p a c e d.
# Ex: if(x) -> if ( x )
sp_before_sparen = force
sp_after_sparen = force
sp_inside_paren = remove
# This converts if ( a ) a++; into
# if ( a )
# a++;
nl_split_if_one_liner = true
# Indent constructor initalizers
indent_constr_colon = true
indent_ctor_init = 4
# Indent class definitions
indent_class = true
# Split constructor initalizers on newlines
nl_constr_init_args = force
# Move pointer/reference with type
sp_after_ptr_star = force
sp_before_ptr_star = remove
sp_after_byref = force
sp_before_byref = remove
# Line length limits
code_width = 120
ls_for_split_full = true
ls_func_split_full = true