7
# The type of line endings
8
newlines = auto # auto/lf/crlf/cr
10
# The original size of tabs in the input
11
input_tab_size = 8 # number
13
# The size of tabs in the output (only used if align_with_tabs=true)
14
output_tab_size = 8 # number
16
# The ASCII value of the string escape char, usually 92 (\) or 94 (^). (Pawn)
17
string_escape_char = 92 # number
19
# Alternate string escape char for Pawn. Only works right before the quote char.
20
string_escape_char2 = 0 # number
26
# The number of columns to indent per level.
27
# Usually 2, 3, 4, or 8.
28
indent_columns = 4 # number
30
# How to use tabs when indenting code
32
# 1=indent with tabs, align with spaces
33
# 2=indent and align with tabs
34
indent_with_tabs = 2 # number
36
# Whether to indent strings broken by '\' so that they line up
37
indent_align_string = false # false/true
39
# The number of spaces to indent multi-line XML strings.
40
# Requires indent_align_string=True
41
indent_xml_string = 0 # number
43
# Spaces to indent '{' from level
44
indent_brace = 0 # number
46
# Whether braces are indented to the body level
47
indent_braces = false # false/true
49
# Disabled indenting function braces if indent_braces is true
50
indent_braces_no_func = false # false/true
52
# Indent based on the size of the brace parent, i.e. 'if' => 3 spaces, 'for' => 4 spaces, etc.
53
indent_brace_parent = false # false/true
55
# Whether the 'namespace' body is indented
56
indent_namespace = false # false/true
58
# The number of spaces to indent a namespace block
59
indent_namespace_level = 0 # number
61
# If the body of the namespace is longer than this number, it won't be indented.
62
# Requires indent_namespace=true. Default=0 (no limit)
63
indent_namespace_limit = 0 # number
65
# Whether the 'extern "C"' body is indented
66
indent_extern = false # false/true
68
# Whether the 'class' body is indented
69
indent_class = true # false/true
71
# Whether to indent the stuff after a leading class colon
72
indent_class_colon = false # false/true
74
# False=treat 'else\nif' as 'else if' for indenting purposes
75
# True=indent the 'if' one level
76
indent_else_if = false # false/true
78
# Amount to indent variable declarations after a open brace. neg=relative, pos=absolute
79
indent_var_def_blk = 0 # number
81
# True: indent continued function call parameters one indent level
82
# False: align parameters under the open paren
83
indent_func_call_param = false # false/true
85
# Same as indent_func_call_param, but for function defs
86
indent_func_def_param = false # false/true
88
# Same as indent_func_call_param, but for function protos
89
indent_func_proto_param = false # false/true
91
# Same as indent_func_call_param, but for class declarations
92
indent_func_class_param = false # false/true
94
# Same as indent_func_call_param, but for class variable constructors
95
indent_func_ctor_var_param = false # false/true
97
# Same as indent_func_call_param, but for templates
98
indent_template_param = false # false/true
100
# Double the indent for indent_func_xxx_param options
101
indent_func_param_double = false # false/true
103
# Indentation column for standalone 'const' function decl/proto qualifier
104
indent_func_const = 0 # number
106
# Indentation column for standalone 'throw' function decl/proto qualifier
107
indent_func_throw = 0 # number
109
# The number of spaces to indent a continued '->' or '.'
110
# Usually set to 0, 1, or indent_columns.
111
indent_member = 0 # number
113
# Spaces to indent single line ('//') comments on lines before code
114
indent_sing_line_comments = 0 # number
116
# If set, will indent trailing single line ('//') comments relative
117
# to the code instead of trying to keep the same absolute column
118
indent_relative_single_line_comments = true # false/true
120
# Spaces to indent 'case' from 'switch'
121
# Usually 0 or indent_columns.
122
indent_switch_case = 0 # number
124
# Spaces to shift the 'case' line, without affecting any other lines
126
indent_case_shift = 0 # number
128
# Spaces to indent '{' from 'case'.
129
# By default, the brace will appear under the 'c' in case.
130
# Usually set to 0 or indent_columns.
131
indent_case_brace = 4 # number
133
# Whether to indent comments found in first column
134
indent_col1_comment = false # false/true
136
# How to indent goto labels
137
# >0 : absolute column where 1 is the leftmost column
138
# <=0 : subtract from brace indent
139
indent_label = 1 # number
141
# Same as indent_label, but for access specifiers that are followed by a colon
142
indent_access_spec = 1 # number
144
# Indent the code after an access specifier by one level.
145
# If set, this option forces 'indent_access_spec=0'
146
indent_access_spec_body = false # false/true
148
# If an open paren is followed by a newline, indent the next line so that it lines up after the open paren (not recommended)
149
indent_paren_nl = false # false/true
151
# Controls the indent of a close paren after a newline.
152
# 0: Indent to body level
153
# 1: Align under the open paren
154
# 2: Indent to the brace level
155
indent_paren_close = 0 # number
157
# Controls the indent of a comma when inside a paren.If TRUE, aligns under the open paren
158
indent_comma_paren = false # false/true
160
# Controls the indent of a BOOL operator when inside a paren.If TRUE, aligns under the open paren
161
indent_bool_paren = false # false/true
163
# If an open square is followed by a newline, indent the next line so that it lines up after the open square (not recommended)
164
indent_square_nl = false # false/true
166
# Don't change the relative indent of ESQL/C 'EXEC SQL' bodies
167
indent_preserve_sql = false # false/true
169
# Align continued statements at the '='. Default=True
170
# If FALSE or the '=' is followed by a newline, the next line is indent one tab.
171
indent_align_assign = true # false/true
177
# Add or remove space around arithmetic operator '+', '-', '/', '*', etc
178
sp_arith = force # ignore/add/remove/force
180
# Add or remove space around assignment operator '=', '+=', etc
181
sp_assign = force # ignore/add/remove/force
183
# Add or remove space before assignment operator '=', '+=', etc. Overrides sp_assign.
184
sp_before_assign = force # ignore/add/remove/force
186
# Add or remove space after assignment operator '=', '+=', etc. Overrides sp_assign.
187
sp_after_assign = force # ignore/add/remove/force
189
# Add or remove space around assignment '=' in enum
190
sp_enum_assign = force # ignore/add/remove/force
192
# Add or remove space before assignment '=' in enum. Overrides sp_enum_assign.
193
sp_enum_before_assign = force # ignore/add/remove/force
195
# Add or remove space after assignment '=' in enum. Overrides sp_enum_assign.
196
sp_enum_after_assign = force # ignore/add/remove/force
198
# Add or remove space around preprocessor '##' concatenation operator. Default=Add
199
sp_pp_concat = add # ignore/add/remove/force
201
# Add or remove space after preprocessor '#' stringify operator. Default=Add
202
sp_pp_stringify = add # ignore/add/remove/force
204
# Add or remove space around boolean operators '&&' and '||'
205
sp_bool = force # ignore/add/remove/force
207
# Add or remove space around compare operator '<', '>', '==', etc
208
sp_compare = add # ignore/add/remove/force
210
# Add or remove space inside '(' and ')'
211
sp_inside_paren = remove # ignore/add/remove/force
213
# Add or remove space between nested parens
214
sp_paren_paren = remove # ignore/add/remove/force
216
# Whether to balance spaces inside nested parens
217
sp_balance_nested_parens = false # false/true
219
# Add or remove space between ')' and '{'
220
sp_paren_brace = force # ignore/add/remove/force
222
# Add or remove space before pointer star '*'
223
sp_before_ptr_star = remove # ignore/add/remove/force
225
# Add or remove space before pointer star '*' that isn't followed by a variable name
226
# If set to 'ignore', sp_before_ptr_star is used instead.
227
sp_before_unnamed_ptr_star = remove # ignore/add/remove/force
229
# Add or remove space between pointer stars '*'
230
sp_between_ptr_star = remove # ignore/add/remove/force
232
# Add or remove space after pointer star '*', if followed by a word.
233
sp_after_ptr_star = force # ignore/add/remove/force
235
# Add or remove space after a pointer star '*', if followed by a func proto/def.
236
sp_after_ptr_star_func = force # ignore/add/remove/force
238
# Add or remove space before a pointer star '*', if followed by a func proto/def.
239
sp_before_ptr_star_func = remove # ignore/add/remove/force
241
# Add or remove space before a reference sign '&'
242
sp_before_byref = remove # ignore/add/remove/force
244
# Add or remove space before a reference sign '&' that isn't followed by a variable name
245
# If set to 'ignore', sp_before_byref is used instead.
246
sp_before_unnamed_byref = remove # ignore/add/remove/force
248
# Add or remove space after reference sign '&', if followed by a word.
249
sp_after_byref = force # ignore/add/remove/force
251
# Add or remove space after a reference sign '&', if followed by a func proto/def.
252
sp_after_byref_func = force # ignore/add/remove/force
254
# Add or remove space before a reference sign '&', if followed by a func proto/def.
255
sp_before_byref_func = remove # ignore/add/remove/force
257
# Add or remove space between type and word. Default=Force
258
sp_after_type = force # ignore/add/remove/force
260
# Add or remove space in 'template <' vs 'template<'.
261
# If set to ignore, sp_before_angle is used.
262
sp_template_angle = remove # ignore/add/remove/force
264
# Add or remove space before '<>'
265
sp_before_angle = remove # ignore/add/remove/force
267
# Add or remove space inside '<' and '>'
268
sp_inside_angle = remove # ignore/add/remove/force
270
# Add or remove space after '<>'
271
sp_after_angle = force # ignore/add/remove/force
273
# Add or remove space between '<>' and '(' as found in 'new List<byte>();'
274
sp_angle_paren = remove # ignore/add/remove/force
276
# Add or remove space between '<>' and a word as in 'List<byte> m;'
277
sp_angle_word = force # ignore/add/remove/force
279
# Add or remove space before '(' of 'if', 'for', 'switch', and 'while'
280
sp_before_sparen = force # ignore/add/remove/force
282
# Add or remove space inside if-condition '(' and ')'
283
sp_inside_sparen = remove # ignore/add/remove/force
285
# Add or remove space before if-condition ')'. Overrides sp_inside_sparen.
286
sp_inside_sparen_close = remove # ignore/add/remove/force
288
# Add or remove space after ')' of 'if', 'for', 'switch', and 'while'
289
sp_after_sparen = force # ignore/add/remove/force
291
# Add or remove space between ')' and '{' of 'if', 'for', 'switch', and 'while'
292
sp_sparen_brace = force # ignore/add/remove/force
294
# Add or remove space between 'invariant' and '(' in the D language.
295
sp_invariant_paren = ignore # ignore/add/remove/force
297
# Add or remove space after the ')' in 'invariant (C) c' in the D language.
298
sp_after_invariant_paren = ignore # ignore/add/remove/force
300
# Add or remove space before empty statement ';' on 'if', 'for' and 'while'
301
sp_special_semi = force # ignore/add/remove/force
303
# Add or remove space before ';'. Default=Remove
304
sp_before_semi = remove # ignore/add/remove/force
306
# Add or remove space before ';' in non-empty 'for' statements
307
sp_before_semi_for = remove # ignore/add/remove/force
309
# Add or remove space before a semicolon of an empty part of a for statement.
310
sp_before_semi_for_empty = remove # ignore/add/remove/force
312
# Add or remove space after ';', except when followed by a comment. Default=Add
313
sp_after_semi = force # ignore/add/remove/force
315
# Add or remove space after ';' in non-empty 'for' statements. Default=Force
316
sp_after_semi_for = force # ignore/add/remove/force
318
# Add or remove space after the final semicolon of an empty part of a for statement: for ( ; ; <here> ).
319
sp_after_semi_for_empty = remove # ignore/add/remove/force
321
# Add or remove space before '[' (except '[]')
322
sp_before_square = remove # ignore/add/remove/force
324
# Add or remove space before '[]'
325
sp_before_squares = remove # ignore/add/remove/force
327
# Add or remove space inside '[' and ']'
328
sp_inside_square = remove # ignore/add/remove/force
330
# Add or remove space after ','
331
sp_after_comma = force # ignore/add/remove/force
333
# Add or remove space before ','
334
sp_before_comma = remove # ignore/add/remove/force
336
# Add or remove space before the variadic '...' when preceded by a non-punctuator
337
sp_before_ellipsis = force # ignore/add/remove/force
339
# Add or remove space after class ':'
340
sp_after_class_colon = add # ignore/add/remove/force
342
# Add or remove space before class ':'
343
sp_before_class_colon = add # ignore/add/remove/force
345
# Add or remove space before case ':'. Default=Remove
346
sp_before_case_colon = remove # ignore/add/remove/force
348
# Add or remove space between 'operator' and operator sign
349
sp_after_operator = ignore # ignore/add/remove/force
351
# Add or remove space between the operator symbol and the open paren, as in 'operator ++('
352
sp_after_operator_sym = ignore # ignore/add/remove/force
354
# Add or remove space after C/D cast, i.e. 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a'
355
sp_after_cast = remove # ignore/add/remove/force
357
# Add or remove spaces inside cast parens
358
sp_inside_paren_cast = remove # ignore/add/remove/force
360
# Add or remove space between the type and open paren in a C++ cast, i.e. 'int(exp)' vs 'int (exp)'
361
sp_cpp_cast_paren = remove # ignore/add/remove/force
363
# Add or remove space between 'sizeof' and '('
364
sp_sizeof_paren = remove # ignore/add/remove/force
366
# Add or remove space after the tag keyword (Pawn)
367
sp_after_tag = ignore # ignore/add/remove/force
369
# Add or remove space inside enum '{' and '}'
370
sp_inside_braces_enum = remove # ignore/add/remove/force
372
# Add or remove space inside struct/union '{' and '}'
373
sp_inside_braces_struct = remove # ignore/add/remove/force
375
# Add or remove space inside '{' and '}'
376
sp_inside_braces = force # ignore/add/remove/force
378
# Add or remove space inside '{}'
379
sp_inside_braces_empty = remove # ignore/add/remove/force
381
# Add or remove space between return type and function name
382
# A minimum of 1 is forced except for pointer return types.
383
sp_type_func = ignore # ignore/add/remove/force
385
# Add or remove space between function name and '(' on function declaration
386
sp_func_proto_paren = remove # ignore/add/remove/force
388
# Add or remove space between function name and '(' on function definition
389
sp_func_def_paren = remove # ignore/add/remove/force
391
# Add or remove space inside empty function '()'
392
sp_inside_fparens = remove # ignore/add/remove/force
394
# Add or remove space inside function '(' and ')'
395
sp_inside_fparen = remove # ignore/add/remove/force
397
# Add or remove space between ']' and '(' when part of a function call.
398
sp_square_fparen = remove # ignore/add/remove/force
400
# Add or remove space between ')' and '{' of function
401
sp_fparen_brace = force # ignore/add/remove/force
403
# Add or remove space between function name and '(' on function calls
404
sp_func_call_paren = remove # ignore/add/remove/force
406
# Add or remove space between the user function name and '(' on function calls
407
# You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file.
408
sp_func_call_user_paren = remove # ignore/add/remove/force
410
# Add or remove space between a constructor/destructor and the open paren
411
sp_func_class_paren = remove # ignore/add/remove/force
413
# Add or remove space between 'return' and '('
414
sp_return_paren = force # ignore/add/remove/force
416
# Add or remove space between '__attribute__' and '('
417
sp_attribute_paren = remove # ignore/add/remove/force
419
# Add or remove space between 'defined' and '(' in '#if defined (FOO)'
420
sp_defined_paren = remove # ignore/add/remove/force
422
# Add or remove space between 'throw' and '(' in 'throw (something)'
423
sp_throw_paren = force # ignore/add/remove/force
425
# Add or remove space between macro and value
426
sp_macro = ignore # ignore/add/remove/force
428
# Add or remove space between macro function ')' and value
429
sp_macro_func = ignore # ignore/add/remove/force
431
# Add or remove space between 'else' and '{' if on the same line
432
sp_else_brace = force # ignore/add/remove/force
434
# Add or remove space between '}' and 'else' if on the same line
435
sp_brace_else = force # ignore/add/remove/force
437
# Add or remove space between '}' and the name of a typedef on the same line
438
sp_brace_typedef = force # ignore/add/remove/force
440
# Add or remove space between 'catch' and '{' if on the same line
441
sp_catch_brace = force # ignore/add/remove/force
443
# Add or remove space between '}' and 'catch' if on the same line
444
sp_brace_catch = force # ignore/add/remove/force
446
# Add or remove space between 'finally' and '{' if on the same line
447
sp_finally_brace = ignore # ignore/add/remove/force
449
# Add or remove space between '}' and 'finally' if on the same line
450
sp_brace_finally = ignore # ignore/add/remove/force
452
# Add or remove space between 'try' and '{' if on the same line
453
sp_try_brace = force # ignore/add/remove/force
455
# Add or remove space between get/set and '{' if on the same line
456
sp_getset_brace = ignore # ignore/add/remove/force
458
# Add or remove space before the '::' operator
459
sp_before_dc = remove # ignore/add/remove/force
461
# Add or remove space after the '::' operator
462
sp_after_dc = remove # ignore/add/remove/force
464
# Add or remove around the D named array initializer ':' operator
465
sp_d_array_colon = ignore # ignore/add/remove/force
467
# Add or remove space after the '!' (not) operator. Default=Remove
468
sp_not = remove # ignore/add/remove/force
470
# Add or remove space after the '~' (invert) operator. Default=Remove
471
sp_inv = remove # ignore/add/remove/force
473
# Add or remove space after the '&' (address-of) operator. Default=Remove
474
# This does not affect the spacing after a '&' that is part of a type.
475
sp_addr = remove # ignore/add/remove/force
477
# Add or remove space around the '.' or '->' operators. Default=Remove
478
sp_member = remove # ignore/add/remove/force
480
# Add or remove space after the '*' (dereference) operator. Default=Remove
481
# This does not affect the spacing after a '*' that is part of a type.
482
sp_deref = remove # ignore/add/remove/force
484
# Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'. Default=Remove
485
sp_sign = remove # ignore/add/remove/force
487
# Add or remove space before or after '++' and '--', as in '(--x)' or 'y++;'. Default=Remove
488
sp_incdec = remove # ignore/add/remove/force
490
# Add or remove space before a backslash-newline at the end of a line. Default=Add
491
sp_before_nl_cont = add # ignore/add/remove/force
493
# Add or remove space after the scope '+' or '-', as in '-(void) foo;' or '+(int) bar;'
494
sp_after_oc_scope = ignore # ignore/add/remove/force
496
# Add or remove space after the colon in message specs
497
# '-(int) f:(int) x;' vs '-(int) f: (int) x;'
498
sp_after_oc_colon = ignore # ignore/add/remove/force
500
# Add or remove space before the colon in message specs
501
# '-(int) f: (int) x;' vs '-(int) f : (int) x;'
502
sp_before_oc_colon = ignore # ignore/add/remove/force
504
# Add or remove space after the colon in message specs
505
# '[object setValue:1];' vs '[object setValue: 1];'
506
sp_after_send_oc_colon = ignore # ignore/add/remove/force
508
# Add or remove space before the colon in message specs
509
# '[object setValue:1];' vs '[object setValue :1];'
510
sp_before_send_oc_colon = ignore # ignore/add/remove/force
512
# Add or remove space after the (type) in message specs
513
# '-(int)f: (int) x;' vs '-(int)f: (int)x;'
514
sp_after_oc_type = remove # ignore/add/remove/force
516
# Add or remove space after the first (type) in message specs
517
# '-(int) f:(int)x;' vs '-(int)f:(int)x;'
518
sp_after_oc_return_type = remove # ignore/add/remove/force
520
# Add or remove space between '@selector' and '('
521
# '@selector(msgName).' vs '@selector (msgName)'
522
sp_after_oc_at_sel = ignore # ignore/add/remove/force
524
# Add or remove space before a block pointer caret
525
# '^int (int arg){...}' vs. ' ^int (int arg){...}'
526
sp_before_oc_block_caret = ignore # ignore/add/remove/force
528
# Add or remove space after a block pointer caret
529
# '^int (int arg){...}' vs. '^ int (int arg){...}'
530
sp_after_oc_block_caret = ignore # ignore/add/remove/force
532
# Add or remove space around the ':' in 'b ? t : f'
533
sp_cond_colon = force # ignore/add/remove/force
535
# Add or remove space around the '?' in 'b ? t : f'
536
sp_cond_question = force # ignore/add/remove/force
538
# Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make sense here.
539
sp_case_label = ignore # ignore/add/remove/force
541
# Control the space around the D '..' operator.
542
sp_range = ignore # ignore/add/remove/force
544
# Control the space after the opening of a C++ comment '// A' vs '//A'
545
sp_cmt_cpp_start = ignore # ignore/add/remove/force
547
# Controls the spaces between #else or #endif and a trailing comment
548
sp_endif_cmt = add # ignore/add/remove/force
551
# Code alignment (not left column spaces/tabs)
554
# Whether to keep non-indenting tabs
555
align_keep_tabs = false # false/true
557
# Whether to use tabs for aligning
558
align_with_tabs = false # false/true
560
# Whether to bump out to the next tab when aligning
561
align_on_tabstop = false # false/true
563
# Whether to left-align numbers
564
align_number_left = false # false/true
566
# Align variable definitions in prototypes and functions
567
align_func_params = false # false/true
569
# Align parameters in single-line functions that have the same name.
570
# The function names must already be aligned with each other.
571
align_same_func_call_params = false # false/true
573
# The span for aligning variable definitions (0=don't align)
574
align_var_def_span = 0 # number
576
# How to align the star in variable definitions.
577
# 0=Part of the type 'void * foo;'
578
# 1=Part of the variable 'void *foo;'
579
# 2=Dangling 'void *foo;'
580
align_var_def_star_style = 0 # number
582
# How to align the '&' in variable definitions.
584
# 1=Part of the variable
586
align_var_def_amp_style = 0 # number
588
# The threshold for aligning variable definitions (0=no limit)
589
align_var_def_thresh = 0 # number
591
# The gap for aligning variable definitions
592
align_var_def_gap = 0 # number
594
# Whether to align the colon in struct bit fields
595
align_var_def_colon = false # false/true
597
# Whether to align any attribute after the variable name
598
align_var_def_attribute = false # false/true
600
# Whether to align inline struct/enum/union variable definitions
601
align_var_def_inline = false # false/true
603
# The span for aligning on '=' in assignments (0=don't align)
604
align_assign_span = 0 # number
606
# The threshold for aligning on '=' in assignments (0=no limit)
607
align_assign_thresh = 0 # number
609
# The span for aligning on '=' in enums (0=don't align)
610
align_enum_equ_span = 4 # number
612
# The threshold for aligning on '=' in enums (0=no limit)
613
align_enum_equ_thresh = 0 # number
615
# The span for aligning struct/union (0=don't align)
616
align_var_struct_span = 0 # number
618
# The threshold for aligning struct/union member definitions (0=no limit)
619
align_var_struct_thresh = 0 # number
621
# The gap for aligning struct/union member definitions
622
align_var_struct_gap = 0 # number
624
# The span for aligning struct initializer values (0=don't align)
625
align_struct_init_span = 0 # number
627
# The minimum space between the type and the synonym of a typedef
628
align_typedef_gap = 0 # number
630
# The span for aligning single-line typedefs (0=don't align)
631
align_typedef_span = 0 # number
633
# How to align typedef'd functions with other typedefs
634
# 0: Don't mix them at all
635
# 1: align the open paren with the types
636
# 2: align the function type name with the other type names
637
align_typedef_func = 0 # number
639
# Controls the positioning of the '*' in typedefs. Just try it.
640
# 0: Align on typedef type, ignore '*'
641
# 1: The '*' is part of type name: typedef int *pint;
642
# 2: The '*' is part of the type, but dangling: typedef int *pint;
643
align_typedef_star_style = 0 # number
645
# Controls the positioning of the '&' in typedefs. Just try it.
646
# 0: Align on typedef type, ignore '&'
647
# 1: The '&' is part of type name: typedef int &pint;
648
# 2: The '&' is part of the type, but dangling: typedef int &pint;
649
align_typedef_amp_style = 0 # number
651
# The span for aligning comments that end lines (0=don't align)
652
align_right_cmt_span = 20 # number
654
# If aligning comments, mix with comments after '}' and #endif with less than 3 spaces before the comment
655
align_right_cmt_mix = false # false/true
657
# If a trailing comment is more than this number of columns away from the text it follows,
658
# it will qualify for being aligned.
659
align_right_cmt_gap = 1 # number
661
# Align trailing comment at or beyond column N; 'pulls in' comments as a bonus side effect (0=ignore)
662
align_right_cmt_at_col = 0 # number
664
# The span for aligning function prototypes (0=don't align)
665
align_func_proto_span = 0 # number
667
# Minimum gap between the return type and the function name.
668
align_func_proto_gap = 0 # number
670
# Align function protos on the 'operator' keyword instead of what follows
671
align_on_operator = false # false/true
673
# Whether to mix aligning prototype and variable declarations.
674
# If true, align_var_def_XXX options are used instead of align_func_proto_XXX options.
675
align_mix_var_proto = false # false/true
677
# Align single-line functions with function prototypes, uses align_func_proto_span
678
align_single_line_func = false # false/true
680
# Aligning the open brace of single-line functions.
681
# Requires align_single_line_func=true, uses align_func_proto_span
682
align_single_line_brace = false # false/true
684
# Gap for align_single_line_brace.
685
align_single_line_brace_gap = 0 # number
687
# The span for aligning ObjC msg spec (0=don't align)
688
align_oc_msg_spec_span = 0 # number
690
# Whether to align macros wrapped with a backslash and a newline.
691
# This will not work right if the macro contains a multi-line comment.
692
align_nl_cont = false # false/true
694
# The minimum space between label and value of a preprocessor define
695
align_pp_define_gap = 0 # number
697
# The span for aligning on '#define' bodies (0=don't align)
698
align_pp_define_span = 0 # number
700
# Align lines that start with '<<' with previous '<<'. Default=true
701
align_left_shift = true # false/true
703
# Span for aligning parameters in an Obj-C message call on the ':' (0=don't align)
704
align_oc_msg_colon_span = 0 # number
707
# Newline adding and removing options
710
# Whether to collapse empty blocks between '{' and '}'
711
nl_collapse_empty_body = false # false/true
713
# Don't split one-line braced assignments - 'foo_t f = { 1, 2 };'
714
nl_assign_leave_one_liners = true # false/true
716
# Don't split one-line braced statements inside a class xx { } body
717
nl_class_leave_one_liners = true # false/true
719
# Don't split one-line enums: 'enum foo { BAR = 15 };'
720
nl_enum_leave_one_liners = true # false/true
722
# Don't split one-line get or set functions
723
nl_getset_leave_one_liners = true # false/true
725
# Don't split one-line function definitions - 'int foo() { return 0; }'
726
nl_func_leave_one_liners = true # false/true
728
# Don't split one-line if/else statements - 'if(a) b++;'
729
nl_if_leave_one_liners = false # false/true
731
# Add or remove newlines at the start of the file
732
nl_start_of_file = remove # ignore/add/remove/force
734
# The number of newlines at the start of the file (only used if nl_start_of_file is 'add' or 'force'
735
nl_start_of_file_min = 0 # number
737
# Add or remove newline at the end of the file
738
nl_end_of_file = force # ignore/add/remove/force
740
# The number of newlines at the end of the file (only used if nl_end_of_file is 'add' or 'force')
741
nl_end_of_file_min = 1 # number
743
# Add or remove newline between '=' and '{'
744
nl_assign_brace = remove # ignore/add/remove/force
746
# Add or remove newline between '=' and '[' (D only)
747
nl_assign_square = ignore # ignore/add/remove/force
749
# Add or remove newline after '= [' (D only). Will also affect the newline before the ']'
750
nl_after_square_assign = ignore # ignore/add/remove/force
752
# The number of newlines after a block of variable definitions
753
nl_func_var_def_blk = 1 # number
755
# Add or remove newline between a function call's ')' and '{', as in:
756
# list_for_each(item, &list) { }
757
nl_fcall_brace = remove # ignore/add/remove/force
759
# Add or remove newline between 'enum' and '{'
760
nl_enum_brace = remove # ignore/add/remove/force
762
# Add or remove newline between 'struct and '{'
763
nl_struct_brace = remove # ignore/add/remove/force
765
# Add or remove newline between 'union' and '{'
766
nl_union_brace = remove # ignore/add/remove/force
768
# Add or remove newline between 'if' and '{'
769
nl_if_brace = remove # ignore/add/remove/force
771
# Add or remove newline between '}' and 'else'
772
nl_brace_else = remove # ignore/add/remove/force
774
# Add or remove newline between 'else if' and '{'
775
# If set to ignore, nl_if_brace is used instead
776
nl_elseif_brace = remove # ignore/add/remove/force
778
# Add or remove newline between 'else' and '{'
779
nl_else_brace = remove # ignore/add/remove/force
781
# Add or remove newline between 'else' and 'if'
782
nl_else_if = remove # ignore/add/remove/force
784
# Add or remove newline between '}' and 'finally'
785
nl_brace_finally = ignore # ignore/add/remove/force
787
# Add or remove newline between 'finally' and '{'
788
nl_finally_brace = ignore # ignore/add/remove/force
790
# Add or remove newline between 'try' and '{'
791
nl_try_brace = remove # ignore/add/remove/force
793
# Add or remove newline between get/set and '{'
794
nl_getset_brace = ignore # ignore/add/remove/force
796
# Add or remove newline between 'for' and '{'
797
nl_for_brace = remove # ignore/add/remove/force
799
# Add or remove newline between 'catch' and '{'
800
nl_catch_brace = remove # ignore/add/remove/force
802
# Add or remove newline between '}' and 'catch'
803
nl_brace_catch = remove # ignore/add/remove/force
805
# Add or remove newline between 'while' and '{'
806
nl_while_brace = remove # ignore/add/remove/force
808
# Add or remove newline between two open or close braces.
809
# Due to general newline/brace handling, REMOVE may not work.
810
nl_brace_brace = ignore # ignore/add/remove/force
812
# Add or remove newline between 'do' and '{'
813
nl_do_brace = remove # ignore/add/remove/force
815
# Add or remove newline between '}' and 'while' of 'do' statement
816
nl_brace_while = remove # ignore/add/remove/force
818
# Add or remove newline between 'switch' and '{'
819
nl_switch_brace = remove # ignore/add/remove/force
821
# Add a newline between ')' and '{' if the ')' is on a different line than the if/for/etc.
822
# Overrides nl_for_brace, nl_if_brace, nl_switch_brace, nl_while_switch, and nl_catch_brace.
823
nl_multi_line_cond = false # false/true
825
# Force a newline in a define after the macro name for multi-line defines.
826
nl_multi_line_define = false # false/true
828
# Whether to put a newline before 'case' statement
829
nl_before_case = false # false/true
831
# Add or remove newline between ')' and 'throw'
832
nl_before_throw = force # ignore/add/remove/force
834
# Whether to put a newline after 'case' statement
835
nl_after_case = false # false/true
837
# Newline between namespace and {
838
nl_namespace_brace = remove # ignore/add/remove/force
840
# Add or remove newline between 'template<>' and whatever follows.
841
nl_template_class = ignore # ignore/add/remove/force
843
# Add or remove newline between 'class' and '{'
844
nl_class_brace = remove # ignore/add/remove/force
846
# Add or remove newline after each ',' in the constructor member initialization
847
nl_class_init_args = ignore # ignore/add/remove/force
849
# Add or remove newline between return type and function name in a function definition
850
nl_func_type_name = ignore # ignore/add/remove/force
852
# Add or remove newline between return type and function name inside a class {}
853
# Uses nl_func_type_name or nl_func_proto_type_name if set to ignore.
854
nl_func_type_name_class = ignore # ignore/add/remove/force
856
# Add or remove newline between function scope and name in a definition
857
# Controls the newline after '::' in 'void A::f() { }'
858
nl_func_scope_name = remove # ignore/add/remove/force
860
# Add or remove newline between return type and function name in a prototype
861
nl_func_proto_type_name = remove # ignore/add/remove/force
863
# Add or remove newline between a function name and the opening '('
864
nl_func_paren = remove # ignore/add/remove/force
866
# Add or remove newline after '(' in a function declaration
867
nl_func_decl_start = remove # ignore/add/remove/force
869
# Overrides nl_func_decl_start when there is only one paramter.
870
nl_func_decl_start_single = ignore # ignore/add/remove/force
872
# Add or remove newline after each ',' in a function declaration
873
nl_func_decl_args = remove # ignore/add/remove/force
875
# Add or remove newline before the ')' in a function declaration
876
nl_func_decl_end = remove # ignore/add/remove/force
878
# Overrides nl_func_decl_end when there is only one paramter.
879
nl_func_decl_end_single = ignore # ignore/add/remove/force
881
# Add or remove newline between '()' in a function declaration.
882
nl_func_decl_empty = remove # ignore/add/remove/force
884
# Add or remove newline between function signature and '{'
885
nl_fdef_brace = force # ignore/add/remove/force
887
# Whether to put a newline after 'return' statement
888
nl_after_return = false # false/true
890
# Add or remove a newline between the return keyword and return expression.
891
nl_return_expr = remove # ignore/add/remove/force
893
# Whether to put a newline after semicolons, except in 'for' statements
894
nl_after_semicolon = false # false/true
896
# Whether to put a newline after brace open.
897
# This also adds a newline before the matching brace close.
898
nl_after_brace_open = false # false/true
900
# If nl_after_brace_open and nl_after_brace_open_cmt are true, a newline is
901
# placed between the open brace and a trailing single-line comment.
902
nl_after_brace_open_cmt = false # false/true
904
# Whether to put a newline after a virtual brace open with a non-empty body.
905
# These occur in un-braced if/while/do/for statement bodies.
906
nl_after_vbrace_open = false # false/true
908
# Whether to put a newline after a virtual brace open with an empty body.
909
# These occur in un-braced if/while/do/for statement bodies.
910
nl_after_vbrace_open_empty = false # false/true
912
# Whether to put a newline after a brace close.
913
# Does not apply if followed by a necessary ';'.
914
nl_after_brace_close = false # false/true
916
# Whether to alter newlines in '#define' macros
917
nl_define_macro = false # false/true
919
# Whether to not put blanks after '#ifxx', '#elxx', or before '#endif'
920
nl_squeeze_ifdef = true # false/true
922
# Add or remove newline before 'if'
923
nl_before_if = ignore # ignore/add/remove/force
925
# Add or remove newline after 'if'
926
nl_after_if = ignore # ignore/add/remove/force
928
# Add or remove newline before 'for'
929
nl_before_for = force # ignore/add/remove/force
931
# Add or remove newline after 'for'
932
nl_after_for = force # ignore/add/remove/force
934
# Add or remove newline before 'while'
935
nl_before_while = force # ignore/add/remove/force
937
# Add or remove newline after 'while'
938
nl_after_while = ignore # ignore/add/remove/force
940
# Add or remove newline before 'switch'
941
nl_before_switch = force # ignore/add/remove/force
943
# Add or remove newline after 'switch'
944
nl_after_switch = ignore # ignore/add/remove/force
946
# Add or remove newline before 'do'
947
nl_before_do = force # ignore/add/remove/force
949
# Add or remove newline after 'do'
950
nl_after_do = ignore # ignore/add/remove/force
952
# Whether to double-space commented-entries in struct/enum
953
nl_ds_struct_enum_cmt = false # false/true
955
# Whether to double-space before the close brace of a struct/union/enum
956
nl_ds_struct_enum_close_brace = false # false/true
958
# Add or remove a newline around a class colon.
959
# Related to pos_class_colon, nl_class_init_args, and pos_comma.
960
nl_class_colon = force # ignore/add/remove/force
962
# Change simple unbraced if statements into a one-liner
963
# 'if(b)\n i++;' => 'if(b) i++;'
964
nl_create_if_one_liner = false # false/true
966
# Change simple unbraced for statements into a one-liner
967
# 'for (i=0;i<5;i++)\n foo(i);' => 'for (i=0;i<5;i++) foo(i);'
968
nl_create_for_one_liner = false # false/true
970
# Change simple unbraced while statements into a one-liner
971
# 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);'
972
nl_create_while_one_liner = false # false/true
975
# Positioning options
978
# The position of arithmetic operators in wrapped expressions
979
pos_arith = lead # ignore/lead/trail
981
# The position of assignment in wrapped expressions.
982
# Do not affect '=' followed by '{'
983
pos_assign = lead # ignore/lead/trail
985
# The position of boolean operators in wrapped expressions
986
pos_bool = lead # ignore/lead/trail
988
# The position of comparison operators in wrapped expressions
989
pos_compare = lead # ignore/lead/trail
991
# The position of conditional (b ? t : f) operators in wrapped expressions
992
pos_conditional = lead # ignore/lead/trail
994
# The position of the comma in wrapped expressions
995
pos_comma = trail # ignore/lead/trail
997
# The position of the comma in the constructor initialization list
998
pos_class_comma = trail # ignore/lead/trail
1000
# The position of colons between constructor and member initialization
1001
pos_class_colon = trail # ignore/lead/trail
1004
# Line Splitting options
1007
# Try to limit code width to N number of columns
1008
code_width = 130 # number
1010
# Whether to fully split long 'for' statements at semi-colons
1011
ls_for_split_full = true # false/true
1013
# Whether to fully split long function protos/calls at commas
1014
ls_func_split_full = false # false/true
1017
# Blank line options
1020
# The maximum consecutive newlines
1023
# The number of newlines after a function prototype, if followed by another function prototype
1024
nl_after_func_proto = 0 # number
1026
# The number of newlines after a function prototype, if not followed by another function prototype
1027
nl_after_func_proto_group = 0 # number
1029
# The number of newlines after '}' of a multi-line function body
1030
nl_after_func_body = 0 # number
1032
# The number of newlines after '}' of a single line function body
1033
nl_after_func_body_one_liner = 0 # number
1035
# The minimum number of newlines before a multi-line comment.
1036
# Doesn't apply if after a brace open or another multi-line comment.
1037
nl_before_block_comment = 0 # number
1039
# The minimum number of newlines before a single-line C comment.
1040
# Doesn't apply if after a brace open or other single-line C comments.
1041
nl_before_c_comment = 0 # number
1043
# The minimum number of newlines before a CPP comment.
1044
# Doesn't apply if after a brace open or other CPP comments.
1045
nl_before_cpp_comment = 0 # number
1047
# Whether to force a newline after a mulit-line comment.
1048
nl_after_multiline_comment = false # false/true
1050
# The number of newlines before a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
1051
# Will not change the newline count if after a brace open.
1053
nl_before_access_spec = 0 # number
1055
# The number of newlines after a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
1057
nl_after_access_spec = 0 # number
1059
# The number of newlines between a function def and the function comment.
1061
nl_comment_func_def = 0 # number
1063
# The number of newlines after a try-catch-finally block that isn't followed by a brace close.
1065
nl_after_try_catch_finally = 0 # number
1067
# The number of newlines before and after a property, indexer or event decl.
1069
nl_around_cs_property = 0 # number
1071
# The number of newlines between the get/set/add/remove handlers in C#.
1073
nl_between_get_set = 0 # number
1075
# Whether to remove blank lines after '{'
1076
eat_blanks_after_open_brace = true # false/true
1078
# Whether to remove blank lines before '}'
1079
eat_blanks_before_close_brace = true # false/true
1082
# Code modifying options (non-whitespace)
1085
# Add or remove braces on single-line 'do' statement
1086
mod_full_brace_do = remove # ignore/add/remove/force
1088
# Add or remove braces on single-line 'for' statement
1089
mod_full_brace_for = remove # ignore/add/remove/force
1091
# Add or remove braces on single-line function definitions. (Pawn)
1092
mod_full_brace_function = remove # ignore/add/remove/force
1094
# Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'.
1095
mod_full_brace_if = remove # ignore/add/remove/force
1097
# Make all if/elseif/else statements in a chain be braced or not. Overrides mod_full_brace_if.
1098
# If any must be braced, they are all braced. If all can be unbraced, then the braces are removed.
1099
mod_full_brace_if_chain = false # false/true
1101
# Don't remove braces around statements that span N newlines
1102
mod_full_brace_nl = 3 # number
1104
# Add or remove braces on single-line 'while' statement
1105
mod_full_brace_while = remove # ignore/add/remove/force
1107
# Add or remove unnecessary paren on 'return' statement
1108
mod_paren_on_return = remove # ignore/add/remove/force
1110
# Whether to change optional semicolons to real semicolons
1111
mod_pawn_semicolon = false # false/true
1113
# Add parens on 'while' and 'if' statement around bools
1114
mod_full_paren_if_bool = true # false/true
1116
# Whether to remove superfluous semicolons
1117
mod_remove_extra_semicolon = true # false/true
1119
# If a function body exceeds the specified number of newlines and doesn't have a comment after
1120
# the close brace, a comment will be added.
1121
mod_add_long_function_closebrace_comment = 0 # number
1123
# If a switch body exceeds the specified number of newlines and doesn't have a comment after
1124
# the close brace, a comment will be added.
1125
mod_add_long_switch_closebrace_comment = 0 # number
1127
# If an #ifdef body exceeds the specified number of newlines and doesn't have a comment after
1128
# the #else, a comment will be added.
1129
mod_add_long_ifdef_endif_comment = 0 # number
1131
# If an #ifdef or #else body exceeds the specified number of newlines and doesn't have a comment after
1132
# the #endif, a comment will be added.
1133
mod_add_long_ifdef_else_comment = 0 # number
1135
# If TRUE, will sort consecutive single-line 'import' statements [Java, D]
1136
mod_sort_import = false # false/true
1138
# If TRUE, will sort consecutive single-line 'using' statements [C#]
1139
mod_sort_using = false # false/true
1141
# If TRUE, will sort consecutive single-line '#include' statements [C/C++] and '#import' statements [Obj-C]
1142
# This is generally a bad idea, as it may break your code.
1143
mod_sort_include = true # false/true
1145
# If TRUE, it will move a 'break' that appears after a fully braced 'case' before the close brace.
1146
mod_move_case_break = false # false/true
1148
# Will add or remove the braces around a fully braced case statement.
1149
# Will only remove the braces if there are no variable declarations in the block.
1150
mod_case_brace = remove # ignore/add/remove/force
1152
# If TRUE, it will remove a void 'return;' that appears as the last statement in a function.
1153
mod_remove_empty_return = true # false/true
1156
# Comment modifications
1159
# Try to wrap comments at cmt_width columns
1160
cmt_width = 0 # number
1162
# Set the comment reflow mode (default: 0)
1163
# 0: no reflowing (apart from the line wrapping due to cmt_width)
1164
# 1: no touching at all
1166
cmt_reflow_mode = 0 # number
1168
# If false, disable all multi-line comment changes, including cmt_width and leading chars.
1170
cmt_indent_multi = true # false/true
1172
# Whether to group c-comments that look like they are in a block
1173
cmt_c_group = false # false/true
1175
# Whether to put an empty '/*' on the first line of the combined c-comment
1176
cmt_c_nl_start = false # false/true
1178
# Whether to put a newline before the closing '*/' of the combined c-comment
1179
cmt_c_nl_end = false # false/true
1181
# Whether to group cpp-comments that look like they are in a block
1182
cmt_cpp_group = true # false/true
1184
# Whether to put an empty '/*' on the first line of the combined cpp-comment
1185
cmt_cpp_nl_start = false # false/true
1187
# Whether to put a newline before the closing '*/' of the combined cpp-comment
1188
cmt_cpp_nl_end = false # false/true
1190
# Whether to change cpp-comments into c-comments
1191
cmt_cpp_to_c = false # false/true
1193
# Whether to put a star on subsequent comment lines
1194
cmt_star_cont = false # false/true
1196
# The number of spaces to insert at the start of subsequent comment lines
1197
cmt_sp_before_star_cont = 0 # number
1199
# The number of spaces to insert after the star on subsequent comment lines
1200
cmt_sp_after_star_cont = 0 # number
1202
# For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of
1203
# the comment are the same length. Default=True
1204
cmt_multi_check_last = false # false/true
1206
# The filename that contains text to insert at the head of a file if the file doesn't start with a C/C++ comment.
1207
# Will substitute $(filename) with the current file's name.
1208
cmt_insert_file_header = "/home/kabi/export/fte/src/mujcomment" # string
1210
# The filename that contains text to insert at the end of a file if the file doesn't end with a C/C++ comment.
1211
# Will substitute $(filename) with the current file's name.
1212
cmt_insert_file_footer = "" # string
1214
# The filename that contains text to insert before a function implementation if the function isn't preceded with a C/C++ comment.
1215
# Will substitute $(function) with the function name and $(javaparam) with the javadoc @param and @return stuff.
1216
# Will also substitute $(fclass) with the class name: void CFoo::Bar() { ... }
1217
cmt_insert_func_header = "" #"/home/kabi/export/fte/src/emp" # string
1219
# The filename that contains text to insert before a class if the class isn't preceded with a C/C++ comment.
1220
# Will substitute $(class) with the class name.
1221
cmt_insert_class_header = "" # string
1223
# If a preprocessor is encountered when stepping backwards from a function name, then
1224
# this option decides whether the comment should be inserted.
1225
# Affects cmt_insert_func_header and cmt_insert_class_header.
1226
cmt_insert_before_preproc = false # false/true
1229
# Preprocessor options
1232
# Control indent of preprocessors inside #if blocks at brace level 0
1233
pp_indent = remove # ignore/add/remove/force
1235
# Whether to indent #if/#else/#endif at the brace level (true) or from column 1 (false)
1236
pp_indent_at_level = false # false/true
1238
# If pp_indent_at_level=false, specifies the number of columns to indent per level. Default=1.
1239
pp_indent_count = 1 # number
1241
# Add or remove space after # based on pp_level of #if blocks
1242
pp_space = ignore # ignore/add/remove/force
1244
# Sets the number of spaces added with pp_space
1245
pp_space_count = 0 # number
1247
# The indent for #region and #endregion in C# and '#pragma region' in C/C++
1248
pp_indent_region = 0 # number
1250
# Whether to indent the code between #region and #endregion
1251
pp_region_indent_code = false # false/true
1253
# If pp_indent_at_level=true, sets the indent for #if, #else, and #endif when not at file-level
1254
pp_indent_if = 0 # number
1256
# Control whether to indent the code between #if, #else and #endif when not at file-level
1257
pp_if_indent_code = false # false/true
1259
# Whether to indent '#define' at the brace level (true) or from column 1 (false)
1260
pp_define_at_level = false # false/true
1262
# You can force a token to be a type with the 'type' option.
1264
# type myfoo1 myfoo2
1266
# You can create custom macro-based indentation using macro-open,
1267
# macro-else and macro-close.
1269
# macro-open BEGIN_TEMPLATE_MESSAGE_MAP
1270
# macro-open BEGIN_MESSAGE_MAP
1271
# macro-close END_MESSAGE_MAP
1273
# You can assign any keyword to any type with the set option.
1274
# set func_call_user _ N_
1276
# The full syntax description of all custom definition config entries
1279
# define custom tokens as:
1280
# - embed whitespace in token using '' escape character, or
1281
# put token in quotes
1282
# - these: ' " and ` are recognized as quote delimiters
1284
# type token1 token2 token3 ...
1285
# ^ optionally specify multiple tokens on a single line
1286
# define def_token output_token
1287
# ^ output_token is optional, then NULL is assumed
1291
# set id token1 token2 ...
1292
# ^ optionally specify multiple tokens on a single line
1293
# ^ id is one of the names in token_enum.h sans the CT_ prefix,
1296
# all tokens are separated by any mix of ',' commas, '=' equal signs
1297
# and whitespace (space, tab)