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