blob: 6c76edb61156872ecda52a02bde0f9519d9ca92e [file] [log] [blame]
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001# Uncrustify-0.71.0_f
2
3#
4# General options
5#
6
7# Added specific file extensions.
8file_ext C .c.in
9file_ext C-Header .h.in
10
11# The type of line endings.
12#
13# Default: auto
14newlines = lf # lf/crlf/cr/auto
15
16# The original size of tabs in the input.
17#
18# Default: 8
19input_tab_size = 8 # unsigned number
20
21# The size of tabs in the output (only used if align_with_tabs=true).
22#
23# Default: 8
24output_tab_size = 8 # unsigned number
25
26# The ASCII value of the string escape char, usually 92 (\) or (Pawn) 94 (^).
27#
28# Default: 92
29string_escape_char = 92 # unsigned number
30
31# Alternate string escape char (usually only used for Pawn).
32# Only works right before the quote char.
33string_escape_char2 = 0 # unsigned number
34
35# Replace tab characters found in string literals with the escape sequence \t
36# instead.
37string_replace_tab_chars = true # true/false
38
39# Allow interpreting '>=' and '>>=' as part of a template in code like
40# 'void f(list<list<B>>=val);'. If true, 'assert(x<0 && y>=3)' will be broken.
41# Improvements to template detection may make this option obsolete.
42tok_split_gte = false # true/false
43
44# Disable formatting of NL_CONT ('\\n') ended lines (e.g. multiline macros)
45disable_processing_nl_cont = false # true/false
46
47# Specify the marker used in comments to disable processing of part of the
48# file.
49# The comment should be used alone in one line.
50#
51# Default: *INDENT-OFF*
52disable_processing_cmt = " *INDENT-OFF*" # string
53
54# Specify the marker used in comments to (re)enable processing in a file.
55# The comment should be used alone in one line.
56#
57# Default: *INDENT-ON*
58enable_processing_cmt = " *INDENT-ON*" # string
59
60# Enable parsing of digraphs.
61enable_digraphs = false # true/false
62
Michal Vasko6ce8e822022-08-02 15:09:17 +020063# Option to allow both disable_processing_cmt and enable_processing_cmt
64# strings, if specified, to be interpreted as ECMAScript regular expressions.
65# If true, a regex search will be performed within comments according to the
66# specified patterns in order to disable/enable processing.
67processing_cmt_as_regex = false # true/false
68
Michal Vaskob0e3ec42021-05-26 09:48:31 +020069# Add or remove the UTF-8 BOM (recommend 'remove').
70utf8_bom = ignore # ignore/add/remove/force
71
72# If the file contains bytes with values between 128 and 255, but is not
73# UTF-8, then output as UTF-8.
74utf8_byte = false # true/false
75
76# Force the output encoding to UTF-8.
77utf8_force = true # true/false
78
79# Add or remove space between 'do' and '{'.
80sp_do_brace_open = force # ignore/add/remove/force
81
82# Add or remove space between '}' and 'while'.
83sp_brace_close_while = force # ignore/add/remove/force
84
85# Add or remove space between 'while' and '('.
86sp_while_paren_open = force # ignore/add/remove/force
87
88#
89# Spacing options
90#
91
92# Add or remove space around non-assignment symbolic operators ('+', '/', '%',
93# '<<', and so forth).
94sp_arith = force # ignore/add/remove/force
95
96# Add or remove space around arithmetic operators '+' and '-'.
97#
98# Overrides sp_arith.
99sp_arith_additive = force # ignore/add/remove/force
100
101# Add or remove space around assignment operator '=', '+=', etc.
102sp_assign = force # ignore/add/remove/force
103
104# Add or remove space around '=' in C++11 lambda capture specifications.
105#
106# Overrides sp_assign.
107sp_cpp_lambda_assign = force # ignore/add/remove/force
108
109# Add or remove space after the capture specification of a C++11 lambda when
110# an argument list is present, as in '[] <here> (int x){ ... }'.
111sp_cpp_lambda_square_paren = ignore # ignore/add/remove/force
112
113# Add or remove space after the capture specification of a C++11 lambda with
114# no argument list is present, as in '[] <here> { ... }'.
115sp_cpp_lambda_square_brace = ignore # ignore/add/remove/force
116
Michal Vasko6ce8e822022-08-02 15:09:17 +0200117# Add or remove space after the opening parenthesis and before the closing
118# parenthesis of a argument list of a C++11 lambda, as in
119# '[]( <here> int x <here> ){ ... }'.
120sp_cpp_lambda_argument_list = ignore # ignore/add/remove/force/not_defined
121
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200122# Add or remove space after the argument list of a C++11 lambda, as in
123# '[](int x) <here> { ... }'.
124sp_cpp_lambda_paren_brace = ignore # ignore/add/remove/force
125
126# Add or remove space between a lambda body and its call operator of an
127# immediately invoked lambda, as in '[]( ... ){ ... } <here> ( ... )'.
128sp_cpp_lambda_fparen = ignore # ignore/add/remove/force
129
130# Add or remove space around assignment operator '=' in a prototype.
131#
132# If set to ignore, use sp_assign.
133sp_assign_default = ignore # ignore/add/remove/force
134
135# Add or remove space before assignment operator '=', '+=', etc.
136#
137# Overrides sp_assign.
138sp_before_assign = force # ignore/add/remove/force
139
140# Add or remove space after assignment operator '=', '+=', etc.
141#
142# Overrides sp_assign.
143sp_after_assign = force # ignore/add/remove/force
144
Michal Vasko6ce8e822022-08-02 15:09:17 +0200145# Add or remove space in 'enum {'.
146#
147# Default: add
148sp_enum_brace = force # ignore/add/remove/force/not_defined
149
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200150# Add or remove space in 'NS_ENUM ('.
151sp_enum_paren = force # ignore/add/remove/force
152
153# Add or remove space around assignment '=' in enum.
154sp_enum_assign = force # ignore/add/remove/force
155
156# Add or remove space before assignment '=' in enum.
157#
158# Overrides sp_enum_assign.
159sp_enum_before_assign = force # ignore/add/remove/force
160
161# Add or remove space after assignment '=' in enum.
162#
163# Overrides sp_enum_assign.
164sp_enum_after_assign = force # ignore/add/remove/force
165
166# Add or remove space around assignment ':' in enum.
167sp_enum_colon = ignore # ignore/add/remove/force
168
169# Add or remove space around preprocessor '##' concatenation operator.
170#
171# Default: add
172sp_pp_concat = ignore # ignore/add/remove/force
173
174# Add or remove space after preprocessor '#' stringify operator.
175# Also affects the '#@' charizing operator.
176sp_pp_stringify = ignore # ignore/add/remove/force
177
178# Add or remove space before preprocessor '#' stringify operator
179# as in '#define x(y) L#y'.
180sp_before_pp_stringify = ignore # ignore/add/remove/force
181
182# Add or remove space around boolean operators '&&' and '||'.
183sp_bool = force # ignore/add/remove/force
184
185# Add or remove space around compare operator '<', '>', '==', etc.
186sp_compare = force # ignore/add/remove/force
187
188# Add or remove space inside '(' and ')'.
189sp_inside_paren = remove # ignore/add/remove/force
190
191# Add or remove space between nested parentheses, i.e. '((' vs. ') )'.
192sp_paren_paren = remove # ignore/add/remove/force
193
194# Add or remove space between back-to-back parentheses, i.e. ')(' vs. ') ('.
195sp_cparen_oparen = remove # ignore/add/remove/force
196
197# Whether to balance spaces inside nested parentheses.
198sp_balance_nested_parens = false # true/false
199
200# Add or remove space between ')' and '{'.
201sp_paren_brace = force # ignore/add/remove/force
202
203# Add or remove space between nested braces, i.e. '{{' vs '{ {'.
204sp_brace_brace = ignore # ignore/add/remove/force
205
206# Add or remove space before pointer star '*'.
207sp_before_ptr_star = force # ignore/add/remove/force
208
209# Add or remove space before pointer star '*' that isn't followed by a
210# variable name. If set to ignore, sp_before_ptr_star is used instead.
211sp_before_unnamed_ptr_star = ignore # ignore/add/remove/force
212
213# Add or remove space between pointer stars '*'.
214sp_between_ptr_star = remove # ignore/add/remove/force
215
216# Add or remove space after pointer star '*', if followed by a word.
217#
218# Overrides sp_type_func.
219sp_after_ptr_star = remove # ignore/add/remove/force
220
221# Add or remove space after pointer caret '^', if followed by a word.
222#sp_after_ptr_block_caret = ignore # ignore/add/remove/force
223
224# Add or remove space after pointer star '*', if followed by a qualifier.
225sp_after_ptr_star_qualifier = force # ignore/add/remove/force
226
227# Add or remove space after a pointer star '*', if followed by a function
228# prototype or function definition.
229#
230# Overrides sp_after_ptr_star and sp_type_func.
231sp_after_ptr_star_func = ignore # ignore/add/remove/force
232
Michal Vasko6ce8e822022-08-02 15:09:17 +0200233# Add or remove space after a pointer star '*' in the trailing return of a
234# function prototype or function definition.
235sp_after_ptr_star_trailing = ignore # ignore/add/remove/force/not_defined
236
237# Add or remove space between the pointer star '*' and the name of the variable
238# in a function pointer definition.
239sp_ptr_star_func_var = remove # ignore/add/remove/force/not_defined
240
241# Add or remove space between the pointer star '*' and the name of the type
242# in a function pointer type definition.
243sp_ptr_star_func_type = remove # ignore/add/remove/force/not_defined
244
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200245# Add or remove space after a pointer star '*', if followed by an open
246# parenthesis, as in 'void* (*)().
247sp_ptr_star_paren = remove # ignore/add/remove/force
248
249# Add or remove space before a pointer star '*', if followed by a function
250# prototype or function definition.
251sp_before_ptr_star_func = force # ignore/add/remove/force
252
Michal Vasko6ce8e822022-08-02 15:09:17 +0200253# Add or remove space before a pointer star '*' in the trailing return of a
254# function prototype or function definition.
255sp_before_ptr_star_trailing = ignore # ignore/add/remove/force/not_defined
256
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200257# Add or remove space before a reference sign '&'.
258sp_before_byref = ignore # ignore/add/remove/force
259
260# Add or remove space before a reference sign '&' that isn't followed by a
261# variable name. If set to ignore, sp_before_byref is used instead.
262sp_before_unnamed_byref = ignore # ignore/add/remove/force
263
264# Add or remove space after reference sign '&', if followed by a word.
265#
266# Overrides sp_type_func.
267sp_after_byref = ignore # ignore/add/remove/force
268
269# Add or remove space after a reference sign '&', if followed by a function
270# prototype or function definition.
271#
272# Overrides sp_after_byref and sp_type_func.
273sp_after_byref_func = ignore # ignore/add/remove/force
274
275# Add or remove space before a reference sign '&', if followed by a function
276# prototype or function definition.
277sp_before_byref_func = ignore # ignore/add/remove/force
278
Michal Vasko6ce8e822022-08-02 15:09:17 +0200279# Add or remove space after a reference sign '&', if followed by an open
280# parenthesis, as in 'char& (*)()'.
281sp_byref_paren = ignore # ignore/add/remove/force/not_defined
282
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200283# Add or remove space between type and word.
284#
285# Default: force
286sp_after_type = ignore # ignore/add/remove/force
287
288# Add or remove space between 'decltype(...)' and word.
289sp_after_decltype = ignore # ignore/add/remove/force
290
291# (D) Add or remove space before the parenthesis in the D constructs
292# 'template Foo(' and 'class Foo('.
293sp_before_template_paren = ignore # ignore/add/remove/force
294
295# Add or remove space between 'template' and '<'.
296# If set to ignore, sp_before_angle is used.
297sp_template_angle = ignore # ignore/add/remove/force
298
299# Add or remove space before '<'.
300sp_before_angle = ignore # ignore/add/remove/force
301
302# Add or remove space inside '<' and '>'.
303sp_inside_angle = ignore # ignore/add/remove/force
304
305# Add or remove space inside '<>'.
306sp_inside_angle_empty = ignore # ignore/add/remove/force
307
308# Add or remove space between '>' and ':'.
309sp_angle_colon = ignore # ignore/add/remove/force
310
311# Add or remove space after '>'.
312sp_after_angle = ignore # ignore/add/remove/force
313
314# Add or remove space between '>' and '(' as found in 'new List<byte>(foo);'.
315sp_angle_paren = ignore # ignore/add/remove/force
316
317# Add or remove space between '>' and '()' as found in 'new List<byte>();'.
318sp_angle_paren_empty = ignore # ignore/add/remove/force
319
320# Add or remove space between '>' and a word as in 'List<byte> m;' or
321# 'template <typename T> static ...'.
322sp_angle_word = ignore # ignore/add/remove/force
323
324# Add or remove space between '>' and '>' in '>>' (template stuff).
325#
326# Default: add
327sp_angle_shift = ignore # ignore/add/remove/force
328
329# (C++11) Permit removal of the space between '>>' in 'foo<bar<int> >'. Note
330# that sp_angle_shift cannot remove the space without this option.
331sp_permit_cpp11_shift = false # true/false
332
333# Add or remove space before '(' of control statements ('if', 'for', 'switch',
334# 'while', etc.).
335sp_before_sparen = force # ignore/add/remove/force
336
337# Add or remove space inside '(' and ')' of control statements.
338sp_inside_sparen = remove # ignore/add/remove/force
339
340# Add or remove space after '(' of control statements.
341#
342# Overrides sp_inside_sparen.
343sp_inside_sparen_open = ignore # ignore/add/remove/force
344
345# Add or remove space before ')' of control statements.
346#
347# Overrides sp_inside_sparen.
348sp_inside_sparen_close = ignore # ignore/add/remove/force
349
Michal Vasko6ce8e822022-08-02 15:09:17 +0200350# Add or remove space inside '(' and ')' of 'for' statements.
351sp_inside_for = remove # ignore/add/remove/force/not_defined
352
353# Add or remove space after '(' of 'for' statements.
354#
355# Overrides sp_inside_for.
356sp_inside_for_open = ignore # ignore/add/remove/force/not_defined
357
358# Add or remove space before ')' of 'for' statements.
359#
360# Overrides sp_inside_for.
361sp_inside_for_close = ignore # ignore/add/remove/force/not_defined
362
363# Add or remove space between '((' or '))' of control statements.
364sp_sparen_paren = ignore # ignore/add/remove/force/not_defined
365
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200366# Add or remove space after ')' of control statements.
367sp_after_sparen = force # ignore/add/remove/force
368
369# Add or remove space between ')' and '{' of of control statements.
370sp_sparen_brace = force # ignore/add/remove/force
371
372# (D) Add or remove space between 'invariant' and '('.
373sp_invariant_paren = ignore # ignore/add/remove/force
374
375# (D) Add or remove space after the ')' in 'invariant (C) c'.
376sp_after_invariant_paren = ignore # ignore/add/remove/force
377
378# Add or remove space before empty statement ';' on 'if', 'for' and 'while'.
379sp_special_semi = ignore # ignore/add/remove/force
380
381# Add or remove space before ';'.
382#
383# Default: remove
384sp_before_semi = remove # ignore/add/remove/force
385
386# Add or remove space before ';' in non-empty 'for' statements.
387sp_before_semi_for = remove # ignore/add/remove/force
388
389# Add or remove space before a semicolon of an empty part of a for statement.
390sp_before_semi_for_empty = force # ignore/add/remove/force
391
Michal Vasko6ce8e822022-08-02 15:09:17 +0200392# Add or remove space between the semicolons of an empty middle part of a for
393# statement, as in 'for ( ; <here> ; )'.
394sp_between_semi_for_empty = ignore # ignore/add/remove/force/not_defined
395
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200396# Add or remove space after ';', except when followed by a comment.
397#
398# Default: add
399sp_after_semi = force # ignore/add/remove/force
400
401# Add or remove space after ';' in non-empty 'for' statements.
402#
403# Default: force
404sp_after_semi_for = force # ignore/add/remove/force
405
406# Add or remove space after the final semicolon of an empty part of a for
407# statement, as in 'for ( ; ; <here> )'.
408sp_after_semi_for_empty = force # ignore/add/remove/force
409
410# Add or remove space before '[' (except '[]').
411sp_before_square = ignore # ignore/add/remove/force
412
413# Add or remove space before '[' for a variable definition.
414#
415# Default: remove
416sp_before_vardef_square = ignore # ignore/add/remove/force
417
418# Add or remove space before '[' for asm block.
419sp_before_square_asm_block = ignore # ignore/add/remove/force
420
421# Add or remove space before '[]'.
422sp_before_squares = ignore # ignore/add/remove/force
423
424# Add or remove space before C++17 structured bindings.
425sp_cpp_before_struct_binding = ignore # ignore/add/remove/force
426
427# Add or remove space inside a non-empty '[' and ']'.
428sp_inside_square = ignore # ignore/add/remove/force
429
Michal Vasko6ce8e822022-08-02 15:09:17 +0200430# Add or remove space inside '[]'.
431sp_inside_square_empty = remove # ignore/add/remove/force/not_defined
432
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200433# (OC) Add or remove space inside a non-empty Objective-C boxed array '@[' and
434# ']'. If set to ignore, sp_inside_square is used.
435sp_inside_square_oc_array = ignore # ignore/add/remove/force
436
437# Add or remove space after ',', i.e. 'a,b' vs. 'a, b'.
438sp_after_comma = add # ignore/add/remove/force
439
440# Add or remove space before ','.
441#
442# Default: remove
443sp_before_comma = remove # ignore/add/remove/force
444
445# (C#) Add or remove space between ',' and ']' in multidimensional array type
446# like 'int[,,]'.
447sp_after_mdatype_commas = ignore # ignore/add/remove/force
448
449# (C#) Add or remove space between '[' and ',' in multidimensional array type
450# like 'int[,,]'.
451sp_before_mdatype_commas = ignore # ignore/add/remove/force
452
453# (C#) Add or remove space between ',' in multidimensional array type
454# like 'int[,,]'.
455sp_between_mdatype_commas = ignore # ignore/add/remove/force
456
457# Add or remove space between an open parenthesis and comma,
458# i.e. '(,' vs. '( ,'.
459#
460# Default: force
461sp_paren_comma = force # ignore/add/remove/force
462
Michal Vasko6ce8e822022-08-02 15:09:17 +0200463# Add or remove space between a type and ':'.
464sp_type_colon = ignore # ignore/add/remove/force/not_defined
465
466# Add or remove space after the variadic '...' when preceded by a
467# non-punctuator.
468# The value REMOVE will be overriden with FORCE
469sp_after_ellipsis = ignore # ignore/add/remove/force/not_defined
470
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200471# Add or remove space before the variadic '...' when preceded by a
472# non-punctuator.
473sp_before_ellipsis = force # ignore/add/remove/force
474
475# Add or remove space between a type and '...'.
476sp_type_ellipsis = force # ignore/add/remove/force
477
Michal Vasko6ce8e822022-08-02 15:09:17 +0200478# Add or remove space between a '*' and '...'.
479sp_ptr_type_ellipsis = ignore # ignore/add/remove/force/not_defined
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200480
481# Add or remove space between ')' and '...'.
482sp_paren_ellipsis = force # ignore/add/remove/force
483
Michal Vasko6ce8e822022-08-02 15:09:17 +0200484# Add or remove space between '&&' and '...'.
485sp_byref_ellipsis = ignore # ignore/add/remove/force/not_defined
486
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200487# Add or remove space between ')' and a qualifier such as 'const'.
488sp_paren_qualifier = force # ignore/add/remove/force
489
490# Add or remove space between ')' and 'noexcept'.
491sp_paren_noexcept = ignore # ignore/add/remove/force
492
493# Add or remove space after class ':'.
494sp_after_class_colon = ignore # ignore/add/remove/force
495
496# Add or remove space before class ':'.
497sp_before_class_colon = ignore # ignore/add/remove/force
498
499# Add or remove space after class constructor ':'.
500sp_after_constr_colon = ignore # ignore/add/remove/force
501
502# Add or remove space before class constructor ':'.
503sp_before_constr_colon = ignore # ignore/add/remove/force
504
505# Add or remove space before case ':'.
506#
507# Default: remove
508sp_before_case_colon = remove # ignore/add/remove/force
509
510# Add or remove space between 'operator' and operator sign.
511sp_after_operator = ignore # ignore/add/remove/force
512
513# Add or remove space between the operator symbol and the open parenthesis, as
514# in 'operator ++('.
515sp_after_operator_sym = ignore # ignore/add/remove/force
516
517# Overrides sp_after_operator_sym when the operator has no arguments, as in
518# 'operator *()'.
519sp_after_operator_sym_empty = ignore # ignore/add/remove/force
520
521# Add or remove space after C/D cast, i.e. 'cast(int)a' vs. 'cast(int) a' or
522# '(int)a' vs. '(int) a'.
523sp_after_cast = ignore # ignore/add/remove/force
524
525# Add or remove spaces inside cast parentheses.
526sp_inside_paren_cast = remove # ignore/add/remove/force
527
528# Add or remove space between the type and open parenthesis in a C++ cast,
529# i.e. 'int(exp)' vs. 'int (exp)'.
530sp_cpp_cast_paren = ignore # ignore/add/remove/force
531
532# Add or remove space between 'sizeof' and '('.
533sp_sizeof_paren = ignore # ignore/add/remove/force
534
535# Add or remove space between 'sizeof' and '...'.
536sp_sizeof_ellipsis = remove # ignore/add/remove/force
537
538# Add or remove space between 'sizeof...' and '('.
539sp_sizeof_ellipsis_paren = remove # ignore/add/remove/force
540
Michal Vasko6ce8e822022-08-02 15:09:17 +0200541# Add or remove space between '...' and a parameter pack.
542sp_ellipsis_parameter_pack = ignore # ignore/add/remove/force/not_defined
543
544# Add or remove space between a parameter pack and '...'.
545sp_parameter_pack_ellipsis = ignore # ignore/add/remove/force/not_defined
546
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200547# Add or remove space between 'decltype' and '('.
548sp_decltype_paren = ignore # ignore/add/remove/force
549
550# (Pawn) Add or remove space after the tag keyword.
551#sp_after_tag = ignore # ignore/add/remove/force
552
553# Add or remove space inside enum '{' and '}'.
554sp_inside_braces_enum = force # ignore/add/remove/force
555
556# Add or remove space inside struct/union '{' and '}'.
557sp_inside_braces_struct = force # ignore/add/remove/force
558
559# (OC) Add or remove space inside Objective-C boxed dictionary '{' and '}'
560#sp_inside_braces_oc_dict = ignore # ignore/add/remove/force
561
562# Add or remove space after open brace in an unnamed temporary
563# direct-list-initialization.
564sp_after_type_brace_init_lst_open = ignore # ignore/add/remove/force
565
566# Add or remove space before close brace in an unnamed temporary
567# direct-list-initialization.
568sp_before_type_brace_init_lst_close = ignore # ignore/add/remove/force
569
570# Add or remove space inside an unnamed temporary direct-list-initialization.
571sp_inside_type_brace_init_lst = ignore # ignore/add/remove/force
572
573# Add or remove space inside '{' and '}'.
574sp_inside_braces = remove # ignore/add/remove/force
575
576# Add or remove space inside '{}'.
577sp_inside_braces_empty = remove # ignore/add/remove/force
578
579# Add or remove space around trailing return operator '->'.
580sp_trailing_return = ignore # ignore/add/remove/force
581
582# Add or remove space between return type and function name. A minimum of 1
583# is forced except for pointer return types.
584sp_type_func = remove # ignore/add/remove/force
585
586# Add or remove space between type and open brace of an unnamed temporary
587# direct-list-initialization.
588sp_type_brace_init_lst = ignore # ignore/add/remove/force
589
590# Add or remove space between function name and '(' on function declaration.
591sp_func_proto_paren = remove # ignore/add/remove/force
592
593# Add or remove space between function name and '()' on function declaration
594# without parameters.
595sp_func_proto_paren_empty = remove # ignore/add/remove/force
596
597# Add or remove space between function name and '(' with a typedef specifier.
598sp_func_type_paren = remove # ignore/add/remove/force
599
600# Add or remove space between alias name and '(' of a non-pointer function type typedef.
601sp_func_def_paren = ignore # ignore/add/remove/force
602
603# Add or remove space between function name and '()' on function definition
604# without parameters.
605sp_func_def_paren_empty = remove # ignore/add/remove/force
606
607# Add or remove space inside empty function '()'.
608# Overrides sp_after_angle unless use_sp_after_angle_always is set to true.
609sp_inside_fparens = remove # ignore/add/remove/force
610
611# Add or remove space inside function '(' and ')'.
612sp_inside_fparen = remove # ignore/add/remove/force
613
614# Add or remove space inside the first parentheses in a function type, as in
615# 'void (*x)(...)'.
616sp_inside_tparen = remove # ignore/add/remove/force
617
618# Add or remove space between the ')' and '(' in a function type, as in
619# 'void (*x)(...)'.
620sp_after_tparen_close = remove # ignore/add/remove/force
621
622# Add or remove space between ']' and '(' when part of a function call.
623sp_square_fparen = ignore # ignore/add/remove/force
624
625# Add or remove space between ')' and '{' of function.
626sp_fparen_brace = ignore # ignore/add/remove/force
627
628# Add or remove space between ')' and '{' of s function call in object
629# initialization.
630#
631# Overrides sp_fparen_brace.
632sp_fparen_brace_initializer = ignore # ignore/add/remove/force
633
634# (Java) Add or remove space between ')' and '{{' of double brace initializer.
635sp_fparen_dbrace = ignore # ignore/add/remove/force
636
637# Add or remove space between function name and '(' on function calls.
638sp_func_call_paren = ignore # ignore/add/remove/force
639
640# Add or remove space between function name and '()' on function calls without
641# parameters. If set to ignore (the default), sp_func_call_paren is used.
642sp_func_call_paren_empty = ignore # ignore/add/remove/force
643
644# Add or remove space between the user function name and '(' on function
645# calls. You need to set a keyword to be a user function in the config file,
646# like:
647# set func_call_user tr _ i18n
648sp_func_call_user_paren = ignore # ignore/add/remove/force
649
650# Add or remove space inside user function '(' and ')'.
651sp_func_call_user_inside_fparen = ignore # ignore/add/remove/force
652
653# Add or remove space between nested parentheses with user functions,
654# i.e. '((' vs. '( ('.
655sp_func_call_user_paren_paren = ignore # ignore/add/remove/force
656
657# Add or remove space between a constructor/destructor and the open
658# parenthesis.
659sp_func_class_paren = ignore # ignore/add/remove/force
660
661# Add or remove space between a constructor without parameters or destructor
662# and '()'.
663sp_func_class_paren_empty = ignore # ignore/add/remove/force
664
Michal Vasko6ce8e822022-08-02 15:09:17 +0200665# Add or remove space after 'return'.
666#
667# Default: force
668sp_return = force # ignore/add/remove/force/not_defined
669
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200670# Add or remove space between 'return' and '('.
671sp_return_paren = force # ignore/add/remove/force
672
673# Add or remove space between 'return' and '{'.
674sp_return_brace = force # ignore/add/remove/force
675
676# Add or remove space between '__attribute__' and '('.
677sp_attribute_paren = remove # ignore/add/remove/force
678
679# Add or remove space between 'defined' and '(' in '#if defined (FOO)'.
680sp_defined_paren = force # ignore/add/remove/force
681
682# Add or remove space between 'throw' and '(' in 'throw (something)'.
683sp_throw_paren = ignore # ignore/add/remove/force
684
685# Add or remove space between 'throw' and anything other than '(' as in
686# '@throw [...];'.
687sp_after_throw = ignore # ignore/add/remove/force
688
689# Add or remove space between 'catch' and '(' in 'catch (something) { }'.
690# If set to ignore, sp_before_sparen is used.
691sp_catch_paren = ignore # ignore/add/remove/force
692
693# (OC) Add or remove space between '@catch' and '('
694# in '@catch (something) { }'. If set to ignore, sp_catch_paren is used.
695sp_oc_catch_paren = ignore # ignore/add/remove/force
696
697# (OC) Add or remove space before Objective-C protocol list
698# as in '@protocol Protocol<here><Protocol_A>' or '@interface MyClass : NSObject<here><MyProtocol>'.
699sp_before_oc_proto_list = ignore # ignore/add/remove/force
700
701# (OC) Add or remove space between class name and '('
702# in '@interface className(categoryName)<ProtocolName>:BaseClass'
703sp_oc_classname_paren = ignore # ignore/add/remove/force
704
705# (D) Add or remove space between 'version' and '('
706# in 'version (something) { }'. If set to ignore, sp_before_sparen is used.
707sp_version_paren = ignore # ignore/add/remove/force
708
709# (D) Add or remove space between 'scope' and '('
710# in 'scope (something) { }'. If set to ignore, sp_before_sparen is used.
711sp_scope_paren = ignore # ignore/add/remove/force
712
713# Add or remove space between 'super' and '(' in 'super (something)'.
714#
715# Default: remove
716sp_super_paren = ignore # ignore/add/remove/force
717
718# Add or remove space between 'this' and '(' in 'this (something)'.
719#
720# Default: remove
721sp_this_paren = ignore # ignore/add/remove/force
722
723# Add or remove space between a macro name and its definition.
724sp_macro = force # ignore/add/remove/force
725
726# Add or remove space between a macro function ')' and its definition.
727sp_macro_func = force # ignore/add/remove/force
728
729# Add or remove space between 'else' and '{' if on the same line.
730sp_else_brace = force # ignore/add/remove/force
731
732# Add or remove space between '}' and 'else' if on the same line.
733sp_brace_else = force # ignore/add/remove/force
734
735# Add or remove space between '}' and the name of a typedef on the same line.
736sp_brace_typedef = force # ignore/add/remove/force
737
738# Add or remove space before the '{' of a 'catch' statement, if the '{' and
739# 'catch' are on the same line, as in 'catch (decl) <here> {'.
740sp_catch_brace = ignore # ignore/add/remove/force
741
742# (OC) Add or remove space before the '{' of a '@catch' statement, if the '{'
743# and '@catch' are on the same line, as in '@catch (decl) <here> {'.
744# If set to ignore, sp_catch_brace is used.
745sp_oc_catch_brace = ignore # ignore/add/remove/force
746
747# Add or remove space between '}' and 'catch' if on the same line.
748sp_brace_catch = ignore # ignore/add/remove/force
749
750# (OC) Add or remove space between '}' and '@catch' if on the same line.
751# If set to ignore, sp_brace_catch is used.
752sp_oc_brace_catch = ignore # ignore/add/remove/force
753
754# Add or remove space between 'finally' and '{' if on the same line.
755sp_finally_brace = ignore # ignore/add/remove/force
756
757# Add or remove space between '}' and 'finally' if on the same line.
758sp_brace_finally = ignore # ignore/add/remove/force
759
760# Add or remove space between 'try' and '{' if on the same line.
761sp_try_brace = ignore # ignore/add/remove/force
762
763# Add or remove space between get/set and '{' if on the same line.
764sp_getset_brace = ignore # ignore/add/remove/force
765
766# Add or remove space between a variable and '{' for C++ uniform
767# initialization.
768sp_word_brace_init_lst = ignore # ignore/add/remove/force
769
770# Add or remove space between a variable and '{' for a namespace.
771#
772# Default: add
773sp_word_brace_ns = ignore # ignore/add/remove/force
774
775# Add or remove space before the '::' operator.
776sp_before_dc = ignore # ignore/add/remove/force
777
778# Add or remove space after the '::' operator.
779sp_after_dc = ignore # ignore/add/remove/force
780
781# (D) Add or remove around the D named array initializer ':' operator.
782sp_d_array_colon = remove # ignore/add/remove/force
783
784# Add or remove space after the '!' (not) unary operator.
785#
786# Default: remove
787sp_not = remove # ignore/add/remove/force
788
Michal Vasko6ce8e822022-08-02 15:09:17 +0200789# Add or remove space between two '!' (not) unary operators.
790# If set to ignore, sp_not will be used.
791sp_not_not = remove # ignore/add/remove/force/not_defined
792
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200793# Add or remove space after the '~' (invert) unary operator.
794#
795# Default: remove
796sp_inv = remove # ignore/add/remove/force
797
798# Add or remove space after the '&' (address-of) unary operator. This does not
799# affect the spacing after a '&' that is part of a type.
800#
801# Default: remove
802sp_addr = remove # ignore/add/remove/force
803
804# Add or remove space around the '.' or '->' operators.
805#
806# Default: remove
807sp_member = remove # ignore/add/remove/force
808
809# Add or remove space after the '*' (dereference) unary operator. This does
810# not affect the spacing after a '*' that is part of a type.
811#
812# Default: remove
813sp_deref = remove # ignore/add/remove/force
814
815# Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'.
816#
817# Default: remove
818sp_sign = remove # ignore/add/remove/force
819
820# Add or remove space between '++' and '--' the word to which it is being
821# applied, as in '(--x)' or 'y++;'.
822#
823# Default: remove
824sp_incdec = remove # ignore/add/remove/force
825
826# Add or remove space before a backslash-newline at the end of a line.
827#
828# Default: add
829sp_before_nl_cont = ignore # ignore/add/remove/force
830
831# (OC) Add or remove space after the scope '+' or '-', as in '-(void) foo;'
832# or '+(int) bar;'.
833sp_after_oc_scope = ignore # ignore/add/remove/force
834
835# (OC) Add or remove space after the colon in message specs,
836# i.e. '-(int) f:(int) x;' vs. '-(int) f: (int) x;'.
837sp_after_oc_colon = ignore # ignore/add/remove/force
838
839# (OC) Add or remove space before the colon in message specs,
840# i.e. '-(int) f: (int) x;' vs. '-(int) f : (int) x;'.
841sp_before_oc_colon = ignore # ignore/add/remove/force
842
843# (OC) Add or remove space after the colon in immutable dictionary expression
844# 'NSDictionary *test = @{@"foo" :@"bar"};'.
845sp_after_oc_dict_colon = ignore # ignore/add/remove/force
846
847# (OC) Add or remove space before the colon in immutable dictionary expression
848# 'NSDictionary *test = @{@"foo" :@"bar"};'.
849sp_before_oc_dict_colon = ignore # ignore/add/remove/force
850
851# (OC) Add or remove space after the colon in message specs,
852# i.e. '[object setValue:1];' vs. '[object setValue: 1];'.
853sp_after_send_oc_colon = ignore # ignore/add/remove/force
854
855# (OC) Add or remove space before the colon in message specs,
856# i.e. '[object setValue:1];' vs. '[object setValue :1];'.
857sp_before_send_oc_colon = ignore # ignore/add/remove/force
858
859# (OC) Add or remove space after the (type) in message specs,
860# i.e. '-(int)f: (int) x;' vs. '-(int)f: (int)x;'.
861sp_after_oc_type = ignore # ignore/add/remove/force
862
863# (OC) Add or remove space after the first (type) in message specs,
864# i.e. '-(int) f:(int)x;' vs. '-(int)f:(int)x;'.
865sp_after_oc_return_type = ignore # ignore/add/remove/force
866
867# (OC) Add or remove space between '@selector' and '(',
868# i.e. '@selector(msgName)' vs. '@selector (msgName)'.
869# Also applies to '@protocol()' constructs.
870sp_after_oc_at_sel = ignore # ignore/add/remove/force
871
872# (OC) Add or remove space between '@selector(x)' and the following word,
873# i.e. '@selector(foo) a:' vs. '@selector(foo)a:'.
874sp_after_oc_at_sel_parens = ignore # ignore/add/remove/force
875
876# (OC) Add or remove space inside '@selector' parentheses,
877# i.e. '@selector(foo)' vs. '@selector( foo )'.
878# Also applies to '@protocol()' constructs.
879sp_inside_oc_at_sel_parens = ignore # ignore/add/remove/force
880
881# (OC) Add or remove space before a block pointer caret,
882# i.e. '^int (int arg){...}' vs. ' ^int (int arg){...}'.
883sp_before_oc_block_caret = ignore # ignore/add/remove/force
884
885# (OC) Add or remove space after a block pointer caret,
886# i.e. '^int (int arg){...}' vs. '^ int (int arg){...}'.
887sp_after_oc_block_caret = ignore # ignore/add/remove/force
888
889# (OC) Add or remove space between the receiver and selector in a message,
890# as in '[receiver selector ...]'.
891sp_after_oc_msg_receiver = ignore # ignore/add/remove/force
892
893# (OC) Add or remove space after '@property'.
894sp_after_oc_property = ignore # ignore/add/remove/force
895
896# (OC) Add or remove space between '@synchronized' and the open parenthesis,
897# i.e. '@synchronized(foo)' vs. '@synchronized (foo)'.
898sp_after_oc_synchronized = ignore # ignore/add/remove/force
899
900# Add or remove space around the ':' in 'b ? t : f'.
901sp_cond_colon = force # ignore/add/remove/force
902
903# Add or remove space before the ':' in 'b ? t : f'.
904#
905# Overrides sp_cond_colon.
906sp_cond_colon_before = ignore # ignore/add/remove/force
907
908# Add or remove space after the ':' in 'b ? t : f'.
909#
910# Overrides sp_cond_colon.
911sp_cond_colon_after = ignore # ignore/add/remove/force
912
913# Add or remove space around the '?' in 'b ? t : f'.
914sp_cond_question = force # ignore/add/remove/force
915
916# Add or remove space before the '?' in 'b ? t : f'.
917#
918# Overrides sp_cond_question.
919sp_cond_question_before = ignore # ignore/add/remove/force
920
921# Add or remove space after the '?' in 'b ? t : f'.
922#
923# Overrides sp_cond_question.
924sp_cond_question_after = ignore # ignore/add/remove/force
925
926# In the abbreviated ternary form '(a ?: b)', add or remove space between '?'
927# and ':'.
928#
929# Overrides all other sp_cond_* options.
930sp_cond_ternary_short = remove # ignore/add/remove/force
931
932# Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make
933# sense here.
934sp_case_label = force # ignore/add/remove/force
935
936# (D) Add or remove space around the D '..' operator.
937sp_range = ignore # ignore/add/remove/force
938
939# Add or remove space after ':' in a Java/C++11 range-based 'for',
940# as in 'for (Type var : expr)'.
941sp_after_for_colon = ignore # ignore/add/remove/force
942
943# Add or remove space before ':' in a Java/C++11 range-based 'for',
944# as in 'for (Type var : expr)'.
945sp_before_for_colon = ignore # ignore/add/remove/force
946
947# (D) Add or remove space between 'extern' and '(' as in 'extern (C)'.
948sp_extern_paren = ignore # ignore/add/remove/force
949
950# Add or remove space after the opening of a C++ comment,
951# i.e. '// A' vs. '//A'.
952sp_cmt_cpp_start = force # ignore/add/remove/force
953
Michal Vasko6ce8e822022-08-02 15:09:17 +0200954# Add or remove space in a C++ region marker comment, as in '// <here> BEGIN'.
955# A region marker is defined as a comment which is not preceded by other text
956# (i.e. the comment is the first non-whitespace on the line), and which starts
957# with either 'BEGIN' or 'END'.
958#
959# Overrides sp_cmt_cpp_start.
960sp_cmt_cpp_region = ignore # ignore/add/remove/force/not_defined
961
Michal Vaskob0e3ec42021-05-26 09:48:31 +0200962# If true, space is added with sp_cmt_cpp_start will be added after doxygen
963# sequences like '///', '///<', '//!' and '//!<'.
964sp_cmt_cpp_doxygen = true # true/false
965
966# If true, space is added with sp_cmt_cpp_start will be added after Qt
967# translator or meta-data comments like '//:', '//=', and '//~'.
968sp_cmt_cpp_qttr = true # true/false
969
970# Add or remove space between #else or #endif and a trailing comment.
971sp_endif_cmt = force # ignore/add/remove/force
972
973# Add or remove space after 'new', 'delete' and 'delete[]'.
974sp_after_new = ignore # ignore/add/remove/force
975
976# Add or remove space between 'new' and '(' in 'new()'.
977sp_between_new_paren = ignore # ignore/add/remove/force
978
979# Add or remove space between ')' and type in 'new(foo) BAR'.
980sp_after_newop_paren = ignore # ignore/add/remove/force
981
982# Add or remove space inside parenthesis of the new operator
983# as in 'new(foo) BAR'.
984sp_inside_newop_paren = ignore # ignore/add/remove/force
985
986# Add or remove space after the open parenthesis of the new operator,
987# as in 'new(foo) BAR'.
988#
989# Overrides sp_inside_newop_paren.
990sp_inside_newop_paren_open = ignore # ignore/add/remove/force
991
992# Add or remove space before the close parenthesis of the new operator,
993# as in 'new(foo) BAR'.
994#
995# Overrides sp_inside_newop_paren.
996sp_inside_newop_paren_close = ignore # ignore/add/remove/force
997
Michal Vasko6ce8e822022-08-02 15:09:17 +0200998# Add or remove space before a trailing comment.
999sp_before_tr_cmt = ignore # ignore/add/remove/force/not_defined
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001000
Michal Vasko6ce8e822022-08-02 15:09:17 +02001001# Number of spaces before a trailing comment.
1002sp_num_before_tr_cmt = 0 # unsigned number
1003
1004# Add or remove space before an embedded comment.
1005#
1006# Default: force
1007sp_before_emb_cmt = force # ignore/add/remove/force/not_defined
1008
1009# Number of spaces before an embedded comment.
1010#
1011# Default: 1
1012sp_num_before_emb_cmt = 1 # unsigned number
1013
1014# Add or remove space after an embedded comment.
1015#
1016# Default: force
1017sp_after_emb_cmt = force # ignore/add/remove/force/not_defined
1018
1019# Number of spaces after an embedded comment.
1020#
1021# Default: 1
1022sp_num_after_emb_cmt = 1 # unsigned number
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001023
1024# (Java) Add or remove space between an annotation and the open parenthesis.
1025sp_annotation_paren = ignore # ignore/add/remove/force
1026
1027# If true, vbrace tokens are dropped to the previous token and skipped.
1028sp_skip_vbrace_tokens = false # true/false
1029
1030# Add or remove space after 'noexcept'.
1031sp_after_noexcept = ignore # ignore/add/remove/force
1032
1033# Add or remove space after '_'.
1034sp_vala_after_translation = ignore # ignore/add/remove/force
1035
1036# If true, a <TAB> is inserted after #define.
1037force_tab_after_define = false # true/false
1038
1039#
1040# Indenting options
1041#
1042
1043# The number of columns to indent per level. Usually 2, 3, 4, or 8.
1044#
1045# Default: 8
1046indent_columns = 4 # unsigned number
1047
Michal Vasko6ce8e822022-08-02 15:09:17 +02001048# Whether to ignore indent for the first continuation line. Subsequent
1049# continuation lines will still be indented to match the first.
1050indent_ignore_first_continue = false # true/false
1051
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001052# The continuation indent. If non-zero, this overrides the indent of '(', '['
1053# and '=' continuation indents. Negative values are OK; negative value is
1054# absolute and not increased for each '(' or '[' level.
1055#
1056# For FreeBSD, this is set to 4.
1057indent_continue = 8 # number
1058
1059# The continuation indent, only for class header line(s). If non-zero, this
1060# overrides the indent of 'class' continuation indents.
1061indent_continue_class_head = 0 # unsigned number
1062
1063# Whether to indent empty lines (i.e. lines which contain only spaces before
1064# the newline character).
1065indent_single_newlines = false # true/false
1066
1067# The continuation indent for func_*_param if they are true. If non-zero, this
1068# overrides the indent.
1069indent_param = 4 # unsigned number
1070
1071# How to use tabs when indenting code.
1072#
1073# 0: Spaces only
1074# 1: Indent with tabs to brace level, align with spaces (default)
1075# 2: Indent and align with tabs, using spaces when not on a tabstop
1076#
1077# Default: 1
1078indent_with_tabs = 0 # unsigned number
1079
1080# Whether to indent comments that are not at a brace level with tabs on a
1081# tabstop. Requires indent_with_tabs=2. If false, will use spaces.
1082indent_cmt_with_tabs = false # true/false
1083
1084# Whether to indent strings broken by '\' so that they line up.
1085indent_align_string = false # true/false
1086
1087# The number of spaces to indent multi-line XML strings.
1088# Requires indent_align_string=true.
1089indent_xml_string = 4 # unsigned number
1090
1091# Spaces to indent '{' from level.
1092indent_brace = 0 # unsigned number
1093
1094# Whether braces are indented to the body level.
1095indent_braces = false # true/false
1096
1097# Whether to disable indenting function braces if indent_braces=true.
1098indent_braces_no_func = false # true/false
1099
1100# Whether to disable indenting class braces if indent_braces=true.
1101indent_braces_no_class = false # true/false
1102
1103# Whether to disable indenting struct braces if indent_braces=true.
1104indent_braces_no_struct = false # true/false
1105
1106# Whether to indent based on the size of the brace parent,
1107# i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc.
1108indent_brace_parent = false # true/false
1109
1110# Whether to indent based on the open parenthesis instead of the open brace
1111# in '({\n'.
1112indent_paren_open_brace = false # true/false
1113
1114# (C#) Whether to indent the brace of a C# delegate by another level.
1115indent_cs_delegate_brace = false # true/false
1116
1117# (C#) Whether to indent a C# delegate (to handle delegates with no brace) by
1118# another level.
1119indent_cs_delegate_body = false # true/false
1120
1121# Whether to indent the body of a 'namespace'.
1122indent_namespace = false # true/false
1123
1124# Whether to indent only the first namespace, and not any nested namespaces.
1125# Requires indent_namespace=true.
1126indent_namespace_single_indent = false # true/false
1127
1128# The number of spaces to indent a namespace block.
1129# If set to zero, use the value indent_columns
1130indent_namespace_level = 0 # unsigned number
1131
1132# If the body of the namespace is longer than this number, it won't be
1133# indented. Requires indent_namespace=true. 0 means no limit.
1134indent_namespace_limit = 0 # unsigned number
1135
Michal Vasko6ce8e822022-08-02 15:09:17 +02001136# Whether to indent only in inner namespaces (nested in other namespaces).
1137# Requires indent_namespace=true.
1138indent_namespace_inner_only = false # true/false
1139
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001140# Whether the 'extern "C"' body is indented.
1141indent_extern = false # true/false
1142
1143# Whether the 'class' body is indented.
1144indent_class = false # true/false
1145
Michal Vasko6ce8e822022-08-02 15:09:17 +02001146# Whether to ignore indent for the leading base class colon.
1147indent_ignore_before_class_colon = false # true/false
1148
1149# Additional indent before the leading base class colon.
1150# Negative values decrease indent down to the first column.
1151# Requires a newline break before colon (see pos_class_colon
1152# and nl_class_colon)
1153indent_before_class_colon = 0 # number
1154
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001155# Whether to indent the stuff after a leading base class colon.
1156indent_class_colon = false # true/false
1157
1158# Whether to indent based on a class colon instead of the stuff after the
1159# colon. Requires indent_class_colon=true.
1160indent_class_on_colon = false # true/false
1161
Michal Vasko6ce8e822022-08-02 15:09:17 +02001162# Whether to ignore indent for a leading class initializer colon.
1163indent_ignore_before_constr_colon = false # true/false
1164
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001165# Whether to indent the stuff after a leading class initializer colon.
1166indent_constr_colon = false # true/false
1167
1168# Virtual indent from the ':' for member initializers.
1169#
1170# Default: 2
1171indent_ctor_init_leading = 0 # unsigned number
1172
Michal Vasko6ce8e822022-08-02 15:09:17 +02001173# Virtual indent from the ':' for following member initializers.
1174#
1175# Default: 2
1176indent_ctor_init_following = 2 # unsigned number
1177
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001178# Additional indent for constructor initializer list.
1179# Negative values decrease indent down to the first column.
1180indent_ctor_init = 0 # number
1181
1182# Whether to indent 'if' following 'else' as a new block under the 'else'.
1183# If false, 'else\nif' is treated as 'else if' for indenting purposes.
1184indent_else_if = false # true/false
1185
1186# Amount to indent variable declarations after a open brace.
1187#
1188# <0: Relative
1189# >=0: Absolute
1190indent_var_def_blk = 0 # number
1191
1192# Whether to indent continued variable declarations instead of aligning.
1193indent_var_def_cont = true # true/false
1194
Michal Vasko6ce8e822022-08-02 15:09:17 +02001195# How to indent continued shift expressions ('<<' and '>>').
1196# Set align_left_shift=false when using this.
1197# 0: Align shift operators instead of indenting them (default)
1198# 1: Indent by one level
1199# -1: Preserve original indentation
1200indent_shift = 1 # number
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001201
1202# Whether to force indentation of function definitions to start in column 1.
1203indent_func_def_force_col1 = false # true/false
1204
1205# Whether to indent continued function call parameters one indent level,
1206# rather than aligning parameters under the open parenthesis.
1207indent_func_call_param = true # true/false
1208
1209# Whether to indent continued function definition parameters one indent level,
1210# rather than aligning parameters under the open parenthesis.
1211indent_func_def_param = true # true/false
1212
1213# for function definitions, only if indent_func_def_param is false
1214# Allows to align params when appropriate and indent them when not
1215# behave as if it was true if paren position is more than this value
1216# if paren position is more than the option value
1217indent_func_def_param_paren_pos_threshold = 0 # unsigned number
1218
1219# Whether to indent continued function call prototype one indent level,
1220# rather than aligning parameters under the open parenthesis.
1221indent_func_proto_param = true # true/false
1222
1223# Whether to indent continued function call declaration one indent level,
1224# rather than aligning parameters under the open parenthesis.
1225indent_func_class_param = true # true/false
1226
1227# Whether to indent continued class variable constructors one indent level,
1228# rather than aligning parameters under the open parenthesis.
1229indent_func_ctor_var_param = true # true/false
1230
1231# Whether to indent continued template parameter list one indent level,
1232# rather than aligning parameters under the open parenthesis.
1233indent_template_param = true # true/false
1234
1235# Double the indent for indent_func_xxx_param options.
1236# Use both values of the options indent_columns and indent_param.
1237indent_func_param_double = true # true/false
1238
1239# Indentation column for standalone 'const' qualifier on a function
1240# prototype.
1241indent_func_const = 0 # unsigned number
1242
1243# Indentation column for standalone 'throw' qualifier on a function
1244# prototype.
1245indent_func_throw = 0 # unsigned number
1246
1247# How to indent within a macro followed by a brace on the same line
1248# This allows reducing the indent in macros that have (for example)
1249# `do { ... } while (0)` blocks bracketing them.
1250#
1251# true: add an indent for the brace on the same line as the macro
1252# false: do not add an indent for the brace on the same line as the macro
1253#
1254# Default: true
1255indent_macro_brace = false # true/false
1256
1257# The number of spaces to indent a continued '->' or '.'.
1258# Usually set to 0, 1, or indent_columns.
1259indent_member = 0 # unsigned number
1260
1261# Whether lines broken at '.' or '->' should be indented by a single indent.
1262# The indent_member option will not be effective if this is set to true.
1263indent_member_single = true # true/false
1264
1265# Spaces to indent single line ('//') comments on lines before code.
Michal Vasko6ce8e822022-08-02 15:09:17 +02001266indent_single_line_comments_before = 0 # unsigned number
1267
1268# Spaces to indent single line ('//') comments on lines after code.
1269indent_single_line_comments_after = 0 # unsigned number
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001270
1271# When opening a paren for a control statement (if, for, while, etc), increase
1272# the indent level by this value. Negative values decrease the indent level.
1273indent_sparen_extra = 0 # number
1274
1275# Whether to indent trailing single line ('//') comments relative to the code
1276# instead of trying to keep the same absolute column.
1277indent_relative_single_line_comments = false # true/false
1278
1279# Spaces to indent 'case' from 'switch'. Usually 0 or indent_columns.
1280indent_switch_case = 0 # unsigned number
1281
Michal Vasko6ce8e822022-08-02 15:09:17 +02001282# Spaces to indent the body of a 'switch' before any 'case'.
1283# Usually the same as indent_columns or indent_switch_case.
1284indent_switch_body = 0 # unsigned number
1285
1286# Whether to ignore indent for '{' following 'case'.
1287indent_ignore_case_brace = false # true/false
1288
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001289# indent 'break' with 'case' from 'switch'.
1290indent_switch_break_with_case = false # true/false
1291
1292# Whether to indent preprocessor statements inside of switch statements.
1293#
1294# Default: true
1295indent_switch_pp = false # true/false
1296
1297# Spaces to shift the 'case' line, without affecting any other lines.
1298# Usually 0.
1299indent_case_shift = 0 # unsigned number
1300
1301# Spaces to indent '{' from 'case'. By default, the brace will appear under
1302# the 'c' in case. Usually set to 0 or indent_columns. Negative values are OK.
1303indent_case_brace = 0 # number
1304
Michal Vasko6ce8e822022-08-02 15:09:17 +02001305# Whether to indent comments not found in first column.
1306#
1307# Default: true
1308indent_comment = true # true/false
1309
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001310# Whether to indent comments found in first column.
1311indent_col1_comment = false # true/false
1312
1313# Whether to indent multi string literal in first column.
1314indent_col1_multi_string_literal = false # true/false
1315
Michal Vasko6ce8e822022-08-02 15:09:17 +02001316# Align comments on adjacent lines that are this many columns apart or less.
1317#
1318# Default: 3
1319indent_comment_align_thresh = 3 # unsigned number
1320
1321# Whether to ignore indent for goto labels.
1322indent_ignore_label = true # true/false
1323
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001324# How to indent goto labels.
1325#
1326# >0: Absolute column where 1 is the leftmost column
1327# <=0: Subtract from brace indent
1328#
1329# Default: 1
1330indent_label = 1 # number
1331
1332# How to indent access specifiers that are followed by a
1333# colon.
1334#
1335# >0: Absolute column where 1 is the leftmost column
1336# <=0: Subtract from brace indent
1337#
1338# Default: 1
1339indent_access_spec = 1 # number
1340
1341# Whether to indent the code after an access specifier by one level.
1342# If true, this option forces 'indent_access_spec=0'.
1343indent_access_spec_body = false # true/false
1344
1345# If an open parenthesis is followed by a newline, whether to indent the next
1346# line so that it lines up after the open parenthesis (not recommended).
1347indent_paren_nl = false # true/false
1348
1349# How to indent a close parenthesis after a newline.
1350#
1351# 0: Indent to body level (default)
1352# 1: Align under the open parenthesis
1353# 2: Indent to the brace level
1354indent_paren_close = 1 # unsigned number
1355
1356# Whether to indent the open parenthesis of a function definition,
1357# if the parenthesis is on its own line.
1358indent_paren_after_func_def = false # true/false
1359
1360# Whether to indent the open parenthesis of a function declaration,
1361# if the parenthesis is on its own line.
1362indent_paren_after_func_decl = false # true/false
1363
1364# Whether to indent the open parenthesis of a function call,
1365# if the parenthesis is on its own line.
1366indent_paren_after_func_call = false # true/false
1367
Michal Vasko6ce8e822022-08-02 15:09:17 +02001368# How to indent a comma when inside braces.
1369# 0: Indent by one level (default)
1370# 1: Align under the open brace
1371# -1: Preserve original indentation
1372indent_comma_brace = 0 # number
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001373
Michal Vasko6ce8e822022-08-02 15:09:17 +02001374# How to indent a comma when inside parentheses.
1375# 0: Indent by one level (default)
1376# 1: Align under the open parenthesis
1377# -1: Preserve original indentation
1378indent_comma_paren = 0 # number
1379
1380# How to indent a Boolean operator when inside parentheses.
1381# 0: Indent by one level (default)
1382# 1: Align under the open parenthesis
1383# -1: Preserve original indentation
1384indent_bool_paren = 0 # number
1385
1386# Whether to ignore the indentation of a Boolean operator when outside
1387# parentheses.
1388indent_ignore_bool = false # true/false
1389
1390# Whether to ignore the indentation of an arithmetic operator.
1391indent_ignore_arith = false # true/false
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001392
1393# Whether to indent a semicolon when inside a for parenthesis.
1394# If true, aligns under the open for parenthesis.
1395indent_semicolon_for_paren = false # true/false
1396
Michal Vasko6ce8e822022-08-02 15:09:17 +02001397# Whether to ignore the indentation of a semicolon outside of a 'for'
1398# statement.
1399indent_ignore_semicolon = false # true/false
1400
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001401# Whether to align the first expression to following ones
1402# if indent_bool_paren=true.
1403indent_first_bool_expr = false # true/false
1404
1405# Whether to align the first expression to following ones
1406# if indent_semicolon_for_paren=true.
1407indent_first_for_expr = false # true/false
1408
1409# If an open square is followed by a newline, whether to indent the next line
1410# so that it lines up after the open square (not recommended).
1411indent_square_nl = false # true/false
1412
1413# (ESQL/C) Whether to preserve the relative indent of 'EXEC SQL' bodies.
1414indent_preserve_sql = false # true/false
1415
Michal Vasko6ce8e822022-08-02 15:09:17 +02001416# Whether to ignore the indentation of an assignment operator.
1417indent_ignore_assign = false # true/false
1418
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001419# Whether to align continued statements at the '='. If false or if the '=' is
1420# followed by a newline, the next line is indent one tab.
1421#
1422# Default: true
1423indent_align_assign = false # true/false
1424
1425# If true, the indentation of the chunks after a '=' sequence will be set at
1426# LHS token indentation column before '='.
1427indent_off_after_assign = false # true/false
1428
1429# Whether to align continued statements at the '('. If false or the '(' is
1430# followed by a newline, the next line indent is one tab.
1431#
1432# Default: true
1433indent_align_paren = true # true/false
1434
1435# (OC) Whether to indent Objective-C code inside message selectors.
1436indent_oc_inside_msg_sel = false # true/false
1437
1438# (OC) Whether to indent Objective-C blocks at brace level instead of usual
1439# rules.
1440indent_oc_block = false # true/false
1441
1442# (OC) Indent for Objective-C blocks in a message relative to the parameter
1443# name.
1444#
1445# =0: Use indent_oc_block rules
1446# >0: Use specified number of spaces to indent
1447indent_oc_block_msg = 0 # unsigned number
1448
1449# (OC) Minimum indent for subsequent parameters
1450indent_oc_msg_colon = 0 # unsigned number
1451
1452# (OC) Whether to prioritize aligning with initial colon (and stripping spaces
1453# from lines, if necessary).
1454#
1455# Default: true
1456indent_oc_msg_prioritize_first_colon = true # true/false
1457
1458# (OC) Whether to indent blocks the way that Xcode does by default
1459# (from the keyword if the parameter is on its own line; otherwise, from the
1460# previous indentation level). Requires indent_oc_block_msg=true.
1461indent_oc_block_msg_xcode_style = false # true/false
1462
1463# (OC) Whether to indent blocks from where the brace is, relative to a
1464# message keyword. Requires indent_oc_block_msg=true.
1465indent_oc_block_msg_from_keyword = false # true/false
1466
1467# (OC) Whether to indent blocks from where the brace is, relative to a message
1468# colon. Requires indent_oc_block_msg=true.
1469indent_oc_block_msg_from_colon = false # true/false
1470
1471# (OC) Whether to indent blocks from where the block caret is.
1472# Requires indent_oc_block_msg=true.
1473indent_oc_block_msg_from_caret = false # true/false
1474
1475# (OC) Whether to indent blocks from where the brace caret is.
1476# Requires indent_oc_block_msg=true.
1477indent_oc_block_msg_from_brace = false # true/false
1478
1479# When indenting after virtual brace open and newline add further spaces to
1480# reach this minimum indent.
1481indent_min_vbrace_open = 4 # unsigned number
1482
1483# Whether to add further spaces after regular indent to reach next tabstop
1484# when identing after virtual brace open and newline.
1485indent_vbrace_open_on_tabstop = false # true/false
1486
1487# How to indent after a brace followed by another token (not a newline).
1488# true: indent all contained lines to match the token
1489# false: indent all contained lines to match the brace
1490#
1491# Default: true
1492indent_token_after_brace = false # true/false
1493
1494# Whether to indent the body of a C++11 lambda.
1495indent_cpp_lambda_body = false # true/false
1496
1497# How to indent compound literals that are being returned.
1498# true: add both the indent from return & the compound literal open brace (ie:
1499# 2 indent levels)
1500# false: only indent 1 level, don't add the indent for the open brace, only add
1501# the indent for the return.
1502#
1503# Default: true
1504indent_compound_literal_return = true # true/false
1505
1506# (C#) Whether to indent a 'using' block if no braces are used.
1507#
1508# Default: true
1509indent_using_block = true # true/false
1510
1511# How to indent the continuation of ternary operator.
1512#
1513# 0: Off (default)
1514# 1: When the `if_false` is a continuation, indent it under `if_false`
1515# 2: When the `:` is a continuation, indent it under `?`
1516indent_ternary_operator = 0 # unsigned number
1517
1518# Whether to indent the statments inside ternary operator.
1519indent_inside_ternary_operator = false # true/false
1520
1521# If true, the indentation of the chunks after a `return` sequence will be set at return indentation column.
1522indent_off_after_return = false # true/false
1523
1524# If true, the indentation of the chunks after a `return new` sequence will be set at return indentation column.
1525indent_off_after_return_new = false # true/false
1526
1527# If true, the tokens after return are indented with regular single indentation. By default (false) the indentation is after the return token.
1528indent_single_after_return = false # true/false
1529
1530# Whether to ignore indent and alignment for 'asm' blocks (i.e. assume they
1531# have their own indentation).
1532indent_ignore_asm_block = true # true/false
1533
Michal Vasko6ce8e822022-08-02 15:09:17 +02001534# Don't indent the close parenthesis of a function definition,
1535# if the parenthesis is on its own line.
1536donot_indent_func_def_close_paren = false # true/false
1537
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001538#
1539# Newline adding and removing options
1540#
1541
1542# Whether to collapse empty blocks between '{' and '}'.
1543nl_collapse_empty_body = true # true/false
1544
1545# Don't split one-line braced assignments, as in 'foo_t f = { 1, 2 };'.
1546nl_assign_leave_one_liners = true # true/false
1547
1548# Don't split one-line braced statements inside a 'class xx { }' body.
1549nl_class_leave_one_liners = true # true/false
1550
1551# Don't split one-line enums, as in 'enum foo { BAR = 15 };'
1552nl_enum_leave_one_liners = true # true/false
1553
1554# Don't split one-line get or set functions.
1555nl_getset_leave_one_liners = true # true/false
1556
1557# (C#) Don't split one-line property get or set functions.
1558nl_cs_property_leave_one_liners = true # true/false
1559
1560# Don't split one-line function definitions, as in 'int foo() { return 0; }'.
1561# might modify nl_func_type_name
1562nl_func_leave_one_liners = true # true/false
1563
1564# Don't split one-line C++11 lambdas, as in '[]() { return 0; }'.
1565nl_cpp_lambda_leave_one_liners = true # true/false
1566
1567# Don't split one-line if/else statements, as in 'if(...) b++;'.
1568nl_if_leave_one_liners = false # true/false
1569
1570# Don't split one-line while statements, as in 'while(...) b++;'.
1571nl_while_leave_one_liners = false # true/false
1572
Michal Vasko6ce8e822022-08-02 15:09:17 +02001573# Don't split one-line do statements, as in 'do { b++; } while(...);'.
1574nl_do_leave_one_liners = false # true/false
1575
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001576# Don't split one-line for statements, as in 'for(...) b++;'.
1577nl_for_leave_one_liners = false # true/false
1578
1579# (OC) Don't split one-line Objective-C messages.
1580nl_oc_msg_leave_one_liner = true # true/false
1581
1582# (OC) Add or remove newline between method declaration and '{'.
1583nl_oc_mdef_brace = ignore # ignore/add/remove/force
1584
1585# (OC) Add or remove newline between Objective-C block signature and '{'.
1586nl_oc_block_brace = ignore # ignore/add/remove/force
1587
1588# (OC) Add or remove blank line before '@interface' statement.
1589nl_oc_before_interface = ignore # ignore/add/remove/force
1590
1591# (OC) Add or remove blank line before '@implementation' statement.
1592nl_oc_before_implementation = ignore # ignore/add/remove/force
1593
1594# (OC) Add or remove blank line before '@end' statement.
1595nl_oc_before_end = ignore # ignore/add/remove/force
1596
1597# (OC) Add or remove newline between '@interface' and '{'.
1598nl_oc_interface_brace = ignore # ignore/add/remove/force
1599
1600# (OC) Add or remove newline between '@implementation' and '{'.
1601nl_oc_implementation_brace = ignore # ignore/add/remove/force
1602
1603# Add or remove newlines at the start of the file.
1604nl_start_of_file = remove # ignore/add/remove/force
1605
1606# The minimum number of newlines at the start of the file (only used if
1607# nl_start_of_file is 'add' or 'force').
1608nl_start_of_file_min = 0 # unsigned number
1609
1610# Add or remove newline at the end of the file.
1611nl_end_of_file = force # ignore/add/remove/force
1612
1613# The minimum number of newlines at the end of the file (only used if
1614# nl_end_of_file is 'add' or 'force').
1615nl_end_of_file_min = 1 # unsigned number
1616
1617# Add or remove newline between '=' and '{'.
1618nl_assign_brace = ignore # ignore/add/remove/force
1619
1620# (D) Add or remove newline between '=' and '['.
1621nl_assign_square = ignore # ignore/add/remove/force
1622
1623# Add or remove newline between '[]' and '{'.
1624nl_tsquare_brace = ignore # ignore/add/remove/force
1625
1626# (D) Add or remove newline after '= ['. Will also affect the newline before
1627# the ']'.
1628nl_after_square_assign = ignore # ignore/add/remove/force
1629
1630# Add or remove newline between a function call's ')' and '{', as in
1631# 'list_for_each(item, &list) { }'.
1632nl_fcall_brace = ignore # ignore/add/remove/force
1633
1634# Add or remove newline between 'enum' and '{'.
Michal Vasko6ce8e822022-08-02 15:09:17 +02001635nl_enum_brace = remove # ignore/add/remove/force
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001636
1637# Add or remove newline between 'enum' and 'class'.
1638nl_enum_class = ignore # ignore/add/remove/force
1639
1640# Add or remove newline between 'enum class' and the identifier.
1641nl_enum_class_identifier = ignore # ignore/add/remove/force
1642
1643# Add or remove newline between 'enum class' type and ':'.
1644nl_enum_identifier_colon = ignore # ignore/add/remove/force
1645
1646# Add or remove newline between 'enum class identifier :' and type.
1647nl_enum_colon_type = ignore # ignore/add/remove/force
1648
1649# Add or remove newline between 'struct and '{'.
Michal Vasko6ce8e822022-08-02 15:09:17 +02001650nl_struct_brace = remove # ignore/add/remove/force
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001651
1652# Add or remove newline between 'union' and '{'.
Michal Vasko6ce8e822022-08-02 15:09:17 +02001653nl_union_brace = remove # ignore/add/remove/force
Michal Vaskob0e3ec42021-05-26 09:48:31 +02001654
1655# Add or remove newline between 'if' and '{'.
1656nl_if_brace = remove # ignore/add/remove/force
1657
1658# Add or remove newline between '}' and 'else'.
1659nl_brace_else = remove # ignore/add/remove/force
1660
1661# Add or remove newline between 'else if' and '{'. If set to ignore,
1662# nl_if_brace is used instead.
1663nl_elseif_brace = ignore # ignore/add/remove/force
1664
1665# Add or remove newline between 'else' and '{'.
1666nl_else_brace = remove # ignore/add/remove/force
1667
1668# Add or remove newline between 'else' and 'if'.
1669nl_else_if = remove # ignore/add/remove/force
1670
1671# Add or remove newline before '{' opening brace
1672nl_before_opening_brace_func_class_def = force # ignore/add/remove/force
1673
1674# Add or remove newline before 'if'/'else if' closing parenthesis.
1675nl_before_if_closing_paren = remove # ignore/add/remove/force
1676
1677# Add or remove newline between '}' and 'finally'.
1678nl_brace_finally = ignore # ignore/add/remove/force
1679
1680# Add or remove newline between 'finally' and '{'.
1681nl_finally_brace = ignore # ignore/add/remove/force
1682
1683# Add or remove newline between 'try' and '{'.
1684nl_try_brace = ignore # ignore/add/remove/force
1685
1686# Add or remove newline between get/set and '{'.
1687nl_getset_brace = ignore # ignore/add/remove/force
1688
1689# Add or remove newline between 'for' and '{'.
1690nl_for_brace = remove # ignore/add/remove/force
1691
1692# Add or remove newline before the '{' of a 'catch' statement, as in
1693# 'catch (decl) <here> {'.
1694nl_catch_brace = ignore # ignore/add/remove/force
1695
1696# (OC) Add or remove newline before the '{' of a '@catch' statement, as in
1697# '@catch (decl) <here> {'. If set to ignore, nl_catch_brace is used.
1698nl_oc_catch_brace = ignore # ignore/add/remove/force
1699
1700# Add or remove newline between '}' and 'catch'.
1701nl_brace_catch = ignore # ignore/add/remove/force
1702
1703# (OC) Add or remove newline between '}' and '@catch'. If set to ignore,
1704# nl_brace_catch is used.
1705nl_oc_brace_catch = ignore # ignore/add/remove/force
1706
1707# Add or remove newline between '}' and ']'.
1708nl_brace_square = ignore # ignore/add/remove/force
1709
1710# Add or remove newline between '}' and ')' in a function invocation.
1711nl_brace_fparen = ignore # ignore/add/remove/force
1712
1713# Add or remove newline between 'while' and '{'.
1714nl_while_brace = remove # ignore/add/remove/force
1715
1716# (D) Add or remove newline between 'scope (x)' and '{'.
1717nl_scope_brace = ignore # ignore/add/remove/force
1718
1719# (D) Add or remove newline between 'unittest' and '{'.
1720nl_unittest_brace = ignore # ignore/add/remove/force
1721
1722# (D) Add or remove newline between 'version (x)' and '{'.
1723nl_version_brace = ignore # ignore/add/remove/force
1724
1725# (C#) Add or remove newline between 'using' and '{'.
1726nl_using_brace = ignore # ignore/add/remove/force
1727
1728# Add or remove newline between two open or close braces. Due to general
1729# newline/brace handling, REMOVE may not work.
1730nl_brace_brace = ignore # ignore/add/remove/force
1731
1732# Add or remove newline between 'do' and '{'.
1733nl_do_brace = remove # ignore/add/remove/force
1734
1735# Add or remove newline between '}' and 'while' of 'do' statement.
1736nl_brace_while = remove # ignore/add/remove/force
1737
1738# Add or remove newline between 'switch' and '{'.
1739nl_switch_brace = remove # ignore/add/remove/force
1740
1741# Add or remove newline between 'synchronized' and '{'.
1742nl_synchronized_brace = ignore # ignore/add/remove/force
1743
1744# Add a newline between ')' and '{' if the ')' is on a different line than the
1745# if/for/etc.
1746#
1747# Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch and
1748# nl_catch_brace.
1749nl_multi_line_cond = false # true/false
1750
1751# Add a newline after '(' if an if/for/while/switch condition spans multiple
1752# lines
1753nl_multi_line_sparen_open = ignore # ignore/add/remove/force
1754
1755# Add a newline before ')' if an if/for/while/switch condition spans multiple
1756# lines. Overrides nl_before_if_closing_paren if both are specified.
1757nl_multi_line_sparen_close = ignore # ignore/add/remove/force
1758
1759# Force a newline in a define after the macro name for multi-line defines.
1760nl_multi_line_define = false # true/false
1761
1762# Whether to add a newline before 'case', and a blank line before a 'case'
1763# statement that follows a ';' or '}'.
1764nl_before_case = false # true/false
1765
1766# Whether to add a newline after a 'case' statement.
1767nl_after_case = true # true/false
1768
1769# Add or remove newline between a case ':' and '{'.
1770#
1771# Overrides nl_after_case.
1772nl_case_colon_brace = remove # ignore/add/remove/force
1773
1774# Add or remove newline between ')' and 'throw'.
1775nl_before_throw = ignore # ignore/add/remove/force
1776
1777# Add or remove newline between 'namespace' and '{'.
1778nl_namespace_brace = ignore # ignore/add/remove/force
1779
1780# Add or remove newline after 'template<...>' of a template class.
1781nl_template_class = ignore # ignore/add/remove/force
1782
1783# Add or remove newline after 'template<...>' of a template class declaration.
1784#
1785# Overrides nl_template_class.
1786nl_template_class_decl = ignore # ignore/add/remove/force
1787
1788# Add or remove newline after 'template<>' of a specialized class declaration.
1789#
1790# Overrides nl_template_class_decl.
1791nl_template_class_decl_special = ignore # ignore/add/remove/force
1792
1793# Add or remove newline after 'template<...>' of a template class definition.
1794#
1795# Overrides nl_template_class.
1796nl_template_class_def = ignore # ignore/add/remove/force
1797
1798# Add or remove newline after 'template<>' of a specialized class definition.
1799#
1800# Overrides nl_template_class_def.
1801nl_template_class_def_special = ignore # ignore/add/remove/force
1802
1803# Add or remove newline after 'template<...>' of a template function.
1804nl_template_func = ignore # ignore/add/remove/force
1805
1806# Add or remove newline after 'template<...>' of a template function
1807# declaration.
1808#
1809# Overrides nl_template_func.
1810nl_template_func_decl = ignore # ignore/add/remove/force
1811
1812# Add or remove newline after 'template<>' of a specialized function
1813# declaration.
1814#
1815# Overrides nl_template_func_decl.
1816nl_template_func_decl_special = ignore # ignore/add/remove/force
1817
1818# Add or remove newline after 'template<...>' of a template function
1819# definition.
1820#
1821# Overrides nl_template_func.
1822nl_template_func_def = ignore # ignore/add/remove/force
1823
1824# Add or remove newline after 'template<>' of a specialized function
1825# definition.
1826#
1827# Overrides nl_template_func_def.
1828nl_template_func_def_special = ignore # ignore/add/remove/force
1829
1830# Add or remove newline after 'template<...>' of a template variable.
1831nl_template_var = ignore # ignore/add/remove/force
1832
1833# Add or remove newline between 'template<...>' and 'using' of a templated
1834# type alias.
1835nl_template_using = ignore # ignore/add/remove/force
1836
1837# Add or remove newline between 'class' and '{'.
1838nl_class_brace = ignore # ignore/add/remove/force
1839
1840# Add or remove newline before or after (depending on pos_class_comma,
1841# may not be IGNORE) each',' in the base class list.
1842nl_class_init_args = ignore # ignore/add/remove/force
1843
1844# Add or remove newline after each ',' in the constructor member
1845# initialization. Related to nl_constr_colon, pos_constr_colon and
1846# pos_constr_comma.
1847nl_constr_init_args = ignore # ignore/add/remove/force
1848
1849# Add or remove newline before first element, after comma, and after last
1850# element, in 'enum'.
1851nl_enum_own_lines = ignore # ignore/add/remove/force
1852
1853# Add or remove newline between return type and function name in a function
1854# definition.
1855# might be modified by nl_func_leave_one_liners
1856nl_func_type_name = force # ignore/add/remove/force
1857
1858# Add or remove newline between return type and function name inside a class
1859# definition. If set to ignore, nl_func_type_name or nl_func_proto_type_name
1860# is used instead.
1861nl_func_type_name_class = ignore # ignore/add/remove/force
1862
1863# Add or remove newline between class specification and '::'
1864# in 'void A::f() { }'. Only appears in separate member implementation (does
1865# not appear with in-line implementation).
1866nl_func_class_scope = ignore # ignore/add/remove/force
1867
1868# Add or remove newline between function scope and name, as in
1869# 'void A :: <here> f() { }'.
1870nl_func_scope_name = ignore # ignore/add/remove/force
1871
1872# Add or remove newline between return type and function name in a prototype.
1873nl_func_proto_type_name = remove # ignore/add/remove/force
1874
1875# Add or remove newline between a function name and the opening '(' in the
1876# declaration.
1877nl_func_paren = remove # ignore/add/remove/force
1878
1879# Overrides nl_func_paren for functions with no parameters.
1880nl_func_paren_empty = ignore # ignore/add/remove/force
1881
1882# Add or remove newline between a function name and the opening '(' in the
1883# definition.
1884nl_func_def_paren = remove # ignore/add/remove/force
1885
1886# Overrides nl_func_def_paren for functions with no parameters.
1887nl_func_def_paren_empty = ignore # ignore/add/remove/force
1888
1889# Add or remove newline between a function name and the opening '(' in the
1890# call.
1891nl_func_call_paren = remove # ignore/add/remove/force
1892
1893# Overrides nl_func_call_paren for functions with no parameters.
1894nl_func_call_paren_empty = ignore # ignore/add/remove/force
1895
1896# Add or remove newline after '(' in a function declaration.
1897nl_func_decl_start = ignore # ignore/add/remove/force
1898
1899# Add or remove newline after '(' in a function definition.
1900nl_func_def_start = ignore # ignore/add/remove/force
1901
1902# Overrides nl_func_decl_start when there is only one parameter.
1903nl_func_decl_start_single = ignore # ignore/add/remove/force
1904
1905# Overrides nl_func_def_start when there is only one parameter.
1906nl_func_def_start_single = ignore # ignore/add/remove/force
1907
1908# Whether to add a newline after '(' in a function declaration if '(' and ')'
1909# are in different lines. If false, nl_func_decl_start is used instead.
1910nl_func_decl_start_multi_line = false # true/false
1911
1912# Whether to add a newline after '(' in a function definition if '(' and ')'
1913# are in different lines. If false, nl_func_def_start is used instead.
1914nl_func_def_start_multi_line = false # true/false
1915
1916# Add or remove newline after each ',' in a function declaration.
1917nl_func_decl_args = ignore # ignore/add/remove/force
1918
1919# Add or remove newline after each ',' in a function definition.
1920nl_func_def_args = ignore # ignore/add/remove/force
1921
1922# Add or remove newline after each ',' in a function call.
1923nl_func_call_args = ignore # ignore/add/remove/force
1924
1925# Whether to add a newline after each ',' in a function declaration if '('
1926# and ')' are in different lines. If false, nl_func_decl_args is used instead.
1927nl_func_decl_args_multi_line = false # true/false
1928
1929# Whether to add a newline after each ',' in a function definition if '('
1930# and ')' are in different lines. If false, nl_func_def_args is used instead.
1931nl_func_def_args_multi_line = false # true/false
1932
1933# Add or remove newline before the ')' in a function declaration.
1934nl_func_decl_end = remove # ignore/add/remove/force
1935
1936# Add or remove newline before the ')' in a function definition.
1937nl_func_def_end = remove # ignore/add/remove/force
1938
1939# Overrides nl_func_decl_end when there is only one parameter.
1940nl_func_decl_end_single = ignore # ignore/add/remove/force
1941
1942# Overrides nl_func_def_end when there is only one parameter.
1943nl_func_def_end_single = ignore # ignore/add/remove/force
1944
1945# Whether to add a newline before ')' in a function declaration if '(' and ')'
1946# are in different lines. If false, nl_func_decl_end is used instead.
1947nl_func_decl_end_multi_line = false # true/false
1948
1949# Whether to add a newline before ')' in a function definition if '(' and ')'
1950# are in different lines. If false, nl_func_def_end is used instead.
1951nl_func_def_end_multi_line = false # true/false
1952
1953# Add or remove newline between '()' in a function declaration.
1954nl_func_decl_empty = remove # ignore/add/remove/force
1955
1956# Add or remove newline between '()' in a function definition.
1957nl_func_def_empty = remove # ignore/add/remove/force
1958
1959# Add or remove newline between '()' in a function call.
1960nl_func_call_empty = remove # ignore/add/remove/force
1961
1962# Whether to add a newline after '(' in a function call,
1963# has preference over nl_func_call_start_multi_line.
1964nl_func_call_start = ignore # ignore/add/remove/force
1965
1966# Whether to add a newline before ')' in a function call.
1967nl_func_call_end = remove # ignore/add/remove/force
1968
1969# Whether to add a newline after '(' in a function call if '(' and ')' are in
1970# different lines.
1971nl_func_call_start_multi_line = false # true/false
1972
1973# Whether to add a newline after each ',' in a function call if '(' and ')'
1974# are in different lines.
1975nl_func_call_args_multi_line = false # true/false
1976
1977# Whether to add a newline before ')' in a function call if '(' and ')' are in
1978# different lines.
1979nl_func_call_end_multi_line = false # true/false
1980
1981# Whether to respect nl_func_call_XXX option incase of closure args.
1982nl_func_call_args_multi_line_ignore_closures = true # true/false
1983
1984# Whether to add a newline after '<' of a template parameter list.
1985nl_template_start = false # true/false
1986
1987# Whether to add a newline after each ',' in a template parameter list.
1988nl_template_args = false # true/false
1989
1990# Whether to add a newline before '>' of a template parameter list.
1991nl_template_end = false # true/false
1992
1993# (OC) Whether to put each Objective-C message parameter on a separate line.
1994# See nl_oc_msg_leave_one_liner.
1995nl_oc_msg_args = false # true/false
1996
1997# Add or remove newline between function signature and '{'.
1998nl_fdef_brace = force # ignore/add/remove/force
1999
2000# Add or remove newline between function signature and '{',
2001# if signature ends with ')'. Overrides nl_fdef_brace.
2002nl_fdef_brace_cond = force # ignore/add/remove/force
2003
2004# Add or remove newline between C++11 lambda signature and '{'.
2005nl_cpp_ldef_brace = ignore # ignore/add/remove/force
2006
2007# Add or remove newline between 'return' and the return expression.
2008nl_return_expr = remove # ignore/add/remove/force
2009
2010# Whether to add a newline after semicolons, except in 'for' statements.
2011nl_after_semicolon = false # true/false
2012
2013# (Java) Add or remove newline between the ')' and '{{' of the double brace
2014# initializer.
2015nl_paren_dbrace_open = ignore # ignore/add/remove/force
2016
2017# Whether to add a newline after the type in an unnamed temporary
2018# direct-list-initialization.
2019nl_type_brace_init_lst = ignore # ignore/add/remove/force
2020
2021# Whether to add a newline after the open brace in an unnamed temporary
2022# direct-list-initialization.
2023nl_type_brace_init_lst_open = ignore # ignore/add/remove/force
2024
2025# Whether to add a newline before the close brace in an unnamed temporary
2026# direct-list-initialization.
2027nl_type_brace_init_lst_close = ignore # ignore/add/remove/force
2028
Michal Vasko6ce8e822022-08-02 15:09:17 +02002029# Whether to add a newline before '{'.
2030nl_before_brace_open = false # true/false
2031
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002032# Whether to add a newline after '{'. This also adds a newline before the
2033# matching '}'.
2034nl_after_brace_open = true # true/false
2035
2036# Whether to add a newline between the open brace and a trailing single-line
2037# comment. Requires nl_after_brace_open=true.
2038nl_after_brace_open_cmt = false # true/false
2039
2040# Whether to add a newline after a virtual brace open with a non-empty body.
2041# These occur in un-braced if/while/do/for statement bodies.
2042nl_after_vbrace_open = false # true/false
2043
2044# Whether to add a newline after a virtual brace open with an empty body.
2045# These occur in un-braced if/while/do/for statement bodies.
2046nl_after_vbrace_open_empty = false # true/false
2047
2048# Whether to add a newline after '}'. Does not apply if followed by a
2049# necessary ';'.
2050nl_after_brace_close = true # true/false
2051
2052# Whether to add a newline after a virtual brace close,
2053# as in 'if (foo) a++; <here> return;'.
2054nl_after_vbrace_close = false # true/false
2055
2056# Add or remove newline between the close brace and identifier,
2057# as in 'struct { int a; } <here> b;'. Affects enumerations, unions and
2058# structures. If set to ignore, uses nl_after_brace_close.
2059nl_brace_struct_var = remove # ignore/add/remove/force
2060
2061# Whether to alter newlines in '#define' macros.
2062nl_define_macro = false # true/false
2063
2064# Whether to alter newlines between consecutive parenthesis closes. The number
2065# of closing parentheses in a line will depend on respective open parenthesis
2066# lines.
2067nl_squeeze_paren_close = true # true/false
2068
2069# Whether to remove blanks after '#ifxx' and '#elxx', or before '#elxx' and
2070# '#endif'. Does not affect top-level #ifdefs.
2071nl_squeeze_ifdef = true # true/false
2072
2073# Makes the nl_squeeze_ifdef option affect the top-level #ifdefs as well.
2074nl_squeeze_ifdef_top_level = false # true/false
2075
2076# Add or remove blank line before 'if'.
2077nl_before_if = ignore # ignore/add/remove/force
2078
2079# Add or remove blank line after 'if' statement. Add/Force work only if the
2080# next token is not a closing brace.
2081nl_after_if = ignore # ignore/add/remove/force
2082
2083# Add or remove blank line before 'for'.
2084nl_before_for = ignore # ignore/add/remove/force
2085
2086# Add or remove blank line after 'for' statement.
2087nl_after_for = ignore # ignore/add/remove/force
2088
2089# Add or remove blank line before 'while'.
2090nl_before_while = ignore # ignore/add/remove/force
2091
2092# Add or remove blank line after 'while' statement.
2093nl_after_while = ignore # ignore/add/remove/force
2094
2095# Add or remove blank line before 'switch'.
2096nl_before_switch = ignore # ignore/add/remove/force
2097
2098# Add or remove blank line after 'switch' statement.
2099nl_after_switch = ignore # ignore/add/remove/force
2100
2101# Add or remove blank line before 'synchronized'.
2102nl_before_synchronized = ignore # ignore/add/remove/force
2103
2104# Add or remove blank line after 'synchronized' statement.
2105nl_after_synchronized = ignore # ignore/add/remove/force
2106
2107# Add or remove blank line before 'do'.
2108nl_before_do = ignore # ignore/add/remove/force
2109
2110# Add or remove blank line after 'do/while' statement.
2111nl_after_do = ignore # ignore/add/remove/force
2112
Michal Vasko6ce8e822022-08-02 15:09:17 +02002113# Ignore nl_before_{if,for,switch,do,synchronized} if the control
2114# statement is immediately after a case statement.
2115# if nl_before_{if,for,switch,do} is set to remove, this option
2116# does nothing.
2117nl_before_ignore_after_case = false # true/false
2118
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002119# Whether to put a blank line before 'return' statements, unless after an open
2120# brace.
2121nl_before_return = false # true/false
2122
2123# Whether to put a blank line after 'return' statements, unless followed by a
2124# close brace.
2125nl_after_return = false # true/false
2126
2127# Whether to put a blank line before a member '.' or '->' operators.
2128nl_before_member = ignore # ignore/add/remove/force
2129
2130# (Java) Whether to put a blank line after a member '.' or '->' operators.
2131nl_after_member = ignore # ignore/add/remove/force
2132
2133# Whether to double-space commented-entries in 'struct'/'union'/'enum'.
2134nl_ds_struct_enum_cmt = false # true/false
2135
2136# Whether to force a newline before '}' of a 'struct'/'union'/'enum'.
2137# (Lower priority than eat_blanks_before_close_brace.)
2138nl_ds_struct_enum_close_brace = false # true/false
2139
2140# Add or remove newline before or after (depending on pos_class_colon) a class
2141# colon, as in 'class Foo <here> : <or here> public Bar'.
2142nl_class_colon = ignore # ignore/add/remove/force
2143
2144# Add or remove newline around a class constructor colon. The exact position
2145# depends on nl_constr_init_args, pos_constr_colon and pos_constr_comma.
2146nl_constr_colon = ignore # ignore/add/remove/force
2147
2148# Whether to collapse a two-line namespace, like 'namespace foo\n{ decl; }'
2149# into a single line. If true, prevents other brace newline rules from turning
2150# such code into four lines.
2151nl_namespace_two_to_one_liner = false # true/false
2152
2153# Whether to remove a newline in simple unbraced if statements, turning them
2154# into one-liners, as in 'if(b)\n i++;' => 'if(b) i++;'.
2155nl_create_if_one_liner = false # true/false
2156
2157# Whether to remove a newline in simple unbraced for statements, turning them
2158# into one-liners, as in 'for (...)\n stmt;' => 'for (...) stmt;'.
2159nl_create_for_one_liner = false # true/false
2160
2161# Whether to remove a newline in simple unbraced while statements, turning
2162# them into one-liners, as in 'while (expr)\n stmt;' => 'while (expr) stmt;'.
2163nl_create_while_one_liner = false # true/false
2164
2165# Whether to collapse a function definition whose body (not counting braces)
2166# is only one line so that the entire definition (prototype, braces, body) is
2167# a single line.
2168nl_create_func_def_one_liner = false # true/false
2169
2170# Whether to collapse a function definition whose body (not counting braces)
2171# is only one line so that the entire definition (prototype, braces, body) is
2172# a single line.
2173nl_create_list_one_liner = false # true/false
2174
2175# Whether to split one-line simple unbraced if statements into two lines by
2176# adding a newline, as in 'if(b) <here> i++;'.
2177nl_split_if_one_liner = false # true/false
2178
2179# Whether to split one-line simple unbraced for statements into two lines by
2180# adding a newline, as in 'for (...) <here> stmt;'.
2181nl_split_for_one_liner = false # true/false
2182
2183# Whether to split one-line simple unbraced while statements into two lines by
2184# adding a newline, as in 'while (expr) <here> stmt;'.
2185nl_split_while_one_liner = false # true/false
2186
Michal Vasko6ce8e822022-08-02 15:09:17 +02002187# Don't add a newline before a cpp-comment in a parameter list of a function
2188# call.
2189donot_add_nl_before_cpp_comment = false # true/false
2190
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002191#
2192# Blank line options
2193#
2194
2195# The maximum number of consecutive newlines (3 = 2 blank lines).
2196nl_max = 2 # unsigned number
2197
2198# The maximum number of consecutive newlines in a function.
2199nl_max_blank_in_func = 2 # unsigned number
2200
Michal Vasko6ce8e822022-08-02 15:09:17 +02002201# The number of newlines inside an empty function body.
2202# This option overrides eat_blanks_after_open_brace and
2203# eat_blanks_before_close_brace, but is ignored when
2204# nl_collapse_empty_body=true
2205nl_inside_empty_func = 0 # unsigned number
2206
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002207# The number of newlines before a function prototype.
2208nl_before_func_body_proto = 0 # unsigned number
2209
2210# The number of newlines before a multi-line function definition.
2211nl_before_func_body_def = 0 # unsigned number
2212
2213# The number of newlines before a class constructor/destructor prototype.
2214nl_before_func_class_proto = 0 # unsigned number
2215
2216# The number of newlines before a class constructor/destructor definition.
2217nl_before_func_class_def = 0 # unsigned number
2218
2219# The number of newlines after a function prototype.
2220nl_after_func_proto = 0 # unsigned number
2221
2222# The number of newlines after a function prototype, if not followed by
2223# another function prototype.
2224nl_after_func_proto_group = 0 # unsigned number
2225
2226# The number of newlines after a class constructor/destructor prototype.
2227nl_after_func_class_proto = 0 # unsigned number
2228
2229# The number of newlines after a class constructor/destructor prototype,
2230# if not followed by another constructor/destructor prototype.
2231nl_after_func_class_proto_group = 0 # unsigned number
2232
2233# Whether one-line method definitions inside a class body should be treated
2234# as if they were prototypes for the purposes of adding newlines.
2235#
2236# Requires nl_class_leave_one_liners=true. Overrides nl_before_func_body_def
2237# and nl_before_func_class_def for one-liners.
2238nl_class_leave_one_liner_groups = false # true/false
2239
2240# The number of newlines after '}' of a multi-line function body.
2241nl_after_func_body = 2 # unsigned number
2242
2243# The number of newlines after '}' of a multi-line function body in a class
2244# declaration. Also affects class constructors/destructors.
2245#
2246# Overrides nl_after_func_body.
2247nl_after_func_body_class = 2 # unsigned number
2248
2249# The number of newlines after '}' of a single line function body. Also
2250# affects class constructors/destructors.
2251#
2252# Overrides nl_after_func_body and nl_after_func_body_class.
2253nl_after_func_body_one_liner = 2 # unsigned number
2254
2255# The number of blank lines after a block of variable definitions at the top
2256# of a function body.
2257#
2258# 0: No change (default).
2259nl_func_var_def_blk = 1 # unsigned number
2260
2261# The number of newlines before a block of typedefs. If nl_after_access_spec
2262# is non-zero, that option takes precedence.
2263#
2264# 0: No change (default).
2265nl_typedef_blk_start = 1 # unsigned number
2266
2267# The number of newlines after a block of typedefs.
2268#
2269# 0: No change (default).
2270nl_typedef_blk_end = 1 # unsigned number
2271
2272# The maximum number of consecutive newlines within a block of typedefs.
2273#
2274# 0: No change (default).
2275nl_typedef_blk_in = 0 # unsigned number
2276
2277# The number of newlines before a block of variable definitions not at the top
2278# of a function body. If nl_after_access_spec is non-zero, that option takes
2279# precedence.
2280#
2281# 0: No change (default).
2282nl_var_def_blk_start = 0 # unsigned number
2283
2284# The number of newlines after a block of variable definitions not at the top
2285# of a function body.
2286#
2287# 0: No change (default).
2288nl_var_def_blk_end = 1 # unsigned number
2289
2290# The maximum number of consecutive newlines within a block of variable
2291# definitions.
2292#
2293# 0: No change (default).
2294nl_var_def_blk_in = 0 # unsigned number
2295
2296# The minimum number of newlines before a multi-line comment.
2297# Doesn't apply if after a brace open or another multi-line comment.
2298nl_before_block_comment = 0 # unsigned number
2299
2300# The minimum number of newlines before a single-line C comment.
2301# Doesn't apply if after a brace open or other single-line C comments.
2302nl_before_c_comment = 0 # unsigned number
2303
2304# The minimum number of newlines before a CPP comment.
2305# Doesn't apply if after a brace open or other CPP comments.
2306nl_before_cpp_comment = 0 # unsigned number
2307
2308# Whether to force a newline after a multi-line comment.
2309nl_after_multiline_comment = false # true/false
2310
2311# Whether to force a newline after a label's colon.
2312nl_after_label_colon = true # true/false
2313
Michal Vasko6ce8e822022-08-02 15:09:17 +02002314# The number of newlines before a struct definition.
2315nl_before_struct = 1 # unsigned number
2316
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002317# The number of newlines after '}' or ';' of a struct/enum/union definition.
2318nl_after_struct = 1 # unsigned number
2319
2320# The number of newlines before a class definition.
2321nl_before_class = 0 # unsigned number
2322
2323# The number of newlines after '}' or ';' of a class definition.
2324nl_after_class = 0 # unsigned number
2325
2326# The number of newlines before a namespace.
2327nl_before_namespace = 0 # unsigned number
2328
2329# The number of newlines after '{' of a namespace. This also adds newlines
2330# before the matching '}'.
2331#
2332# 0: Apply eat_blanks_after_open_brace or eat_blanks_before_close_brace if
2333# applicable, otherwise no change.
2334#
2335# Overrides eat_blanks_after_open_brace and eat_blanks_before_close_brace.
2336nl_inside_namespace = 0 # unsigned number
2337
2338# The number of newlines after '}' of a namespace.
2339nl_after_namespace = 0 # unsigned number
2340
2341# The number of newlines before an access specifier label. This also includes
2342# the Qt-specific 'signals:' and 'slots:'. Will not change the newline count
2343# if after a brace open.
2344#
2345# 0: No change (default).
2346nl_before_access_spec = 0 # unsigned number
2347
2348# The number of newlines after an access specifier label. This also includes
2349# the Qt-specific 'signals:' and 'slots:'. Will not change the newline count
2350# if after a brace open.
2351#
2352# 0: No change (default).
2353#
2354# Overrides nl_typedef_blk_start and nl_var_def_blk_start.
2355nl_after_access_spec = 0 # unsigned number
2356
2357# The number of newlines between a function definition and the function
2358# comment, as in '// comment\n <here> void foo() {...}'.
2359#
2360# 0: No change (default).
2361nl_comment_func_def = 0 # unsigned number
2362
2363# The number of newlines after a try-catch-finally block that isn't followed
2364# by a brace close.
2365#
2366# 0: No change (default).
2367nl_after_try_catch_finally = 0 # unsigned number
2368
2369# (C#) The number of newlines before and after a property, indexer or event
2370# declaration.
2371#
2372# 0: No change (default).
2373nl_around_cs_property = 0 # unsigned number
2374
2375# (C#) The number of newlines between the get/set/add/remove handlers.
2376#
2377# 0: No change (default).
2378nl_between_get_set = 0 # unsigned number
2379
2380# (C#) Add or remove newline between property and the '{'.
2381nl_property_brace = ignore # ignore/add/remove/force
2382
2383# Whether to remove blank lines after '{'.
2384eat_blanks_after_open_brace = false # true/false
2385
2386# Whether to remove blank lines before '}'.
2387eat_blanks_before_close_brace = false # true/false
2388
2389# How aggressively to remove extra newlines not in preprocessor.
2390#
2391# 0: No change (default)
2392# 1: Remove most newlines not handled by other config
2393# 2: Remove all newlines and reformat completely by config
2394nl_remove_extra_newlines = 0 # unsigned number
2395
2396# (Java) Add or remove newline after an annotation statement. Only affects
2397# annotations that are after a newline.
2398nl_after_annotation = ignore # ignore/add/remove/force
2399
2400# (Java) Add or remove newline between two annotations.
2401nl_between_annotation = ignore # ignore/add/remove/force
2402
2403# The number of newlines before a whole-file #ifdef.
2404#
2405# 0: No change (default).
2406nl_before_whole_file_ifdef = 2 # unsigned number
2407
2408# The number of newlines after a whole-file #ifdef.
2409#
2410# 0: No change (default).
2411nl_after_whole_file_ifdef = 0 # unsigned number
2412
2413# The number of newlines before a whole-file #endif.
2414#
2415# 0: No change (default).
2416nl_before_whole_file_endif = 2 # unsigned number
2417
2418# The number of newlines after a whole-file #endif.
2419#
2420# 0: No change (default).
2421nl_after_whole_file_endif = 2 # unsigned number
2422
2423#
2424# Positioning options
2425#
2426
2427# The position of arithmetic operators in wrapped expressions.
2428pos_arith = trail # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2429
2430# The position of assignment in wrapped expressions. Do not affect '='
2431# followed by '{'.
2432pos_assign = trail # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2433
2434# The position of Boolean operators in wrapped expressions.
2435pos_bool = trail # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2436
2437# The position of comparison operators in wrapped expressions.
2438pos_compare = trail # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2439
2440# The position of conditional operators, as in the '?' and ':' of
2441# 'expr ? stmt : stmt', in wrapped expressions.
2442pos_conditional = trail # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2443
2444# The position of the comma in wrapped expressions.
2445pos_comma = trail # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2446
2447# The position of the comma in enum entries.
2448pos_enum_comma = trail # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2449
2450# The position of the comma in the base class list if there is more than one
2451# line. Affects nl_class_init_args.
2452pos_class_comma = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2453
2454# The position of the comma in the constructor initialization list.
2455# Related to nl_constr_colon, nl_constr_init_args and pos_constr_colon.
2456pos_constr_comma = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2457
2458# The position of trailing/leading class colon, between class and base class
2459# list. Affects nl_class_colon.
2460pos_class_colon = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2461
2462# The position of colons between constructor and member initialization.
2463# Related to nl_constr_colon, nl_constr_init_args and pos_constr_comma.
2464pos_constr_colon = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2465
Michal Vasko6ce8e822022-08-02 15:09:17 +02002466# The position of shift operators in wrapped expressions.
2467pos_shift = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
2468
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002469#
2470# Line splitting options
2471#
2472
2473# Try to limit code width to N columns.
2474code_width = 256 # unsigned number
2475
2476# Whether to fully split long 'for' statements at semi-colons.
2477ls_for_split_full = true # true/false
2478
2479# Whether to fully split long function prototypes/calls at commas.
2480# The option ls_code_width has priority over the option ls_func_split_full.
2481ls_func_split_full = false # true/false
2482
2483# Whether to split lines as close to code_width as possible and ignore some
2484# groupings.
2485# The option ls_code_width has priority over the option ls_func_split_full.
2486ls_code_width = false # true/false
2487
2488#
2489# Code alignment options (not left column spaces/tabs)
2490#
2491
2492# Whether to keep non-indenting tabs.
2493align_keep_tabs = false # true/false
2494
2495# Whether to use tabs for aligning.
2496align_with_tabs = false # true/false
2497
2498# Whether to bump out to the next tab when aligning.
2499align_on_tabstop = true # true/false
2500
2501# Whether to right-align numbers.
2502align_number_right = true # true/false
2503
2504# Whether to keep whitespace not required for alignment.
2505align_keep_extra_space = false # true/false
2506
2507# Whether to align variable definitions in prototypes and functions.
2508align_func_params = false # true/false
2509
2510# The span for aligning parameter definitions in function on parameter name.
2511#
2512# 0: Don't align (default).
2513align_func_params_span = 0 # unsigned number
2514
2515# The threshold for aligning function parameter definitions.
2516# Use a negative number for absolute thresholds.
2517#
2518# 0: No limit (default).
2519align_func_params_thresh = 0 # number
2520
2521# The gap for aligning function parameter definitions.
2522align_func_params_gap = 1 # unsigned number
2523
2524# The span for aligning constructor value.
2525#
2526# 0: Don't align (default).
2527align_constr_value_span = 0 # unsigned number
2528
2529# The threshold for aligning constructor value.
2530# Use a negative number for absolute thresholds.
2531#
2532# 0: No limit (default).
2533align_constr_value_thresh = 0 # number
2534
2535# The gap for aligning constructor value.
2536align_constr_value_gap = 0 # unsigned number
2537
2538# Whether to align parameters in single-line functions that have the same
2539# name. The function names must already be aligned with each other.
2540align_same_func_call_params = false # true/false
2541
2542# The span for aligning function-call parameters for single line functions.
2543#
2544# 0: Don't align (default).
2545align_same_func_call_params_span = 1 # unsigned number
2546
2547# The threshold for aligning function-call parameters for single line
2548# functions.
2549# Use a negative number for absolute thresholds.
2550#
2551# 0: No limit (default).
2552align_same_func_call_params_thresh = 0 # number
2553
2554# The span for aligning variable definitions.
2555#
2556# 0: Don't align (default).
2557align_var_def_span = 0 # unsigned number
2558
2559# How to consider (or treat) the '*' in the alignment of variable definitions.
2560#
2561# 0: Part of the type 'void * foo;' (default)
2562# 1: Part of the variable 'void *foo;'
2563# 2: Dangling 'void *foo;'
2564# Dangling: the '*' will not be taken into account when aligning.
2565align_var_def_star_style = 1 # unsigned number
2566
2567# How to consider (or treat) the '&' in the alignment of variable definitions.
2568#
2569# 0: Part of the type 'long & foo;' (default)
2570# 1: Part of the variable 'long &foo;'
2571# 2: Dangling 'long &foo;'
2572# Dangling: the '&' will not be taken into account when aligning.
2573align_var_def_amp_style = 1 # unsigned number
2574
2575# The threshold for aligning variable definitions.
2576# Use a negative number for absolute thresholds.
2577#
2578# 0: No limit (default).
2579align_var_def_thresh = 0 # number
2580
2581# The gap for aligning variable definitions.
2582align_var_def_gap = 0 # unsigned number
2583
2584# Whether to align the colon in struct bit fields.
2585align_var_def_colon = false # true/false
2586
2587# The gap for aligning the colon in struct bit fields.
2588align_var_def_colon_gap = 0 # unsigned number
2589
2590# Whether to align any attribute after the variable name.
2591align_var_def_attribute = false # true/false
2592
2593# Whether to align inline struct/enum/union variable definitions.
Michal Vasko6ce8e822022-08-02 15:09:17 +02002594align_var_def_inline = true # true/false
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002595
2596# The span for aligning on '=' in assignments.
2597#
2598# 0: Don't align (default).
2599align_assign_span = 0 # unsigned number
2600
Michal Vasko6ce8e822022-08-02 15:09:17 +02002601# The span for aligning on '{' in braced init list.
2602#
2603# 0: Don't align (default).
2604align_braced_init_list_span = 0 # unsigned number
2605
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002606# The span for aligning on '=' in function prototype modifier.
2607#
2608# 0: Don't align (default).
2609align_assign_func_proto_span = 0 # unsigned number
2610
2611# The threshold for aligning on '=' in assignments.
2612# Use a negative number for absolute thresholds.
2613#
2614# 0: No limit (default).
2615align_assign_thresh = 0 # number
2616
Michal Vasko6ce8e822022-08-02 15:09:17 +02002617# Whether to align on the left most assignment when multiple
2618# definitions are found on the same line.
2619# Depends on 'align_assign_span' and 'align_assign_thresh' settings.
2620align_assign_on_multi_var_defs = false # true/false
2621
2622# The threshold for aligning on '{' in braced init list.
2623# Use a negative number for absolute thresholds.
2624#
2625# 0: No limit (default).
2626align_braced_init_list_thresh = 0 # number
2627
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002628# How to apply align_assign_span to function declaration "assignments", i.e.
2629# 'virtual void foo() = 0' or '~foo() = {default|delete}'.
2630#
2631# 0: Align with other assignments (default)
2632# 1: Align with each other, ignoring regular assignments
2633# 2: Don't align
2634align_assign_decl_func = 0 # unsigned number
2635
2636# The span for aligning on '=' in enums.
2637#
2638# 0: Don't align (default).
2639align_enum_equ_span = 0 # unsigned number
2640
2641# The threshold for aligning on '=' in enums.
2642# Use a negative number for absolute thresholds.
2643#
2644# 0: no limit (default).
2645align_enum_equ_thresh = 0 # number
2646
2647# The span for aligning class member definitions.
2648#
2649# 0: Don't align (default).
2650align_var_class_span = 0 # unsigned number
2651
2652# The threshold for aligning class member definitions.
2653# Use a negative number for absolute thresholds.
2654#
2655# 0: No limit (default).
2656align_var_class_thresh = 0 # number
2657
2658# The gap for aligning class member definitions.
2659align_var_class_gap = 0 # unsigned number
2660
2661# The span for aligning struct/union member definitions.
2662#
2663# 0: Don't align (default).
2664align_var_struct_span = 0 # unsigned number
2665
2666# The threshold for aligning struct/union member definitions.
2667# Use a negative number for absolute thresholds.
2668#
2669# 0: No limit (default).
2670align_var_struct_thresh = 0 # number
2671
2672# The gap for aligning struct/union member definitions.
2673align_var_struct_gap = 0 # unsigned number
2674
2675# The span for aligning struct initializer values.
2676#
2677# 0: Don't align (default).
2678align_struct_init_span = 0 # unsigned number
2679
2680# The span for aligning single-line typedefs.
2681#
2682# 0: Don't align (default).
2683align_typedef_span = 0 # unsigned number
2684
2685# The minimum space between the type and the synonym of a typedef.
2686align_typedef_gap = 1 # unsigned number
2687
2688# How to align typedef'd functions with other typedefs.
2689#
2690# 0: Don't mix them at all (default)
2691# 1: Align the open parenthesis with the types
2692# 2: Align the function type name with the other type names
2693align_typedef_func = 0 # unsigned number
2694
2695# How to consider (or treat) the '*' in the alignment of typedefs.
2696#
2697# 0: Part of the typedef type, 'typedef int * pint;' (default)
2698# 1: Part of type name: 'typedef int *pint;'
2699# 2: Dangling: 'typedef int *pint;'
2700# Dangling: the '*' will not be taken into account when aligning.
2701align_typedef_star_style = 1 # unsigned number
2702
2703# How to consider (or treat) the '&' in the alignment of typedefs.
2704#
2705# 0: Part of the typedef type, 'typedef int & intref;' (default)
2706# 1: Part of type name: 'typedef int &intref;'
2707# 2: Dangling: 'typedef int &intref;'
2708# Dangling: the '&' will not be taken into account when aligning.
2709align_typedef_amp_style = 1 # unsigned number
2710
2711# The span for aligning comments that end lines.
2712#
2713# 0: Don't align (default).
2714align_right_cmt_span = 0 # unsigned number
2715
2716# Minimum number of columns between preceding text and a trailing comment in
2717# order for the comment to qualify for being aligned. Must be non-zero to have
2718# an effect.
2719align_right_cmt_gap = 0 # unsigned number
2720
2721# If aligning comments, whether to mix with comments after '}' and #endif with
2722# less than three spaces before the comment.
2723align_right_cmt_mix = false # true/false
2724
2725# Whether to only align trailing comments that are at the same brace level.
2726align_right_cmt_same_level = false # true/false
2727
2728# Minimum column at which to align trailing comments. Comments which are
2729# aligned beyond this column, but which can be aligned in a lesser column,
2730# may be "pulled in".
2731#
2732# 0: Ignore (default).
2733align_right_cmt_at_col = 0 # unsigned number
2734
2735# The span for aligning function prototypes.
2736#
2737# 0: Don't align (default).
2738align_func_proto_span = 0 # unsigned number
2739
Michal Vasko6ce8e822022-08-02 15:09:17 +02002740# How to consider (or treat) the '*' in the alignment of function prototypes.
2741#
2742# 0: Part of the type 'void * foo();' (default)
2743# 1: Part of the function 'void *foo();'
2744# 2: Dangling 'void *foo();'
2745# Dangling: the '*' will not be taken into account when aligning.
2746align_func_proto_star_style = 0 # unsigned number
2747
2748# How to consider (or treat) the '&' in the alignment of function prototypes.
2749#
2750# 0: Part of the type 'long & foo();' (default)
2751# 1: Part of the function 'long &foo();'
2752# 2: Dangling 'long &foo();'
2753# Dangling: the '&' will not be taken into account when aligning.
2754align_func_proto_amp_style = 0 # unsigned number
2755
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002756# The threshold for aligning function prototypes.
2757# Use a negative number for absolute thresholds.
2758#
2759# 0: No limit (default).
2760align_func_proto_thresh = 0 # number
2761
2762# Minimum gap between the return type and the function name.
2763align_func_proto_gap = 1 # unsigned number
2764
2765# Whether to align function prototypes on the 'operator' keyword instead of
2766# what follows.
2767align_on_operator = false # true/false
2768
2769# Whether to mix aligning prototype and variable declarations. If true,
2770# align_var_def_XXX options are used instead of align_func_proto_XXX options.
2771align_mix_var_proto = false # true/false
2772
2773# Whether to align single-line functions with function prototypes.
2774# Uses align_func_proto_span.
2775align_single_line_func = false # true/false
2776
2777# Whether to align the open brace of single-line functions.
2778# Requires align_single_line_func=true. Uses align_func_proto_span.
2779align_single_line_brace = false # true/false
2780
2781# Gap for align_single_line_brace.
2782align_single_line_brace_gap = 1 # unsigned number
2783
2784# (OC) The span for aligning Objective-C message specifications.
2785#
2786# 0: Don't align (default).
2787align_oc_msg_spec_span = 0 # unsigned number
2788
2789# Whether to align macros wrapped with a backslash and a newline. This will
2790# not work right if the macro contains a multi-line comment.
2791align_nl_cont = false # true/false
2792
2793# Whether to align macro functions and variables together.
2794align_pp_define_together = false # true/false
2795
2796# The span for aligning on '#define' bodies.
2797#
2798# =0: Don't align (default)
2799# >0: Number of lines (including comments) between blocks
2800align_pp_define_span = 0 # unsigned number
2801
2802# The minimum space between label and value of a preprocessor define.
2803align_pp_define_gap = 1 # unsigned number
2804
2805# Whether to align lines that start with '<<' with previous '<<'.
2806#
2807# Default: true
2808align_left_shift = false # true/false
2809
Michal Vasko6ce8e822022-08-02 15:09:17 +02002810# Whether to align comma-separated statements following '<<' (as used to
2811# initialize Eigen matrices).
2812align_eigen_comma_init = false # true/false
2813
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002814# Whether to align text after 'asm volatile ()' colons.
2815align_asm_colon = false # true/false
2816
2817# (OC) Span for aligning parameters in an Objective-C message call
2818# on the ':'.
2819#
2820# 0: Don't align.
2821align_oc_msg_colon_span = 0 # unsigned number
2822
2823# (OC) Whether to always align with the first parameter, even if it is too
2824# short.
2825align_oc_msg_colon_first = false # true/false
2826
2827# (OC) Whether to align parameters in an Objective-C '+' or '-' declaration
2828# on the ':'.
2829align_oc_decl_colon = false # true/false
2830
2831# (OC) Whether to not align parameters in an Objectve-C message call if first
2832# colon is not on next line of the message call (the same way Xcode does
2833# aligment)
2834align_oc_msg_colon_xcode_like = false # true/false
2835
2836#
2837# Comment modification options
2838#
2839
2840# Try to wrap comments at N columns.
2841cmt_width = 256 # unsigned number
2842
2843# How to reflow comments.
2844#
2845# 0: No reflowing (apart from the line wrapping due to cmt_width) (default)
2846# 1: No touching at all
2847# 2: Full reflow
2848cmt_reflow_mode = 1 # unsigned number
2849
Michal Vasko6ce8e822022-08-02 15:09:17 +02002850# Path to a file that contains regular expressions describing patterns for
2851# which the end of one line and the beginning of the next will be folded into
2852# the same sentence or paragraph during full comment reflow. The regular
2853# expressions are described using ECMAScript syntax. The syntax for this
2854# specification is as follows, where "..." indicates the custom regular
2855# expression and "n" indicates the nth end_of_prev_line_regex and
2856# beg_of_next_line_regex regular expression pair:
2857#
2858# end_of_prev_line_regex[1] = "...$"
2859# beg_of_next_line_regex[1] = "^..."
2860# end_of_prev_line_regex[2] = "...$"
2861# beg_of_next_line_regex[2] = "^..."
2862# .
2863# .
2864# .
2865# end_of_prev_line_regex[n] = "...$"
2866# beg_of_next_line_regex[n] = "^..."
2867#
2868# Note that use of this option overrides the default reflow fold regular
2869# expressions, which are internally defined as follows:
2870#
2871# end_of_prev_line_regex[1] = "[\w,\]\)]$"
2872# beg_of_next_line_regex[1] = "^[\w,\[\(]"
2873# end_of_prev_line_regex[2] = "\.$"
2874# beg_of_next_line_regex[2] = "^[A-Z]"
2875cmt_reflow_fold_regex_file = "" # string
2876
2877# Whether to indent wrapped lines to the start of the encompassing paragraph
2878# during full comment reflow (cmt_reflow_mode = 2). Overrides the value
2879# specified by cmt_sp_after_star_cont.
2880#
2881# Note that cmt_align_doxygen_javadoc_tags overrides this option for
2882# paragraphs associated with javadoc tags
2883cmt_reflow_indent_to_paragraph_start = false # true/false
2884
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002885# Whether to convert all tabs to spaces in comments. If false, tabs in
2886# comments are left alone, unless used for indenting.
2887cmt_convert_tab_to_spaces = false # true/false
2888
2889# Whether to apply changes to multi-line comments, including cmt_width,
2890# keyword substitution and leading chars.
2891#
2892# Default: true
2893cmt_indent_multi = false # true/false
2894
Michal Vasko6ce8e822022-08-02 15:09:17 +02002895# Whether to align doxygen javadoc-style tags ('@param', '@return', etc.)
2896# and corresponding fields such that groups of consecutive block tags,
2897# parameter names, and descriptions align with one another. Overrides that
2898# which is specified by the cmt_sp_after_star_cont. If cmt_width > 0, it may
2899# be necessary to enable cmt_indent_multi and set cmt_reflow_mode = 2
2900# in order to achieve the desired alignment for line-wrapping.
2901cmt_align_doxygen_javadoc_tags = false # true/false
2902
2903# The number of spaces to insert after the star and before doxygen
2904# javadoc-style tags (@param, @return, etc). Requires enabling
2905# cmt_align_doxygen_javadoc_tags. Overrides that which is specified by the
2906# cmt_sp_after_star_cont.
2907#
2908# Default: 1
2909cmt_sp_before_doxygen_javadoc_tags = 1 # unsigned number
2910
2911# Whether to change trailing, single-line c-comments into cpp-comments.
2912cmt_trailing_single_line_c_to_cpp = false # true/false
2913
Michal Vaskob0e3ec42021-05-26 09:48:31 +02002914# Whether to group c-comments that look like they are in a block.
2915cmt_c_group = false # true/false
2916
2917# Whether to put an empty '/*' on the first line of the combined c-comment.
2918cmt_c_nl_start = false # true/false
2919
2920# Whether to add a newline before the closing '*/' of the combined c-comment.
2921cmt_c_nl_end = false # true/false
2922
2923# Whether to change cpp-comments into c-comments.
2924cmt_cpp_to_c = false # true/false
2925
2926# Whether to group cpp-comments that look like they are in a block. Only
2927# meaningful if cmt_cpp_to_c=true.
2928cmt_cpp_group = false # true/false
2929
2930# Whether to put an empty '/*' on the first line of the combined cpp-comment
2931# when converting to a c-comment.
2932#
2933# Requires cmt_cpp_to_c=true and cmt_cpp_group=true.
2934cmt_cpp_nl_start = false # true/false
2935
2936# Whether to add a newline before the closing '*/' of the combined cpp-comment
2937# when converting to a c-comment.
2938#
2939# Requires cmt_cpp_to_c=true and cmt_cpp_group=true.
2940cmt_cpp_nl_end = false # true/false
2941
2942# Whether to put a star on subsequent comment lines.
2943cmt_star_cont = false # true/false
2944
2945# The number of spaces to insert at the start of subsequent comment lines.
2946cmt_sp_before_star_cont = 0 # unsigned number
2947
2948# The number of spaces to insert after the star on subsequent comment lines.
2949cmt_sp_after_star_cont = 3 # unsigned number
2950
2951# For multi-line comments with a '*' lead, remove leading spaces if the first
2952# and last lines of the comment are the same length.
2953#
2954# Default: true
2955cmt_multi_check_last = false # true/false
2956
2957# For multi-line comments with a '*' lead, remove leading spaces if the first
2958# and last lines of the comment are the same length AND if the length is
2959# bigger as the first_len minimum.
2960#
2961# Default: 4
2962cmt_multi_first_len_minimum = 4 # unsigned number
2963
2964# Path to a file that contains text to insert at the beginning of a file if
2965# the file doesn't start with a C/C++ comment. If the inserted text contains
2966# '$(filename)', that will be replaced with the current file's name.
2967cmt_insert_file_header = "" # string
2968
2969# Path to a file that contains text to insert at the end of a file if the
2970# file doesn't end with a C/C++ comment. If the inserted text contains
2971# '$(filename)', that will be replaced with the current file's name.
2972cmt_insert_file_footer = "" # string
2973
2974# Path to a file that contains text to insert before a function definition if
2975# the function isn't preceded by a C/C++ comment. If the inserted text
2976# contains '$(function)', '$(javaparam)' or '$(fclass)', these will be
2977# replaced with, respectively, the name of the function, the javadoc '@param'
2978# and '@return' stuff, or the name of the class to which the member function
2979# belongs.
2980cmt_insert_func_header = "" # string
2981
2982# Path to a file that contains text to insert before a class if the class
2983# isn't preceded by a C/C++ comment. If the inserted text contains '$(class)',
2984# that will be replaced with the class name.
2985cmt_insert_class_header = "" # string
2986
2987# Path to a file that contains text to insert before an Objective-C message
2988# specification, if the method isn't preceded by a C/C++ comment. If the
2989# inserted text contains '$(message)' or '$(javaparam)', these will be
2990# replaced with, respectively, the name of the function, or the javadoc
2991# '@param' and '@return' stuff.
2992cmt_insert_oc_msg_header = "" # string
2993
2994# Whether a comment should be inserted if a preprocessor is encountered when
2995# stepping backwards from a function name.
2996#
2997# Applies to cmt_insert_oc_msg_header, cmt_insert_func_header and
2998# cmt_insert_class_header.
2999cmt_insert_before_preproc = false # true/false
3000
3001# Whether a comment should be inserted if a function is declared inline to a
3002# class definition.
3003#
3004# Applies to cmt_insert_func_header.
3005#
3006# Default: true
3007cmt_insert_before_inlines = false # true/false
3008
3009# Whether a comment should be inserted if the function is a class constructor
3010# or destructor.
3011#
3012# Applies to cmt_insert_func_header.
3013cmt_insert_before_ctor_dtor = false # true/false
3014
3015#
3016# Code modifying options (non-whitespace)
3017#
3018
3019# Add or remove braces on a single-line 'do' statement.
3020mod_full_brace_do = force # ignore/add/remove/force
3021
3022# Add or remove braces on a single-line 'for' statement.
3023mod_full_brace_for = force # ignore/add/remove/force
3024
3025# (Pawn) Add or remove braces on a single-line function definition.
3026mod_full_brace_function = force # ignore/add/remove/force
3027
3028# Add or remove braces on a single-line 'if' statement. Braces will not be
3029# removed if the braced statement contains an 'else'.
3030mod_full_brace_if = force # ignore/add/remove/force
3031
3032# Whether to enforce that all blocks of an 'if'/'else if'/'else' chain either
Michal Vasko6ce8e822022-08-02 15:09:17 +02003033# have, or do not have, braces. Overrides mod_full_brace_if.
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003034#
Michal Vasko6ce8e822022-08-02 15:09:17 +02003035# 0: Don't override mod_full_brace_if
3036# 1: Add braces to all blocks if any block needs braces and remove braces if
3037# they can be removed from all blocks
3038# 2: Add braces to all blocks if any block already has braces, regardless of
3039# whether it needs them
3040# 3: Add braces to all blocks if any block needs braces and remove braces if
3041# they can be removed from all blocks, except if all blocks have braces
3042# despite none needing them
3043mod_full_brace_if_chain = 0 # unsigned number
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003044
3045# Whether to add braces to all blocks of an 'if'/'else if'/'else' chain.
3046# If true, mod_full_brace_if_chain will only remove braces from an 'if' that
3047# does not have an 'else if' or 'else'.
3048mod_full_brace_if_chain_only = true # true/false
3049
3050# Add or remove braces on single-line 'while' statement.
3051mod_full_brace_while = force # ignore/add/remove/force
3052
3053# Add or remove braces on single-line 'using ()' statement.
3054mod_full_brace_using = ignore # ignore/add/remove/force
3055
3056# Don't remove braces around statements that span N newlines
3057mod_full_brace_nl = 0 # unsigned number
3058
3059# Whether to prevent removal of braces from 'if'/'for'/'while'/etc. blocks
3060# which span multiple lines.
3061#
3062# Affects:
3063# mod_full_brace_for
3064# mod_full_brace_if
3065# mod_full_brace_if_chain
3066# mod_full_brace_if_chain_only
3067# mod_full_brace_while
3068# mod_full_brace_using
3069#
3070# Does not affect:
3071# mod_full_brace_do
3072# mod_full_brace_function
3073mod_full_brace_nl_block_rem_mlcond = false # true/false
3074
3075# Add or remove unnecessary parenthesis on 'return' statement.
3076mod_paren_on_return = remove # ignore/add/remove/force
3077
3078# (Pawn) Whether to change optional semicolons to real semicolons.
3079mod_pawn_semicolon = false # true/false
3080
3081# Whether to fully parenthesize Boolean expressions in 'while' and 'if'
3082# statement, as in 'if (a && b > c)' => 'if (a && (b > c))'.
3083mod_full_paren_if_bool = true # true/false
3084
Michal Vasko6ce8e822022-08-02 15:09:17 +02003085# Whether to fully parenthesize Boolean expressions after '='
3086# statement, as in 'x = a && b > c;' => 'x = (a && (b > c));'.
3087mod_full_paren_assign_bool = false # true/false
3088
3089# Whether to fully parenthesize Boolean expressions after '='
3090# statement, as in 'return a && b > c;' => 'return (a && (b > c));'.
3091mod_full_paren_return_bool = false # true/false
3092
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003093# Whether to remove superfluous semicolons.
3094mod_remove_extra_semicolon = true # true/false
3095
Michal Vasko6ce8e822022-08-02 15:09:17 +02003096# Whether to remove duplicate include.
3097mod_remove_duplicate_include = true # true/false
3098
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003099# If a function body exceeds the specified number of newlines and doesn't have
3100# a comment after the close brace, a comment will be added.
3101mod_add_long_function_closebrace_comment = 0 # unsigned number
3102
3103# If a namespace body exceeds the specified number of newlines and doesn't
3104# have a comment after the close brace, a comment will be added.
3105mod_add_long_namespace_closebrace_comment = 0 # unsigned number
3106
3107# If a class body exceeds the specified number of newlines and doesn't have a
3108# comment after the close brace, a comment will be added.
3109mod_add_long_class_closebrace_comment = 0 # unsigned number
3110
3111# If a switch body exceeds the specified number of newlines and doesn't have a
3112# comment after the close brace, a comment will be added.
3113mod_add_long_switch_closebrace_comment = 0 # unsigned number
3114
3115# If an #ifdef body exceeds the specified number of newlines and doesn't have
3116# a comment after the #endif, a comment will be added.
3117mod_add_long_ifdef_endif_comment = 0 # unsigned number
3118
3119# If an #ifdef or #else body exceeds the specified number of newlines and
3120# doesn't have a comment after the #else, a comment will be added.
3121mod_add_long_ifdef_else_comment = 0 # unsigned number
3122
3123# Whether to take care of the case by the mod_sort_xx options.
3124mod_sort_case_sensitive = false # true/false
3125
3126# Whether to sort consecutive single-line 'import' statements.
3127mod_sort_import = false # true/false
3128
3129# (C#) Whether to sort consecutive single-line 'using' statements.
3130mod_sort_using = false # true/false
3131
3132# Whether to sort consecutive single-line '#include' statements (C/C++) and
3133# '#import' statements (Objective-C). Be aware that this has the potential to
3134# break your code if your includes/imports have ordering dependencies.
3135mod_sort_include = true # true/false
3136
3137# Whether to prioritize '#include' and '#import' statements that contain
3138# filename without extension when sorting is enabled.
3139mod_sort_incl_import_prioritize_filename = false # true/false
3140
3141# Whether to prioritize '#include' and '#import' statements that does not
3142# contain extensions when sorting is enabled.
3143mod_sort_incl_import_prioritize_extensionless = false # true/false
3144
3145# Whether to prioritize '#include' and '#import' statements that contain
3146# angle over quotes when sorting is enabled.
3147mod_sort_incl_import_prioritize_angle_over_quotes = true # true/false
3148
3149# Whether to ignore file extension in '#include' and '#import' statements
3150# for sorting comparison.
3151mod_sort_incl_import_ignore_extension = true # true/false
3152
3153# Whether to group '#include' and '#import' statements when sorting is enabled.
3154mod_sort_incl_import_grouping_enabled = false # true/false
3155
3156# Whether to move a 'break' that appears after a fully braced 'case' before
3157# the close brace, as in 'case X: { ... } break;' => 'case X: { ... break; }'.
3158mod_move_case_break = true # true/false
3159
Michal Vasko6ce8e822022-08-02 15:09:17 +02003160# Whether to move a 'return' that appears after a fully braced 'case' before
3161# the close brace, as in 'case X: { ... } return;' => 'case X: { ... return; }'.
3162mod_move_case_return = true # true/false
3163
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003164# Add or remove braces around a fully braced case statement. Will only remove
3165# braces if there are no variable declarations in the block.
3166mod_case_brace = remove # ignore/add/remove/force
3167
3168# Whether to remove a void 'return;' that appears as the last statement in a
3169# function.
3170mod_remove_empty_return = true # true/false
3171
3172# Add or remove the comma after the last value of an enumeration.
3173mod_enum_last_comma = remove # ignore/add/remove/force
3174
3175# (OC) Whether to organize the properties. If true, properties will be
3176# rearranged according to the mod_sort_oc_property_*_weight factors.
3177mod_sort_oc_properties = false # true/false
3178
3179# (OC) Weight of a class property modifier.
3180mod_sort_oc_property_class_weight = 0 # number
3181
3182# (OC) Weight of 'atomic' and 'nonatomic'.
3183mod_sort_oc_property_thread_safe_weight = 0 # number
3184
3185# (OC) Weight of 'readwrite' when organizing properties.
3186mod_sort_oc_property_readwrite_weight = 0 # number
3187
3188# (OC) Weight of a reference type specifier ('retain', 'copy', 'assign',
3189# 'weak', 'strong') when organizing properties.
3190mod_sort_oc_property_reference_weight = 0 # number
3191
3192# (OC) Weight of getter type ('getter=') when organizing properties.
3193mod_sort_oc_property_getter_weight = 0 # number
3194
3195# (OC) Weight of setter type ('setter=') when organizing properties.
3196mod_sort_oc_property_setter_weight = 0 # number
3197
3198# (OC) Weight of nullability type ('nullable', 'nonnull', 'null_unspecified',
3199# 'null_resettable') when organizing properties.
3200mod_sort_oc_property_nullability_weight = 0 # number
3201
3202#
3203# Preprocessor options
3204#
3205
3206# Add or remove indentation of preprocessor directives inside #if blocks
3207# at brace level 0 (file-level).
3208pp_indent = ignore # ignore/add/remove/force
3209
3210# Whether to indent #if/#else/#endif at the brace level. If false, these are
3211# indented from column 1.
3212pp_indent_at_level = false # true/false
3213
Michal Vasko6ce8e822022-08-02 15:09:17 +02003214# Whether to indent #if/#else/#endif at the parenthesis level if the brace
3215# level is 0. If false, these are indented from column 1.
3216pp_indent_at_level0 = false # true/false
3217
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003218# Specifies the number of columns to indent preprocessors per level
3219# at brace level 0 (file-level). If pp_indent_at_level=false, also specifies
3220# the number of columns to indent preprocessors per level
3221# at brace level > 0 (function-level).
3222#
3223# Default: 1
3224pp_indent_count = 0 # unsigned number
3225
3226# Add or remove space after # based on pp_level of #if blocks.
3227pp_space = ignore # ignore/add/remove/force
3228
3229# Sets the number of spaces per level added with pp_space.
3230pp_space_count = 0 # unsigned number
3231
3232# The indent for '#region' and '#endregion' in C# and '#pragma region' in
3233# C/C++. Negative values decrease indent down to the first column.
3234pp_indent_region = 0 # number
3235
3236# Whether to indent the code between #region and #endregion.
3237pp_region_indent_code = false # true/false
3238
3239# If pp_indent_at_level=true, sets the indent for #if, #else and #endif when
3240# not at file-level. Negative values decrease indent down to the first column.
3241#
3242# =0: Indent preprocessors using output_tab_size
3243# >0: Column at which all preprocessors will be indented
3244pp_indent_if = 0 # number
3245
3246# Whether to indent the code between #if, #else and #endif.
3247pp_if_indent_code = false # true/false
3248
Michal Vasko6ce8e822022-08-02 15:09:17 +02003249# Whether to indent the body of an #if that encompasses all the code in the file.
3250pp_indent_in_guard = false # true/false
3251
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003252# Whether to indent '#define' at the brace level. If false, these are
3253# indented from column 1.
3254pp_define_at_level = false # true/false
3255
Michal Vasko6ce8e822022-08-02 15:09:17 +02003256# Whether to indent '#include' at the brace level.
3257pp_include_at_level = false # true/false
3258
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003259# Whether to ignore the '#define' body while formatting.
3260pp_ignore_define_body = true # true/false
3261
3262# Whether to indent case statements between #if, #else, and #endif.
3263# Only applies to the indent of the preprocesser that the case statements
3264# directly inside of.
3265#
3266# Default: true
3267pp_indent_case = false # true/false
3268
3269# Whether to indent whole function definitions between #if, #else, and #endif.
3270# Only applies to the indent of the preprocesser that the function definition
3271# is directly inside of.
3272#
3273# Default: true
3274pp_indent_func_def = false # true/false
3275
3276# Whether to indent extern C blocks between #if, #else, and #endif.
3277# Only applies to the indent of the preprocesser that the extern block is
3278# directly inside of.
3279#
3280# Default: true
3281pp_indent_extern = false # true/false
3282
Michal Vasko6ce8e822022-08-02 15:09:17 +02003283# How to indent braces directly inside #if, #else, and #endif.
3284# Requires pp_if_indent_code=true and only applies to the indent of the
3285# preprocesser that the braces are directly inside of.
3286# 0: No extra indent
3287# 1: Indent by one level
3288# -1: Preserve original indentation
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003289#
Michal Vasko6ce8e822022-08-02 15:09:17 +02003290# Default: 1
3291pp_indent_brace = 0 # number
3292
3293# Whether to print warning messages for unbalanced #if and #else blocks.
3294# This will print a message in the following cases:
3295# - if an #ifdef block ends on a different indent level than
3296# where it started from. Example:
3297#
3298# #ifdef TEST
3299# int i;
3300# {
3301# int j;
3302# #endif
3303#
3304# - an #elif/#else block ends on a different indent level than
3305# the corresponding #ifdef block. Example:
3306#
3307# #ifdef TEST
3308# int i;
3309# #else
3310# }
3311# int j;
3312# #endif
3313pp_warn_unbalanced_if = true # true/false
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003314
3315#
3316# Sort includes options
3317#
3318
3319# The regex for include category with priority 0.
3320include_category_0 = "" # string
3321
3322# The regex for include category with priority 1.
3323include_category_1 = "" # string
3324
3325# The regex for include category with priority 2.
3326include_category_2 = "" # string
3327
3328#
3329# Use or Do not Use options
3330#
3331
3332# true: indent_func_call_param will be used (default)
3333# false: indent_func_call_param will NOT be used
3334#
3335# Default: true
3336use_indent_func_call_param = true # true/false
3337
3338# The value of the indentation for a continuation line is calculated
3339# differently if the statement is:
3340# - a declaration: your case with QString fileName ...
3341# - an assignment: your case with pSettings = new QSettings( ...
3342#
3343# At the second case the indentation value might be used twice:
3344# - at the assignment
3345# - at the function call (if present)
3346#
3347# To prevent the double use of the indentation value, use this option with the
3348# value 'true'.
3349#
3350# true: indent_continue will be used only once
3351# false: indent_continue will be used every time (default)
3352use_indent_continue_only_once = true # true/false
3353
3354# The value might be used twice:
3355# - at the assignment
3356# - at the opening brace
3357#
3358# To prevent the double use of the indentation value, use this option with the
3359# value 'true'.
3360#
3361# true: indentation will be used only once
3362# false: indentation will be used every time (default)
3363indent_cpp_lambda_only_once = true # true/false
3364
3365# Whether sp_after_angle takes precedence over sp_inside_fparen. This was the
3366# historic behavior, but is probably not the desired behavior, so this is off
3367# by default.
3368use_sp_after_angle_always = false # true/false
3369
3370# Whether to apply special formatting for Qt SIGNAL/SLOT macros. Essentially,
3371# this tries to format these so that they match Qt's normalized form (i.e. the
3372# result of QMetaObject::normalizedSignature), which can slightly improve the
3373# performance of the QObject::connect call, rather than how they would
3374# otherwise be formatted.
3375#
3376# See options_for_QT.cpp for details.
3377#
3378# Default: true
3379use_options_overriding_for_qt_macros = false # true/false
3380
3381# If true: the form feed character is removed from the list
3382# of whitespace characters.
3383# See https://en.cppreference.com/w/cpp/string/byte/isspace
3384use_form_feed_no_more_as_whitespace_character = false # true/false
3385
3386#
3387# Warn levels - 1: error, 2: warning (default), 3: note
3388#
3389
3390# (C#) Warning is given if doing tab-to-\t replacement and we have found one
3391# in a C# verbatim string literal.
3392#
3393# Default: 2
3394warn_level_tabs_found_in_verbatim_string_literals = 2 # unsigned number
3395
3396# Limit the number of loops.
3397# Used by uncrustify.cpp to exit from infinite loop.
3398# 0: no limit.
3399debug_max_number_of_loops = 0 # number
3400
3401# Set the number of the line to protocol;
3402# Used in the function prot_the_line if the 2. parameter is zero.
3403# 0: nothing protocol.
3404debug_line_number_to_protocol = 0 # number
3405
Michal Vasko6ce8e822022-08-02 15:09:17 +02003406# Set the number of second(s) before terminating formatting the current file,
3407# 0: no timeout.
3408# only for linux
3409debug_timeout = 0 # number
3410
3411# Set the number of characters to be printed if the text is too long,
3412# 0: do not truncate.
3413debug_truncate = 0 # unsigned number
3414
Michal Vaskob0e3ec42021-05-26 09:48:31 +02003415# Meaning of the settings:
3416# Ignore - do not do any changes
3417# Add - makes sure there is 1 or more space/brace/newline/etc
3418# Force - makes sure there is exactly 1 space/brace/newline/etc,
3419# behaves like Add in some contexts
3420# Remove - removes space/brace/newline/etc
3421#
3422#
3423# - Token(s) can be treated as specific type(s) with the 'set' option:
3424# `set tokenType tokenString [tokenString...]`
3425#
3426# Example:
3427# `set BOOL __AND__ __OR__`
3428#
3429# tokenTypes are defined in src/token_enum.h, use them without the
3430# 'CT_' prefix: 'CT_BOOL' => 'BOOL'
3431#
3432#
3433# - Token(s) can be treated as type(s) with the 'type' option.
3434# `type tokenString [tokenString...]`
3435#
3436# Example:
3437# `type int c_uint_8 Rectangle`
3438#
3439# This can also be achieved with `set TYPE int c_uint_8 Rectangle`
3440#
3441#
3442# To embed whitespace in tokenStrings use the '\' escape character, or quote
3443# the tokenStrings. These quotes are supported: "'`
3444#
3445#
3446# - Support for the auto detection of languages through the file ending can be
3447# added using the 'file_ext' command.
3448# `file_ext langType langString [langString..]`
3449#
3450# Example:
3451# `file_ext CPP .ch .cxx .cpp.in`
3452#
3453# langTypes are defined in uncrusify_types.h in the lang_flag_e enum, use
3454# them without the 'LANG_' prefix: 'LANG_CPP' => 'CPP'
3455#
3456#
3457# - Custom macro-based indentation can be set up using 'macro-open',
3458# 'macro-else' and 'macro-close'.
3459# `(macro-open | macro-else | macro-close) tokenString`
3460#
3461# Example:
3462# `macro-open BEGIN_TEMPLATE_MESSAGE_MAP`
3463# `macro-open BEGIN_MESSAGE_MAP`
3464# `macro-close END_MESSAGE_MAP`
3465#
3466#
3467# option(s) with 'not default' value: 232
3468#