forked from hubertmis/nRF-IEEE-802.15.4-radio-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.uncrustify.cfg
155 lines (143 loc) · 5.73 KB
/
.uncrustify.cfg
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#
# Copyright (c) 2018, Nordic Semiconductor ASA
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3. Neither the name of Nordic Semiconductor ASA nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#
# Uncrustify config file for Nordic Semiconductor Firmware Coding Standard.
#
# Check http://uncrustify.sourceforge.net/default.cfg to see all parameters.
#
##################################################################################
## General options
##################################################################################
newlines = auto
input_tab_size = 4
##################################################################################
## Indenting
##################################################################################
indent_columns = 4
indent_switch_case = 4
indent_with_tabs = 0
indent_paren_close = 1
indent_align_assign = 1
##################################################################################
## Spacing options
##################################################################################
sp_before_sparen = force
sp_assign = force
sp_arith = force
sp_bool = force
sp_compare = force
sp_incdec = remove
sp_not = remove
sp_inv = remove
sp_sign = remove
sp_before_ptr_star = force
sp_after_ptr_star = force
sp_between_ptr_star = remove
sp_deref = remove
sp_addr = remove
sp_after_byref = force
sp_before_byref = force
sp_cond_question = force
sp_cond_colon = force
sp_member = remove
sp_before_square = remove
sp_before_squares = remove
sp_inside_square = remove
sp_inside_paren = remove
sp_func_def_paren = remove
sp_func_call_paren = remove
sp_func_proto_paren = remove
sp_inside_fparen = remove
sp_special_semi = remove
sp_after_comma = force
sp_after_semi_for_empty = remove
sp_after_semi_for = force
sp_cmt_cpp_start = force
sp_return_paren = force
sp_sizeof_paren = remove
sp_before_tr_emb_cmt = add
sp_num_before_tr_emb_cmt = 2
sp_after_cast = remove
##################################################################################
## Code alignment
##################################################################################
align_var_def_colon = true
align_var_def_span = 1
align_var_def_inline = true
align_var_def_star_style = 2
align_var_def_thresh = 30
align_assign_span = 1
align_assign_thresh = 30
align_func_params = true
align_right_cmt_span = 4
align_right_cmt_at_col = 2
align_pp_define_gap = 1
align_pp_define_span = 3
align_var_struct_span = 3
align_var_struct_gap = 1
align_nl_cont = true
align_enum_equ_span = 1
align_enum_equ_thresh = 10
align_pp_define_together = 1
##################################################################################
## Newline options
##################################################################################
nl_enum_brace = add
nl_union_brace = add
nl_struct_brace = add
nl_do_brace = add
nl_if_brace = add
nl_for_brace = add
nl_else_brace = add
nl_while_brace = add
nl_switch_brace = add
nl_brace_while = add
nl_brace_else = add
nl_fcall_brace = add
nl_fdef_brace = add
nl_func_var_def_blk = 1
nl_before_if = ignore
nl_before_for = add
nl_before_switch = add
nl_before_while = add
nl_before_case = true
nl_before_do = add
nl_func_decl_end = remove
nl_func_def_end = remove
nl_define_macro = true
nl_max = 2
nl_after_func_body = 2
nl_while_leave_one_liners = true
nl_var_def_blk_end = 2
##################################################################################
## Length options
##################################################################################
code_width = 100
ls_func_split_full = true