annotate TOOLS/mp-uncrustify-style.cfg @ 34677:d3f65dd58eb9

Revise listMgr() command PLAYLIST_ITEM_DEL_CURR. Additionally, insert some blank lines and remove commented code.
author ib
date Thu, 23 Feb 2012 12:58:21 +0000
parents f753079e6b9b
children 22355747d51f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32934
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1 # Uncrustify 0.57
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
2
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
3 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
4 ###### TODO/FIXME ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
5 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
6 ### - Align comments?
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
7 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
8 ### - New line after function
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
9 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
10 ### nl_after_func_body force one blank line after each function, but it should
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
11 ### not when surrounded with #ifdef:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
12 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
13 ### #ifdef CONFIG_DVDNAV
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
14 ### static void mp_dvdnav_context_free(MPContext *ctx)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
15 ### {
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
16 ### // [...]
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
17 ### }
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
18 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
19 ### #endif
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
20 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
21 ### void uninit_player(unsigned int mask)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
22 ###
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
23
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
24 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
25 # General options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
26 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
27
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
28 # The type of line endings
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
29 newlines = lf # auto/lf/crlf/cr
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
30
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
31 # The original size of tabs in the input
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
32 input_tab_size = 8 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
33
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
34 # The size of tabs in the output (only used if align_with_tabs=true)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
35 output_tab_size = 8 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
36
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
37 # The ASCII value of the string escape char, usually 92 (\) or 94 (^). (Pawn)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
38 string_escape_char = 92 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
39
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
40 # Alternate string escape char for Pawn. Only works right before the quote char.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
41 string_escape_char2 = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
42
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
43 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
44 # Indenting
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
45 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
46
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
47 # The number of columns to indent per level.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
48 # Usually 2, 3, 4, or 8.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
49 indent_columns = 4 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
50
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
51 # The continuation indent. If non-zero, this overrides the indent of '(' and '=' continuation indents.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
52 # For FreeBSD, this is set to 4.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
53 indent_continue = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
54
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
55 # How to use tabs when indenting code
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
56 # 0=spaces only
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
57 # 1=indent with tabs to brace level, align with spaces
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
58 # 2=indent and align with tabs, using spaces when not on a tabstop
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
59 indent_with_tabs = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
60
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
61 # Comments that are not a brace level are indented with tabs on a tabstop.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
62 # Requires indent_with_tabs=2. If false, will use spaces.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
63 indent_cmt_with_tabs = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
64
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
65 # Whether to indent strings broken by '\' so that they line up
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
66 indent_align_string = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
67
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
68 # The number of spaces to indent multi-line XML strings.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
69 # Requires indent_align_string=True
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
70 indent_xml_string = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
71
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
72 # Spaces to indent '{' from level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
73 indent_brace = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
74
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
75 # Whether braces are indented to the body level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
76 indent_braces = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
77
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
78 # Disabled indenting function braces if indent_braces is true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
79 indent_braces_no_func = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
80
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
81 # Disabled indenting class braces if indent_braces is true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
82 indent_braces_no_class = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
83
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
84 # Disabled indenting struct braces if indent_braces is true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
85 indent_braces_no_struct = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
86
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
87 # Indent based on the size of the brace parent, i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
88 indent_brace_parent = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
89
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
90 # Whether the 'namespace' body is indented
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
91 indent_namespace = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
92
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
93 # The number of spaces to indent a namespace block
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
94 indent_namespace_level = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
95
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
96 # If the body of the namespace is longer than this number, it won't be indented.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
97 # Requires indent_namespace=true. Default=0 (no limit)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
98 indent_namespace_limit = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
99
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
100 # Whether the 'extern "C"' body is indented
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
101 indent_extern = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
102
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
103 # Whether the 'class' body is indented
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
104 indent_class = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
105
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
106 # Whether to indent the stuff after a leading class colon
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
107 indent_class_colon = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
108
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
109 # False=treat 'else\nif' as 'else if' for indenting purposes
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
110 # True=indent the 'if' one level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
111 indent_else_if = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
112
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
113 # Amount to indent variable declarations after a open brace. neg=relative, pos=absolute
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
114 indent_var_def_blk = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
115
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
116 # Indent continued variable declarations instead of aligning.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
117 indent_var_def_cont = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
118
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
119 # True: indent continued function call parameters one indent level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
120 # False: align parameters under the open paren
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
121 indent_func_call_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
122
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
123 # Same as indent_func_call_param, but for function defs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
124 indent_func_def_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
125
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
126 # Same as indent_func_call_param, but for function protos
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
127 indent_func_proto_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
128
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
129 # Same as indent_func_call_param, but for class declarations
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
130 indent_func_class_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
131
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
132 # Same as indent_func_call_param, but for class variable constructors
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
133 indent_func_ctor_var_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
134
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
135 # Same as indent_func_call_param, but for templates
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
136 indent_template_param = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
137
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
138 # Double the indent for indent_func_xxx_param options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
139 indent_func_param_double = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
140
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
141 # Indentation column for standalone 'const' function decl/proto qualifier
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
142 indent_func_const = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
143
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
144 # Indentation column for standalone 'throw' function decl/proto qualifier
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
145 indent_func_throw = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
146
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
147 # The number of spaces to indent a continued '->' or '.'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
148 # Usually set to 0, 1, or indent_columns.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
149 indent_member = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
150
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
151 # Spaces to indent single line ('//') comments on lines before code
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
152 indent_sing_line_comments = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
153
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
154 # If set, will indent trailing single line ('//') comments relative
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
155 # to the code instead of trying to keep the same absolute column
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
156 indent_relative_single_line_comments = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
157
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
158 # Spaces to indent 'case' from 'switch'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
159 # Usually 0 or indent_columns.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
160 indent_switch_case = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
161
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
162 # Spaces to shift the 'case' line, without affecting any other lines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
163 # Usually 0.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
164 indent_case_shift = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
165
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
166 # Spaces to indent '{' from 'case'.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
167 # By default, the brace will appear under the 'c' in case.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
168 # Usually set to 0 or indent_columns.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
169 indent_case_brace = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
170
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
171 # Whether to indent comments found in first column
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
172 indent_col1_comment = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
173
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
174 # How to indent goto labels
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
175 # >0 : absolute column where 1 is the leftmost column
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
176 # <=0 : subtract from brace indent
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
177 indent_label = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
178
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
179 # Same as indent_label, but for access specifiers that are followed by a colon
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
180 indent_access_spec = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
181
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
182 # Indent the code after an access specifier by one level.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
183 # If set, this option forces 'indent_access_spec=0'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
184 indent_access_spec_body = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
185
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
186 # If an open paren is followed by a newline, indent the next line so that it lines up after the open paren (not recommended)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
187 indent_paren_nl = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
188
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
189 # Controls the indent of a close paren after a newline.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
190 # 0: Indent to body level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
191 # 1: Align under the open paren
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
192 # 2: Indent to the brace level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
193 indent_paren_close = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
194
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
195 # Controls the indent of a comma when inside a paren.If TRUE, aligns under the open paren
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
196 indent_comma_paren = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
197
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
198 # Controls the indent of a BOOL operator when inside a paren.If TRUE, aligns under the open paren
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
199 indent_bool_paren = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
200
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
201 # If 'indent_bool_paren' is true, controls the indent of the first expression. If TRUE, aligns the first expression to the following ones
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
202 indent_first_bool_expr = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
203
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
204 # If an open square is followed by a newline, indent the next line so that it lines up after the open square (not recommended)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
205 indent_square_nl = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
206
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
207 # Don't change the relative indent of ESQL/C 'EXEC SQL' bodies
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
208 indent_preserve_sql = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
209
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
210 # Align continued statements at the '='. Default=True
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
211 # If FALSE or the '=' is followed by a newline, the next line is indent one tab.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
212 indent_align_assign = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
213
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
214 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
215 # Spacing options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
216 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
217
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
218 # Add or remove space around arithmetic operator '+', '-', '/', '*', etc
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
219 sp_arith = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
220
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
221 # Add or remove space around assignment operator '=', '+=', etc
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
222 sp_assign = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
223
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
224 # Add or remove space around assignment operator '=' in a prototype
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
225 sp_assign_default = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
226
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
227 # Add or remove space before assignment operator '=', '+=', etc. Overrides sp_assign.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
228 sp_before_assign = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
229
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
230 # Add or remove space after assignment operator '=', '+=', etc. Overrides sp_assign.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
231 sp_after_assign = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
232
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
233 # Add or remove space around assignment '=' in enum
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
234 sp_enum_assign = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
235
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
236 # Add or remove space before assignment '=' in enum. Overrides sp_enum_assign.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
237 sp_enum_before_assign = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
238
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
239 # Add or remove space after assignment '=' in enum. Overrides sp_enum_assign.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
240 sp_enum_after_assign = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
241
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
242 # Add or remove space around preprocessor '##' concatenation operator. Default=Add
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
243 sp_pp_concat = add # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
244
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
245 # Add or remove space after preprocessor '#' stringify operator. Also affects the '#@' charizing operator. Default=Add
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
246 sp_pp_stringify = add # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
247
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
248 # Add or remove space around boolean operators '&&' and '||'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
249 sp_bool = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
250
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
251 # Add or remove space around compare operator '<', '>', '==', etc
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
252 sp_compare = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
253
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
254 # Add or remove space inside '(' and ')'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
255 sp_inside_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
256
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
257 # Add or remove space between nested parens
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
258 sp_paren_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
259
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
260 # Whether to balance spaces inside nested parens
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
261 sp_balance_nested_parens = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
262
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
263 # Add or remove space between ')' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
264 sp_paren_brace = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
265
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
266 # Add or remove space before pointer star '*'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
267 sp_before_ptr_star = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
268
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
269 # Add or remove space before pointer star '*' that isn't followed by a variable name
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
270 # If set to 'ignore', sp_before_ptr_star is used instead.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
271 sp_before_unnamed_ptr_star = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
272
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
273 # Add or remove space between pointer stars '*'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
274 sp_between_ptr_star = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
275
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
276 # Add or remove space after pointer star '*', if followed by a word.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
277 sp_after_ptr_star = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
278
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
279 # Add or remove space after a pointer star '*', if followed by a func proto/def.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
280 sp_after_ptr_star_func = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
281
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
282 # Add or remove space before a pointer star '*', if followed by a func proto/def.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
283 sp_before_ptr_star_func = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
284
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
285 # Add or remove space before a reference sign '&'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
286 sp_before_byref = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
287
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
288 # Add or remove space before a reference sign '&' that isn't followed by a variable name
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
289 # If set to 'ignore', sp_before_byref is used instead.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
290 sp_before_unnamed_byref = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
291
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
292 # Add or remove space after reference sign '&', if followed by a word.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
293 sp_after_byref = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
294
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
295 # Add or remove space after a reference sign '&', if followed by a func proto/def.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
296 sp_after_byref_func = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
297
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
298 # Add or remove space before a reference sign '&', if followed by a func proto/def.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
299 sp_before_byref_func = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
300
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
301 # Add or remove space between type and word. Default=Force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
302 sp_after_type = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
303
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
304 # Add or remove space in 'template <' vs 'template<'.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
305 # If set to ignore, sp_before_angle is used.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
306 sp_template_angle = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
307
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
308 # Add or remove space before '<>'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
309 sp_before_angle = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
310
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
311 # Add or remove space inside '<' and '>'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
312 sp_inside_angle = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
313
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
314 # Add or remove space after '<>'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
315 sp_after_angle = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
316
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
317 # Add or remove space between '<>' and '(' as found in 'new List<byte>();'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
318 sp_angle_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
319
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
320 # Add or remove space between '<>' and a word as in 'List<byte> m;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
321 sp_angle_word = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
322
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
323 # Add or remove space between '>' and '>' in '>>' (template stuff C++/C# only). Default=Add
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
324 sp_angle_shift = add # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
325
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
326 # Add or remove space before '(' of 'if', 'for', 'switch', and 'while'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
327 sp_before_sparen = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
328
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
329 # Add or remove space inside if-condition '(' and ')'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
330 sp_inside_sparen = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
331
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
332 # Add or remove space before if-condition ')'. Overrides sp_inside_sparen.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
333 sp_inside_sparen_close = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
334
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
335 # Add or remove space after ')' of 'if', 'for', 'switch', and 'while'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
336 sp_after_sparen = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
337
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
338 # Add or remove space between ')' and '{' of 'if', 'for', 'switch', and 'while'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
339 sp_sparen_brace = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
340
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
341 # Add or remove space between 'invariant' and '(' in the D language.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
342 sp_invariant_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
343
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
344 # Add or remove space after the ')' in 'invariant (C) c' in the D language.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
345 sp_after_invariant_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
346
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
347 # Add or remove space before empty statement ';' on 'if', 'for' and 'while'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
348 sp_special_semi = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
349
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
350 # Add or remove space before ';'. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
351 sp_before_semi = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
352
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
353 # Add or remove space before ';' in non-empty 'for' statements
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
354 sp_before_semi_for = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
355
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
356 # Add or remove space before a semicolon of an empty part of a for statement.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
357 sp_before_semi_for_empty = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
358
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
359 # Add or remove space after ';', except when followed by a comment. Default=Add
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
360 sp_after_semi = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
361
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
362 # Add or remove space after ';' in non-empty 'for' statements. Default=Force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
363 sp_after_semi_for = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
364
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
365 # Add or remove space after the final semicolon of an empty part of a for statement: for ( ; ; <here> ).
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
366 sp_after_semi_for_empty = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
367
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
368 # Add or remove space before '[' (except '[]')
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
369 sp_before_square = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
370
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
371 # Add or remove space before '[]'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
372 sp_before_squares = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
373
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
374 # Add or remove space inside '[' and ']'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
375 sp_inside_square = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
376
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
377 # Add or remove space after ','
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
378 sp_after_comma = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
379
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
380 # Add or remove space before ','
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
381 sp_before_comma = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
382
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
383 # Add or remove space between an open paren and comma: '(,' vs '( ,'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
384 sp_paren_comma = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
385
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
386 # Add or remove space before the variadic '...' when preceded by a non-punctuator
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
387 sp_before_ellipsis = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
388
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
389 # Add or remove space after class ':'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
390 sp_after_class_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
391
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
392 # Add or remove space before class ':'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
393 sp_before_class_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
394
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
395 # Add or remove space before case ':'. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
396 sp_before_case_colon = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
397
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
398 # Add or remove space between 'operator' and operator sign
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
399 sp_after_operator = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
400
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
401 # Add or remove space between the operator symbol and the open paren, as in 'operator ++('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
402 sp_after_operator_sym = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
403
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
404 # Add or remove space after C/D cast, i.e. 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
405 sp_after_cast = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
406
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
407 # Add or remove spaces inside cast parens
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
408 sp_inside_paren_cast = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
409
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
410 # Add or remove space between the type and open paren in a C++ cast, i.e. 'int(exp)' vs 'int (exp)'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
411 sp_cpp_cast_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
412
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
413 # Add or remove space between 'sizeof' and '('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
414 sp_sizeof_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
415
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
416 # Add or remove space after the tag keyword (Pawn)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
417 sp_after_tag = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
418
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
419 # Add or remove space inside enum '{' and '}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
420 sp_inside_braces_enum = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
421
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
422 # Add or remove space inside struct/union '{' and '}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
423 sp_inside_braces_struct = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
424
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
425 # Add or remove space inside '{' and '}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
426 sp_inside_braces = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
427
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
428 # Add or remove space inside '{}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
429 sp_inside_braces_empty = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
430
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
431 # Add or remove space between return type and function name
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
432 # A minimum of 1 is forced except for pointer return types.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
433 sp_type_func = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
434
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
435 # Add or remove space between function name and '(' on function declaration
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
436 sp_func_proto_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
437
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
438 # Add or remove space between function name and '(' on function definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
439 sp_func_def_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
440
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
441 # Add or remove space inside empty function '()'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
442 sp_inside_fparens = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
443
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
444 # Add or remove space inside function '(' and ')'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
445 sp_inside_fparen = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
446
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
447 # Add or remove space between ']' and '(' when part of a function call.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
448 sp_square_fparen = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
449
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
450 # Add or remove space between ')' and '{' of function
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
451 sp_fparen_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
452
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
453 # Add or remove space between function name and '(' on function calls
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
454 sp_func_call_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
455
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
456 # Add or remove space between function name and '()' on function calls without parameters.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
457 # If set to 'ignore' (the default), sp_func_call_paren is used.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
458 sp_func_call_paren_empty = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
459
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
460 # Add or remove space between the user function name and '(' on function calls
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
461 # You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
462 sp_func_call_user_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
463
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
464 # Add or remove space between a constructor/destructor and the open paren
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
465 sp_func_class_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
466
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
467 # Add or remove space between 'return' and '('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
468 sp_return_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
469
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
470 # Add or remove space between '__attribute__' and '('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
471 sp_attribute_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
472
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
473 # Add or remove space between 'defined' and '(' in '#if defined (FOO)'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
474 sp_defined_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
475
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
476 # Add or remove space between 'throw' and '(' in 'throw (something)'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
477 sp_throw_paren = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
478
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
479 # Add or remove space between macro and value
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
480 sp_macro = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
481
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
482 # Add or remove space between macro function ')' and value
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
483 sp_macro_func = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
484
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
485 # Add or remove space between 'else' and '{' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
486 sp_else_brace = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
487
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
488 # Add or remove space between '}' and 'else' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
489 sp_brace_else = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
490
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
491 # Add or remove space between '}' and the name of a typedef on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
492 sp_brace_typedef = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
493
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
494 # Add or remove space between 'catch' and '{' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
495 sp_catch_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
496
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
497 # Add or remove space between '}' and 'catch' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
498 sp_brace_catch = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
499
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
500 # Add or remove space between 'finally' and '{' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
501 sp_finally_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
502
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
503 # Add or remove space between '}' and 'finally' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
504 sp_brace_finally = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
505
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
506 # Add or remove space between 'try' and '{' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
507 sp_try_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
508
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
509 # Add or remove space between get/set and '{' if on the same line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
510 sp_getset_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
511
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
512 # Add or remove space before the '::' operator
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
513 sp_before_dc = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
514
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
515 # Add or remove space after the '::' operator
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
516 sp_after_dc = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
517
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
518 # Add or remove around the D named array initializer ':' operator
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
519 sp_d_array_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
520
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
521 # Add or remove space after the '!' (not) operator. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
522 sp_not = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
523
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
524 # Add or remove space after the '~' (invert) operator. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
525 sp_inv = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
526
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
527 # Add or remove space after the '&' (address-of) operator. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
528 # This does not affect the spacing after a '&' that is part of a type.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
529 sp_addr = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
530
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
531 # Add or remove space around the '.' or '->' operators. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
532 sp_member = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
533
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
534 # Add or remove space after the '*' (dereference) operator. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
535 # This does not affect the spacing after a '*' that is part of a type.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
536 sp_deref = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
537
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
538 # Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
539 sp_sign = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
540
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
541 # Add or remove space before or after '++' and '--', as in '(--x)' or 'y++;'. Default=Remove
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
542 sp_incdec = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
543
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
544 # Add or remove space before a backslash-newline at the end of a line. Default=Add
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
545 sp_before_nl_cont = add # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
546
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
547 # Add or remove space after the scope '+' or '-', as in '-(void) foo;' or '+(int) bar;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
548 sp_after_oc_scope = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
549
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
550 # Add or remove space after the colon in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
551 # '-(int) f:(int) x;' vs '-(int) f: (int) x;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
552 sp_after_oc_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
553
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
554 # Add or remove space before the colon in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
555 # '-(int) f: (int) x;' vs '-(int) f : (int) x;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
556 sp_before_oc_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
557
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
558 # Add or remove space after the colon in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
559 # '[object setValue:1];' vs '[object setValue: 1];'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
560 sp_after_send_oc_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
561
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
562 # Add or remove space before the colon in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
563 # '[object setValue:1];' vs '[object setValue :1];'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
564 sp_before_send_oc_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
565
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
566 # Add or remove space after the (type) in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
567 # '-(int)f: (int) x;' vs '-(int)f: (int)x;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
568 sp_after_oc_type = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
569
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
570 # Add or remove space after the first (type) in message specs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
571 # '-(int) f:(int)x;' vs '-(int)f:(int)x;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
572 sp_after_oc_return_type = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
573
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
574 # Add or remove space between '@selector' and '('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
575 # '@selector(msgName)' vs '@selector (msgName)'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
576 # Also applies to @protocol() constructs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
577 sp_after_oc_at_sel = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
578
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
579 # Add or remove space between '@selector(x)' and the following word
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
580 # '@selector(foo) a:' vs '@selector(foo)a:'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
581 sp_after_oc_at_sel_parens = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
582
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
583 # Add or remove space inside '@selector' parens
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
584 # '@selector(foo)' vs '@selector( foo )'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
585 # Also applies to @protocol() constructs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
586 sp_inside_oc_at_sel_parens = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
587
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
588 # Add or remove space before a block pointer caret
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
589 # '^int (int arg){...}' vs. ' ^int (int arg){...}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
590 sp_before_oc_block_caret = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
591
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
592 # Add or remove space after a block pointer caret
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
593 # '^int (int arg){...}' vs. '^ int (int arg){...}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
594 sp_after_oc_block_caret = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
595
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
596 # Add or remove space around the ':' in 'b ? t : f'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
597 sp_cond_colon = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
598
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
599 # Add or remove space around the '?' in 'b ? t : f'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
600 sp_cond_question = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
601
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
602 # Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make sense here.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
603 sp_case_label = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
604
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
605 # Control the space around the D '..' operator.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
606 sp_range = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
607
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
608 # Control the space after the opening of a C++ comment '// A' vs '//A'
33294
f753079e6b9b Add note about sp_cmt_cpp_start uncrustify setting.
cboesch
parents: 33288
diff changeset
609 # MPlayer devs note: we ignore the following setting because it breaks Doxygen comments
33288
97eb01954e60 Do not prefer '// A' over '//A' in uncrustify profile.
cboesch
parents: 32934
diff changeset
610 sp_cmt_cpp_start = ignore # ignore/add/remove/force
32934
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
611
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
612 # Controls the spaces between #else or #endif and a trailing comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
613 sp_endif_cmt = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
614
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
615 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
616 # Code alignment (not left column spaces/tabs)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
617 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
618
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
619 # Whether to keep non-indenting tabs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
620 align_keep_tabs = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
621
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
622 # Whether to use tabs for aligning
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
623 align_with_tabs = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
624
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
625 # Whether to bump out to the next tab when aligning
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
626 align_on_tabstop = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
627
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
628 # Whether to left-align numbers
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
629 align_number_left = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
630
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
631 # Align variable definitions in prototypes and functions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
632 align_func_params = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
633
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
634 # Align parameters in single-line functions that have the same name.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
635 # The function names must already be aligned with each other.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
636 align_same_func_call_params = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
637
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
638 # The span for aligning variable definitions (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
639 align_var_def_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
640
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
641 # How to align the star in variable definitions.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
642 # 0=Part of the type 'void * foo;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
643 # 1=Part of the variable 'void *foo;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
644 # 2=Dangling 'void *foo;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
645 align_var_def_star_style = 2 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
646
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
647 # How to align the '&' in variable definitions.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
648 # 0=Part of the type
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
649 # 1=Part of the variable
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
650 # 2=Dangling
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
651 align_var_def_amp_style = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
652
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
653 # The threshold for aligning variable definitions (0=no limit)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
654 align_var_def_thresh = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
655
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
656 # The gap for aligning variable definitions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
657 align_var_def_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
658
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
659 # Whether to align the colon in struct bit fields
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
660 align_var_def_colon = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
661
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
662 # Whether to align any attribute after the variable name
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
663 align_var_def_attribute = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
664
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
665 # Whether to align inline struct/enum/union variable definitions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
666 align_var_def_inline = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
667
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
668 # The span for aligning on '=' in assignments (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
669 align_assign_span = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
670
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
671 # The threshold for aligning on '=' in assignments (0=no limit)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
672 align_assign_thresh = 6 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
673
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
674 # The span for aligning on '=' in enums (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
675 align_enum_equ_span = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
676
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
677 # The threshold for aligning on '=' in enums (0=no limit)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
678 align_enum_equ_thresh = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
679
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
680 # The span for aligning struct/union (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
681 align_var_struct_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
682
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
683 # The threshold for aligning struct/union member definitions (0=no limit)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
684 align_var_struct_thresh = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
685
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
686 # The gap for aligning struct/union member definitions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
687 align_var_struct_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
688
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
689 # The span for aligning struct initializer values (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
690 align_struct_init_span = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
691
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
692 # The minimum space between the type and the synonym of a typedef
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
693 align_typedef_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
694
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
695 # The span for aligning single-line typedefs (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
696 align_typedef_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
697
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
698 # How to align typedef'd functions with other typedefs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
699 # 0: Don't mix them at all
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
700 # 1: align the open paren with the types
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
701 # 2: align the function type name with the other type names
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
702 align_typedef_func = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
703
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
704 # Controls the positioning of the '*' in typedefs. Just try it.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
705 # 0: Align on typedef type, ignore '*'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
706 # 1: The '*' is part of type name: typedef int *pint;
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
707 # 2: The '*' is part of the type, but dangling: typedef int *pint;
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
708 align_typedef_star_style = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
709
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
710 # Controls the positioning of the '&' in typedefs. Just try it.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
711 # 0: Align on typedef type, ignore '&'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
712 # 1: The '&' is part of type name: typedef int &pint;
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
713 # 2: The '&' is part of the type, but dangling: typedef int &pint;
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
714 align_typedef_amp_style = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
715
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
716 # The span for aligning comments that end lines (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
717 align_right_cmt_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
718
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
719 # If aligning comments, mix with comments after '}' and #endif with less than 3 spaces before the comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
720 align_right_cmt_mix = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
721
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
722 # If a trailing comment is more than this number of columns away from the text it follows,
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
723 # it will qualify for being aligned. This has to be > 0 to do anything.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
724 align_right_cmt_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
725
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
726 # Align trailing comment at or beyond column N; 'pulls in' comments as a bonus side effect (0=ignore)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
727 align_right_cmt_at_col = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
728
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
729 # The span for aligning function prototypes (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
730 align_func_proto_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
731
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
732 # Minimum gap between the return type and the function name.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
733 align_func_proto_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
734
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
735 # Align function protos on the 'operator' keyword instead of what follows
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
736 align_on_operator = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
737
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
738 # Whether to mix aligning prototype and variable declarations.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
739 # If true, align_var_def_XXX options are used instead of align_func_proto_XXX options.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
740 align_mix_var_proto = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
741
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
742 # Align single-line functions with function prototypes, uses align_func_proto_span
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
743 align_single_line_func = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
744
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
745 # Aligning the open brace of single-line functions.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
746 # Requires align_single_line_func=true, uses align_func_proto_span
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
747 align_single_line_brace = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
748
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
749 # Gap for align_single_line_brace.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
750 align_single_line_brace_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
751
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
752 # The span for aligning ObjC msg spec (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
753 align_oc_msg_spec_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
754
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
755 # Whether to align macros wrapped with a backslash and a newline.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
756 # This will not work right if the macro contains a multi-line comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
757 align_nl_cont = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
758
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
759 # The minimum space between label and value of a preprocessor define
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
760 align_pp_define_gap = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
761
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
762 # The span for aligning on '#define' bodies (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
763 align_pp_define_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
764
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
765 # Align lines that start with '<<' with previous '<<'. Default=true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
766 align_left_shift = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
767
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
768 # Span for aligning parameters in an Obj-C message call on the ':' (0=don't align)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
769 align_oc_msg_colon_span = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
770
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
771 # Aligning parameters in an Obj-C '+' or '-' declaration on the ':'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
772 align_oc_decl_colon = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
773
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
774 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
775 # Newline adding and removing options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
776 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
777
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
778 # Whether to collapse empty blocks between '{' and '}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
779 nl_collapse_empty_body = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
780
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
781 # Don't split one-line braced assignments - 'foo_t f = { 1, 2 };'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
782 nl_assign_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
783
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
784 # Don't split one-line braced statements inside a class xx { } body
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
785 nl_class_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
786
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
787 # Don't split one-line enums: 'enum foo { BAR = 15 };'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
788 nl_enum_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
789
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
790 # Don't split one-line get or set functions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
791 nl_getset_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
792
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
793 # Don't split one-line function definitions - 'int foo() { return 0; }'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
794 nl_func_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
795
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
796 # Don't split one-line if/else statements - 'if(a) b++;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
797 nl_if_leave_one_liners = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
798
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
799 # Add or remove newlines at the start of the file
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
800 nl_start_of_file = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
801
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
802 # The number of newlines at the start of the file (only used if nl_start_of_file is 'add' or 'force'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
803 nl_start_of_file_min = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
804
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
805 # Add or remove newline at the end of the file
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
806 nl_end_of_file = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
807
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
808 # The number of newlines at the end of the file (only used if nl_end_of_file is 'add' or 'force')
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
809 nl_end_of_file_min = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
810
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
811 # Add or remove newline between '=' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
812 nl_assign_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
813
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
814 # Add or remove newline between '=' and '[' (D only)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
815 nl_assign_square = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
816
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
817 # Add or remove newline after '= [' (D only). Will also affect the newline before the ']'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
818 nl_after_square_assign = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
819
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
820 # The number of blank lines after a block of variable definitions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
821 nl_func_var_def_blk = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
822
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
823 # Add or remove newline between a function call's ')' and '{', as in:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
824 # list_for_each(item, &list) { }
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
825 nl_fcall_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
826
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
827 # Add or remove newline between 'enum' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
828 nl_enum_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
829
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
830 # Add or remove newline between 'struct and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
831 nl_struct_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
832
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
833 # Add or remove newline between 'union' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
834 nl_union_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
835
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
836 # Add or remove newline between 'if' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
837 nl_if_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
838
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
839 # Add or remove newline between '}' and 'else'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
840 nl_brace_else = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
841
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
842 # Add or remove newline between 'else if' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
843 # If set to ignore, nl_if_brace is used instead
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
844 nl_elseif_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
845
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
846 # Add or remove newline between 'else' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
847 nl_else_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
848
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
849 # Add or remove newline between 'else' and 'if'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
850 nl_else_if = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
851
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
852 # Add or remove newline between '}' and 'finally'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
853 nl_brace_finally = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
854
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
855 # Add or remove newline between 'finally' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
856 nl_finally_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
857
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
858 # Add or remove newline between 'try' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
859 nl_try_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
860
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
861 # Add or remove newline between get/set and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
862 nl_getset_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
863
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
864 # Add or remove newline between 'for' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
865 nl_for_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
866
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
867 # Add or remove newline between 'catch' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
868 nl_catch_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
869
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
870 # Add or remove newline between '}' and 'catch'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
871 nl_brace_catch = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
872
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
873 # Add or remove newline between 'while' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
874 nl_while_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
875
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
876 # Add or remove newline between 'using' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
877 nl_using_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
878
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
879 # Add or remove newline between two open or close braces.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
880 # Due to general newline/brace handling, REMOVE may not work.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
881 nl_brace_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
882
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
883 # Add or remove newline between 'do' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
884 nl_do_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
885
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
886 # Add or remove newline between '}' and 'while' of 'do' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
887 nl_brace_while = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
888
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
889 # Add or remove newline between 'switch' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
890 nl_switch_brace = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
891
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
892 # Add a newline between ')' and '{' if the ')' is on a different line than the if/for/etc.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
893 # Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch, and nl_catch_brace.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
894 nl_multi_line_cond = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
895
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
896 # Force a newline in a define after the macro name for multi-line defines.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
897 nl_multi_line_define = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
898
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
899 # Whether to put a newline before 'case' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
900 nl_before_case = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
901
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
902 # Add or remove newline between ')' and 'throw'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
903 nl_before_throw = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
904
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
905 # Whether to put a newline after 'case' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
906 nl_after_case = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
907
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
908 # Newline between namespace and {
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
909 nl_namespace_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
910
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
911 # Add or remove newline between 'template<>' and whatever follows.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
912 nl_template_class = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
913
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
914 # Add or remove newline between 'class' and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
915 nl_class_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
916
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
917 # Add or remove newline after each ',' in the constructor member initialization
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
918 nl_class_init_args = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
919
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
920 # Add or remove newline between return type and function name in a function definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
921 nl_func_type_name = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
922
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
923 # Add or remove newline between return type and function name inside a class {}
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
924 # Uses nl_func_type_name or nl_func_proto_type_name if set to ignore.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
925 nl_func_type_name_class = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
926
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
927 # Add or remove newline between function scope and name in a definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
928 # Controls the newline after '::' in 'void A::f() { }'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
929 nl_func_scope_name = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
930
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
931 # Add or remove newline between return type and function name in a prototype
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
932 nl_func_proto_type_name = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
933
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
934 # Add or remove newline between a function name and the opening '('
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
935 nl_func_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
936
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
937 # Add or remove newline between a function name and the opening '(' in the definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
938 nl_func_def_paren = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
939
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
940 # Add or remove newline after '(' in a function declaration
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
941 nl_func_decl_start = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
942
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
943 # Add or remove newline after '(' in a function definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
944 nl_func_def_start = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
945
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
946 # Overrides nl_func_decl_start when there is only one parameter.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
947 nl_func_decl_start_single = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
948
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
949 # Overrides nl_func_def_start when there is only one parameter.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
950 nl_func_def_start_single = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
951
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
952 # Add or remove newline after each ',' in a function declaration
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
953 nl_func_decl_args = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
954
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
955 # Add or remove newline after each ',' in a function definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
956 nl_func_def_args = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
957
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
958 # Add or remove newline before the ')' in a function declaration
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
959 nl_func_decl_end = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
960
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
961 # Add or remove newline before the ')' in a function definition
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
962 nl_func_def_end = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
963
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
964 # Overrides nl_func_decl_end when there is only one parameter.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
965 nl_func_decl_end_single = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
966
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
967 # Overrides nl_func_def_end when there is only one parameter.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
968 nl_func_def_end_single = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
969
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
970 # Add or remove newline between '()' in a function declaration.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
971 nl_func_decl_empty = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
972
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
973 # Add or remove newline between '()' in a function definition.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
974 nl_func_def_empty = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
975
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
976 # Add or remove newline between function signature and '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
977 nl_fdef_brace = force # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
978
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
979 # Whether to put a newline after 'return' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
980 nl_after_return = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
981
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
982 # Add or remove a newline between the return keyword and return expression.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
983 nl_return_expr = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
984
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
985 # Whether to put a newline after semicolons, except in 'for' statements
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
986 nl_after_semicolon = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
987
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
988 # Whether to put a newline after brace open.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
989 # This also adds a newline before the matching brace close.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
990 nl_after_brace_open = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
991
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
992 # If nl_after_brace_open and nl_after_brace_open_cmt are true, a newline is
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
993 # placed between the open brace and a trailing single-line comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
994 nl_after_brace_open_cmt = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
995
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
996 # Whether to put a newline after a virtual brace open with a non-empty body.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
997 # These occur in un-braced if/while/do/for statement bodies.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
998 nl_after_vbrace_open = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
999
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1000 # Whether to put a newline after a virtual brace open with an empty body.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1001 # These occur in un-braced if/while/do/for statement bodies.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1002 nl_after_vbrace_open_empty = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1003
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1004 # Whether to put a newline after a brace close.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1005 # Does not apply if followed by a necessary ';'.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1006 nl_after_brace_close = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1007
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1008 # Whether to put a newline after a virtual brace close.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1009 # Would add a newline before return in: 'if (foo) a++; return;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1010 nl_after_vbrace_close = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1011
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1012 # Whether to alter newlines in '#define' macros
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1013 nl_define_macro = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1014
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1015 # Whether to not put blanks after '#ifxx', '#elxx', or before '#endif'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1016 nl_squeeze_ifdef = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1017
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1018 # Add or remove blank line before 'if'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1019 nl_before_if = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1020
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1021 # Add or remove blank line after 'if' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1022 nl_after_if = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1023
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1024 # Add or remove blank line before 'for'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1025 nl_before_for = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1026
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1027 # Add or remove blank line after 'for' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1028 nl_after_for = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1029
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1030 # Add or remove blank line before 'while'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1031 nl_before_while = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1032
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1033 # Add or remove blank line after 'while' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1034 nl_after_while = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1035
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1036 # Add or remove blank line before 'switch'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1037 nl_before_switch = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1038
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1039 # Add or remove blank line after 'switch' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1040 nl_after_switch = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1041
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1042 # Add or remove blank line before 'do'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1043 nl_before_do = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1044
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1045 # Add or remove blank line after 'do/while' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1046 nl_after_do = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1047
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1048 # Whether to double-space commented-entries in struct/enum
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1049 nl_ds_struct_enum_cmt = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1050
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1051 # Whether to double-space before the close brace of a struct/union/enum
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1052 # (lower priority than 'eat_blanks_before_close_brace')
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1053 nl_ds_struct_enum_close_brace = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1054
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1055 # Add or remove a newline around a class colon.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1056 # Related to pos_class_colon, nl_class_init_args, and pos_comma.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1057 nl_class_colon = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1058
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1059 # Change simple unbraced if statements into a one-liner
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1060 # 'if(b)\n i++;' => 'if(b) i++;'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1061 nl_create_if_one_liner = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1062
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1063 # Change simple unbraced for statements into a one-liner
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1064 # 'for (i=0;i<5;i++)\n foo(i);' => 'for (i=0;i<5;i++) foo(i);'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1065 nl_create_for_one_liner = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1066
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1067 # Change simple unbraced while statements into a one-liner
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1068 # 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1069 nl_create_while_one_liner = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1070
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1071 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1072 # Positioning options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1073 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1074
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1075 # The position of arithmetic operators in wrapped expressions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1076 pos_arith = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1077
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1078 # The position of assignment in wrapped expressions.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1079 # Do not affect '=' followed by '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1080 pos_assign = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1081
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1082 # The position of boolean operators in wrapped expressions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1083 pos_bool = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1084
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1085 # The position of comparison operators in wrapped expressions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1086 pos_compare = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1087
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1088 # The position of conditional (b ? t : f) operators in wrapped expressions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1089 pos_conditional = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1090
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1091 # The position of the comma in wrapped expressions
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1092 pos_comma = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1093
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1094 # The position of the comma in the constructor initialization list
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1095 pos_class_comma = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1096
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1097 # The position of colons between constructor and member initialization
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1098 pos_class_colon = ignore # ignore/lead/lead_break/lead_force/trail/trail_break/trail_force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1099
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1100 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1101 # Line Splitting options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1102 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1103
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1104 # Try to limit code width to N number of columns
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1105 code_width = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1106
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1107 # Whether to fully split long 'for' statements at semi-colons
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1108 ls_for_split_full = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1109
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1110 # Whether to fully split long function protos/calls at commas
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1111 ls_func_split_full = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1112
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1113 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1114 # Blank line options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1115 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1116
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1117 # The maximum consecutive newlines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1118 nl_max = 2 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1119
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1120 # The number of newlines after a function prototype, if followed by another function prototype
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1121 nl_after_func_proto = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1122
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1123 # The number of newlines after a function prototype, if not followed by another function prototype
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1124 nl_after_func_proto_group = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1125
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1126 # The number of newlines after '}' of a multi-line function body
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1127 nl_after_func_body = 2 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1128
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1129 # The number of newlines after '}' of a single line function body
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1130 nl_after_func_body_one_liner = 2 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1131
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1132 # The minimum number of newlines before a multi-line comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1133 # Doesn't apply if after a brace open or another multi-line comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1134 nl_before_block_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1135
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1136 # The minimum number of newlines before a single-line C comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1137 # Doesn't apply if after a brace open or other single-line C comments.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1138 nl_before_c_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1139
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1140 # The minimum number of newlines before a CPP comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1141 # Doesn't apply if after a brace open or other CPP comments.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1142 nl_before_cpp_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1143
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1144 # Whether to force a newline after a multi-line comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1145 nl_after_multiline_comment = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1146
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1147 # The number of newlines before a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1148 # Will not change the newline count if after a brace open.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1149 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1150 nl_before_access_spec = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1151
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1152 # The number of newlines after a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1153 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1154 nl_after_access_spec = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1155
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1156 # The number of newlines between a function def and the function comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1157 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1158 nl_comment_func_def = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1159
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1160 # The number of newlines after a try-catch-finally block that isn't followed by a brace close.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1161 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1162 nl_after_try_catch_finally = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1163
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1164 # The number of newlines before and after a property, indexer or event decl.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1165 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1166 nl_around_cs_property = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1167
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1168 # The number of newlines between the get/set/add/remove handlers in C#.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1169 # 0 = No change.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1170 nl_between_get_set = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1171
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1172 # Whether to remove blank lines after '{'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1173 eat_blanks_after_open_brace = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1174
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1175 # Whether to remove blank lines before '}'
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1176 eat_blanks_before_close_brace = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1177
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1178 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1179 # Code modifying options (non-whitespace)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1180 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1181
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1182 # Add or remove braces on single-line 'do' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1183 mod_full_brace_do = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1184
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1185 # Add or remove braces on single-line 'for' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1186 mod_full_brace_for = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1187
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1188 # Add or remove braces on single-line function definitions. (Pawn)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1189 mod_full_brace_function = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1190
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1191 # Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1192 mod_full_brace_if = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1193
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1194 # Make all if/elseif/else statements in a chain be braced or not. Overrides mod_full_brace_if.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1195 # If any must be braced, they are all braced. If all can be unbraced, then the braces are removed.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1196 mod_full_brace_if_chain = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1197
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1198 # Don't remove braces around statements that span N newlines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1199 mod_full_brace_nl = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1200
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1201 # Add or remove braces on single-line 'while' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1202 mod_full_brace_while = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1203
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1204 # Add or remove braces on single-line 'using ()' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1205 mod_full_brace_using = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1206
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1207 # Add or remove unnecessary paren on 'return' statement
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1208 mod_paren_on_return = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1209
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1210 # Whether to change optional semicolons to real semicolons
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1211 mod_pawn_semicolon = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1212
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1213 # Add parens on 'while' and 'if' statement around bools
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1214 mod_full_paren_if_bool = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1215
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1216 # Whether to remove superfluous semicolons
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1217 mod_remove_extra_semicolon = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1218
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1219 # If a function body exceeds the specified number of newlines and doesn't have a comment after
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1220 # the close brace, a comment will be added.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1221 mod_add_long_function_closebrace_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1222
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1223 # If a switch body exceeds the specified number of newlines and doesn't have a comment after
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1224 # the close brace, a comment will be added.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1225 mod_add_long_switch_closebrace_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1226
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1227 # If an #ifdef body exceeds the specified number of newlines and doesn't have a comment after
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1228 # the #else, a comment will be added.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1229 mod_add_long_ifdef_endif_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1230
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1231 # If an #ifdef or #else body exceeds the specified number of newlines and doesn't have a comment after
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1232 # the #endif, a comment will be added.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1233 mod_add_long_ifdef_else_comment = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1234
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1235 # If TRUE, will sort consecutive single-line 'import' statements [Java, D]
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1236 mod_sort_import = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1237
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1238 # If TRUE, will sort consecutive single-line 'using' statements [C#]
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1239 mod_sort_using = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1240
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1241 # If TRUE, will sort consecutive single-line '#include' statements [C/C++] and '#import' statements [Obj-C]
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1242 # This is generally a bad idea, as it may break your code.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1243 mod_sort_include = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1244
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1245 # If TRUE, it will move a 'break' that appears after a fully braced 'case' before the close brace.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1246 mod_move_case_break = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1247
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1248 # Will add or remove the braces around a fully braced case statement.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1249 # Will only remove the braces if there are no variable declarations in the block.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1250 mod_case_brace = ignore # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1251
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1252 # If TRUE, it will remove a void 'return;' that appears as the last statement in a function.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1253 mod_remove_empty_return = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1254
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1255 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1256 # Comment modifications
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1257 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1258
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1259 # Try to wrap comments at cmt_width columns
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1260 cmt_width = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1261
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1262 # Set the comment reflow mode (default: 0)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1263 # 0: no reflowing (apart from the line wrapping due to cmt_width)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1264 # 1: no touching at all
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1265 # 2: full reflow
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1266 cmt_reflow_mode = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1267
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1268 # If false, disable all multi-line comment changes, including cmt_width. keyword substitution, and leading chars.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1269 # Default is true.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1270 cmt_indent_multi = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1271
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1272 # Whether to group c-comments that look like they are in a block
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1273 cmt_c_group = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1274
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1275 # Whether to put an empty '/*' on the first line of the combined c-comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1276 cmt_c_nl_start = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1277
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1278 # Whether to put a newline before the closing '*/' of the combined c-comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1279 cmt_c_nl_end = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1280
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1281 # Whether to group cpp-comments that look like they are in a block
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1282 cmt_cpp_group = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1283
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1284 # Whether to put an empty '/*' on the first line of the combined cpp-comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1285 cmt_cpp_nl_start = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1286
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1287 # Whether to put a newline before the closing '*/' of the combined cpp-comment
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1288 cmt_cpp_nl_end = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1289
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1290 # Whether to change cpp-comments into c-comments
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1291 cmt_cpp_to_c = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1292
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1293 # Whether to put a star on subsequent comment lines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1294 cmt_star_cont = true # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1295
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1296 # The number of spaces to insert at the start of subsequent comment lines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1297 cmt_sp_before_star_cont = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1298
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1299 # The number of spaces to insert after the star on subsequent comment lines
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1300 cmt_sp_after_star_cont = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1301
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1302 # For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1303 # the comment are the same length. Default=True
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1304 cmt_multi_check_last = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1305
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1306 # The filename that contains text to insert at the head of a file if the file doesn't start with a C/C++ comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1307 # Will substitute $(filename) with the current file's name.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1308 cmt_insert_file_header = "" # string
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1309
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1310 # The filename that contains text to insert at the end of a file if the file doesn't end with a C/C++ comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1311 # Will substitute $(filename) with the current file's name.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1312 cmt_insert_file_footer = "" # string
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1313
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1314 # The filename that contains text to insert before a function implementation if the function isn't preceded with a C/C++ comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1315 # Will substitute $(function) with the function name and $(javaparam) with the javadoc @param and @return stuff.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1316 # Will also substitute $(fclass) with the class name: void CFoo::Bar() { ... }
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1317 cmt_insert_func_header = "" # string
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1318
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1319 # The filename that contains text to insert before a class if the class isn't preceded with a C/C++ comment.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1320 # Will substitute $(class) with the class name.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1321 cmt_insert_class_header = "" # string
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1322
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1323 # If a preprocessor is encountered when stepping backwards from a function name, then
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1324 # this option decides whether the comment should be inserted.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1325 # Affects cmt_insert_func_header and cmt_insert_class_header.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1326 cmt_insert_before_preproc = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1327
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1328 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1329 # Preprocessor options
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1330 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1331
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1332 # Control indent of preprocessors inside #if blocks at brace level 0
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1333 pp_indent = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1334
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1335 # Whether to indent #if/#else/#endif at the brace level (true) or from column 1 (false)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1336 pp_indent_at_level = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1337
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1338 # If pp_indent_at_level=false, specifies the number of columns to indent per level. Default=1.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1339 pp_indent_count = 1 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1340
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1341 # Add or remove space after # based on pp_level of #if blocks
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1342 pp_space = remove # ignore/add/remove/force
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1343
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1344 # Sets the number of spaces added with pp_space
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1345 pp_space_count = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1346
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1347 # The indent for #region and #endregion in C# and '#pragma region' in C/C++
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1348 pp_indent_region = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1349
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1350 # Whether to indent the code between #region and #endregion
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1351 pp_region_indent_code = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1352
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1353 # If pp_indent_at_level=true, sets the indent for #if, #else, and #endif when not at file-level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1354 pp_indent_if = 0 # number
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1355
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1356 # Control whether to indent the code between #if, #else and #endif when not at file-level
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1357 pp_if_indent_code = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1358
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1359 # Whether to indent '#define' at the brace level (true) or from column 1 (false)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1360 pp_define_at_level = false # false/true
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1361
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1362 # You can force a token to be a type with the 'type' option.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1363 # Example:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1364 # type myfoo1 myfoo2
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1365 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1366 # You can create custom macro-based indentation using macro-open,
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1367 # macro-else and macro-close.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1368 # Example:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1369 # macro-open BEGIN_TEMPLATE_MESSAGE_MAP
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1370 # macro-open BEGIN_MESSAGE_MAP
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1371 # macro-close END_MESSAGE_MAP
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1372 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1373 # You can assign any keyword to any type with the set option.
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1374 # set func_call_user _ N_
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1375 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1376 # The full syntax description of all custom definition config entries
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1377 # is shown below:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1378 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1379 # define custom tokens as:
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1380 # - embed whitespace in token using '' escape character, or
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1381 # put token in quotes
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1382 # - these: ' " and ` are recognized as quote delimiters
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1383 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1384 # type token1 token2 token3 ...
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1385 # ^ optionally specify multiple tokens on a single line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1386 # define def_token output_token
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1387 # ^ output_token is optional, then NULL is assumed
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1388 # macro-open token
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1389 # macro-close token
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1390 # macro-else token
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1391 # set id token1 token2 ...
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1392 # ^ optionally specify multiple tokens on a single line
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1393 # ^ id is one of the names in token_enum.h sans the CT_ prefix,
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1394 # e.g. PP_PRAGMA
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1395 #
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1396 # all tokens are separated by any mix of ',' commas, '=' equal signs
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1397 # and whitespace (space, tab)
a899bfef04c8 Add Uncrustify profile.
cboesch
parents:
diff changeset
1398 #