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