-
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
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
# Copyright 2025 Shota FUJI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
# ===
#
# Config file for Uncrustify.
# "Source Code Beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA"
# https://uncrustify.sourceforge.net/
# The type of line endings.
newlines = lf
# The size of tabs in the output (only used if align_with_tabs=true).
output_tab_size = 8
# Add or remove the UTF-8 BOM (recommend 'remove').
utf8_bom = remove
# If the file contains bytes with values between 128 and 255, but is not
# UTF-8, then output as UTF-8.
utf8_byte = true
# Force the output encoding to UTF-8.
utf8_force = true
# Add or remove space around non-assignment symbolic operators ('+', '/', '%',
# '<<', and so forth).
sp_arith = add
# Add or remove space around assignment operator '=', '+=', etc.
sp_assign = add
# Add or remove space around assignment operator '=' in a prototype.
#
# If set to ignore, use sp_assign.
sp_assign_default = add
# Add or remove space before assignment operator '=', '+=', etc.
#
# Overrides sp_assign.
sp_before_assign = add
# Add or remove space after assignment operator '=', '+=', etc.
#
# Overrides sp_assign.
sp_after_assign = add
# Add or remove space around boolean operators '&&' and '||'.
sp_bool = add
# Add or remove space around compare operator '<', '>', '==', etc.
sp_compare = add
# Add or remove space inside '(' and ')'.
sp_inside_paren = remove
# Add or remove space inside function '(' and ')'.
sp_inside_fparen = remove
# Add or remove space between nested parentheses, i.e. '((' vs. ') )'.
sp_paren_paren = remove
# Add or remove space between back-to-back parentheses, i.e. ')(' vs. ') ('.
sp_cparen_oparen = remove
# Add or remove space between ')' and '{'.
sp_paren_brace = add
# Add or remove space between nested braces, i.e. '{{' vs. '{ {'.
sp_brace_brace = remove
# Add or remove space between '>' and '(' as found in 'new List<byte>(foo);'.
sp_angle_paren = remove
# Add or remove space between '>' and '()' as found in 'new List<byte>();'.
sp_angle_paren_empty = remove
# Add or remove space between '>' and a word as in 'List<byte> m;' or
# 'template <typename T> static ...'.
sp_angle_word = remove
# Add or remove space before '(' of control statements ('if', 'for', 'switch',
# 'while', etc.).
sp_before_sparen = add
# Add or remove space inside '(' and ')' of control statements other than
# 'for'.
sp_inside_sparen = remove
# Add or remove space between ')' and '{' of control statements.
sp_sparen_brace = add
# Add or remove space after ',', i.e. 'a,b' vs. 'a, b'.
sp_after_comma = add
# (C#, Vala) Add or remove space between ',' and ']' in multidimensional array type
# like 'int[,,]'.
sp_after_mdatype_commas = remove
# (C#, Vala) Add or remove space between '[' and ',' in multidimensional array type
# like 'int[,,]'.
sp_before_mdatype_commas = remove
# (C#, Vala) Add or remove space between ',' in multidimensional array type
# like 'int[,,]'.
sp_between_mdatype_commas = remove
# Add or remove space between a type and ':'.
sp_type_colon = add
# Add or remove space inside struct/union '{' and '}'.
sp_inside_braces_struct = add
# Add or remove space inside '{' and '}'.
sp_inside_braces = add
# Add or remove space inside '{}'.
# if empty.
sp_inside_braces_empty = remove
# Add or remove space between type and open brace of an unnamed temporary
# direct-list-initialization.
sp_type_brace_init_lst = add
# Add or remove space between function name and '(' on function declaration.
sp_func_proto_paren = remove
# Add or remove space between function name and '(' with a typedef specifier.
sp_func_type_paren = remove
# Add or remove space between alias name and '(' of a non-pointer function type typedef.
sp_func_def_paren = remove
# Add or remove space between ')' and '{' of a function call in object
# initialization.
#
# Overrides sp_fparen_brace.
sp_fparen_brace_initializer = add
# Add or remove space between function name and '(' on function calls.
sp_func_call_paren = remove
# Add or remove space between a constructor/destructor and the open
# parenthesis.
sp_func_class_paren = remove
# Add or remove space between 'else' and '{' if on the same line.
sp_else_brace = force
# Add or remove space between '}' and 'else' if on the same line.
sp_brace_else = force
# Whether the 'class' body is indented.
indent_class = true
# How to indent a close parenthesis after a newline.
#
# 0: Indent to body level (default)
# 1: Align under the open parenthesis
# 2: Indent to the brace level
# -1: Preserve original indentation
indent_paren_close = 2