2
# Uncrustify options (with comments) for Pandora Projects
4
# Copyright (C) 2008 Sun Microsystems, Inc.
6
# This program is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; version 2 of the License.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
nl_after_brace_close = TRUE
22
# The type of line endings
23
newlines = lf # auto/lf/crlf/cr
25
# The original size of tabs in the input
26
input_tab_size = 8 # number
28
# The size of tabs in the output (only used if align_with_tabs=true)
29
output_tab_size = 3 # number
31
# The ascii value of the string escape char, usually 92 (\) or 94 (^). (Pawn)
32
string_escape_char = 92 # number
34
# Alternate string escape char for Pawn. Only works right before the quote char.
35
string_escape_char2 = 0 # number
41
# The number of columns to indent per level.
42
# Usually 2, 3, 4, or 8.
43
indent_columns = 2 # number
45
# How to use tabs when indenting code
47
# 1=indent with tabs, align with spaces
48
# 2=indent and align with tabs
49
indent_with_tabs = 0 # number
51
# Whether to indent strings broken by '\' so that they line up
52
indent_align_string = true # false/true
54
# The number of spaces to indent multi-line XML strings.
55
# Requires indent_align_string=True
56
indent_xml_string = 0 # number
58
# Spaces to indent '{' from level
59
indent_brace = 0 # number
61
# Whether braces are indented to the body level
62
indent_braces = false # false/true
64
# Disabled indenting function braces if indent_braces is true
65
indent_braces_no_func = false # false/true
67
# Indent based on the size of the brace parent, ie 'if' => 3 spaces, 'for' => 4 spaces, etc.
68
indent_brace_parent = false # false/true
70
# Whether the 'namespace' body is indented
71
indent_namespace = false # false/true
73
# Whether the 'extern "C"' body is indented
74
indent_extern = false # false/true
76
# Whether the 'class' body is indented
77
indent_class = true # false/true
79
# Whether to indent the stuff after a leading class colon
80
indent_class_colon = true # false/true
82
# False=treat 'else\nif' as 'else if' for indenting purposes
83
# True=indent the 'if' one level
84
indent_else_if = false # false/true
86
# True: indent continued function call parameters one indent level
87
# False: align parameters under the open paren
88
indent_func_call_param = false # false/true
90
# Same as indent_func_call_param, but for function defs
91
indent_func_def_param = false # false/true
93
# Same as indent_func_call_param, but for function protos
94
indent_func_proto_param = false # false/true
96
# Same as indent_func_call_param, but for class declarations
97
indent_func_class_param = false # false/true
99
# Same as indent_func_call_param, but for class variable constructors
100
indent_func_ctor_var_param = false # false/true
102
# Same as indent_func_call_param, but for templates
103
indent_template_param = false # false/true
105
# Double the indent for indent_func_xxx_param options
106
indent_func_param_double = false # false/true
108
# Indentation column for standalone 'const' function decl/proto qualifier
109
indent_func_const = 0 # number
111
# Indentation column for standalone 'throw' function decl/proto qualifier
112
indent_func_throw = 0 # number
114
# The number of spaces to indent a continued '->' or '.'
115
# Usually set to 0, 1, or indent_columns.
116
indent_member = 3 # number
118
# Spaces to indent single line ('//') comments on lines before code
119
indent_sing_line_comments = 0 # number
121
# If set, will indent trailing single line ('//') comments relative
122
# to the code instead of trying to keep the same absolute column
123
indent_relative_single_line_comments = false # false/true
125
# Spaces to indent 'case' from 'switch'
126
# Usually 0 or indent_columns.
127
indent_switch_case = 0 # number
129
# Spaces to shift the 'case' line, without affecting any other lines
131
indent_case_shift = 0 # number
133
# Spaces to indent '{' from 'case'.
134
# By default, the brace will appear under the 'c' in case.
135
# Usually set to 0 or indent_columns.
136
indent_case_brace = 0 # number
138
# Whether to indent comments found in first column
139
indent_col1_comment = false # false/true
141
# How to indent goto labels
142
# >0 : absolute column where 1 is the leftmost column
143
# <=0 : subtract from brace indent
144
indent_label = 1 # number
146
# Same as indent_label, but for access specifiers that are followed by a colon
147
indent_access_spec = 1 # number
149
# Indent the code after an access specifier by one level.
150
# If set, this option forces 'indent_access_spec=0'
151
indent_access_spec_body = false # false/true
153
# If an open paren is followed by a newline, indent the next line so that it lines up after the open paren (not recommended)
154
indent_paren_nl = false # false/true
156
# Controls the indent of a close paren after a newline.
157
# 0: Indent to body level
158
# 1: Align under the open paren
159
# 2: Indent to the brace level
160
indent_paren_close = 0 # number
162
# Controls the indent of a comma when inside a paren.If TRUE, aligns under the open paren
163
indent_comma_paren = false # false/true
165
# Controls the indent of a BOOL operator when inside a paren.If TRUE, aligns under the open paren
166
indent_bool_paren = false # false/true
168
# If an open square is followed by a newline, indent the next line so that it lines up after the open square (not recommended)
169
indent_square_nl = false # false/true
171
# Don't change the relative indent of ESQL/C 'EXEC SQL' bodies
172
indent_preserve_sql = false # false/true
178
# Add or remove space around arithmetic operator '+', '-', '/', '*', etc
179
sp_arith = force # ignore/add/remove/force
181
# Add or remove space before assignment operator '=', '+=', etc
182
sp_before_assign = remove # ignore/add/remove/force
184
# Add or remove space after assignment operator '=', '+=', etc
185
sp_after_assign = force # ignore/add/remove/force
187
# Add or remove space around assignment '=' in enum
188
sp_enum_assign = ignore # ignore/add/remove/force
190
# Add or remove space around boolean operators '&&' and '||'
191
sp_bool = force # ignore/add/remove/force
193
# Add or remove space around compare operator '<', '>', '==', etc
194
sp_compare = force # ignore/add/remove/force
196
# Add or remove space inside '(' and ')'
197
sp_inside_paren = remove # ignore/add/remove/force
199
# Add or remove space between nested parens
200
sp_paren_paren = remove # ignore/add/remove/force
202
# Whether to balance spaces inside nested parens
203
sp_balance_nested_parens = false # false/true
205
# Add or remove space between ')' and '{'
206
sp_paren_brace = ignore # ignore/add/remove/force
208
# Add or remove space before pointer star '*'
209
sp_before_ptr_star = force # ignore/add/remove/force
211
# Add or remove space before pointer star '*' that isn't followed by a variable name
212
# If set to 'ignore', sp_before_ptr_star is used instead.
213
sp_before_unnamed_ptr_star = ignore # ignore/add/remove/force
215
# Add or remove space between pointer stars '*'
216
sp_between_ptr_star = remove # ignore/add/remove/force
218
# Add or remove space after pointer star '*', if followed by a word.
219
sp_after_ptr_star = remove # ignore/add/remove/force
221
# Add or remove space after a pointer star '*', if followed by a func proto/def.
222
sp_after_ptr_star_func = ignore # ignore/add/remove/force
224
# Add or remove space before a pointer star '*', if followed by a func proto/def.
225
sp_before_ptr_star_func = ignore # ignore/add/remove/force
227
# Add or remove space before a reference sign '&'
228
sp_before_byref = remove # ignore/add/remove/force
230
# Add or remove space before a reference sign '&' that isn't followed by a variable name
231
# If set to 'ignore', sp_before_byref is used instead.
232
sp_before_unnamed_byref = ignore # ignore/add/remove/force
234
# Add or remove space after reference sign '&', if followed by a word.
235
sp_after_byref = force # ignore/add/remove/force
237
# Add or remove space after a reference sign '&', if followed by a func proto/def.
238
sp_after_byref_func = ignore # ignore/add/remove/force
240
# Add or remove space before a reference sign '&', if followed by a func proto/def.
241
sp_before_byref_func = ignore # ignore/add/remove/force
243
# Add or remove space between type and word
244
sp_after_type = force # ignore/add/remove/force
246
# Add or remove space in 'template <' vs 'template<'.
247
# If set to ignore, sp_before_angle is used.
248
sp_template_angle = ignore # ignore/add/remove/force
250
# Add or remove space before '<>'
251
sp_before_angle = remove # ignore/add/remove/force
253
# Add or remove space inside '<' and '>'
254
sp_inside_angle = remove # ignore/add/remove/force
256
# Add or remove space after '<>'
257
sp_after_angle = force # ignore/add/remove/force
259
# Add or remove space between '<>' and '(' as found in 'new List<byte>();'
260
sp_angle_paren = ignore # ignore/add/remove/force
262
# Add or remove space between '<>' and a word as in 'List<byte> m;'
263
sp_angle_word = ignore # ignore/add/remove/force
265
# Add or remove space before '(' of 'if', 'for', 'switch', and 'while'
266
sp_before_sparen = force # ignore/add/remove/force
268
# Add or remove space inside if-condition '(' and ')'
269
sp_inside_sparen = remove # ignore/add/remove/force
271
# Add or remove space after ')' of 'if', 'for', 'switch', and 'while'
272
sp_after_sparen = force # ignore/add/remove/force
274
# Add or remove space between ')' and '{' of 'if', 'for', 'switch', and 'while'
275
sp_sparen_brace = add # ignore/add/remove/force
277
# Add or remove space before empty statement ';' on 'if', 'for' and 'while'
278
sp_special_semi = ignore # ignore/add/remove/force
280
# Add or remove space before ';'
281
sp_before_semi = remove # ignore/add/remove/force
283
# Add or remove space before ';' in non-empty 'for' statements
284
sp_before_semi_for = ignore # ignore/add/remove/force
286
# Add or remove space before a semicolon of an empty part of a for statment.
287
sp_before_semi_for_empty = force # ignore/add/remove/force
289
# Add or remove space after the final semicolon of an empty part of a for statment: for ( ; ; <here> ).
290
sp_after_semi_for_empty = ignore # ignore/add/remove/force
292
# Add or remove space before '[' (except '[]')
293
sp_before_square = ignore # ignore/add/remove/force
295
# Add or remove space before '[]'
296
sp_before_squares = ignore # ignore/add/remove/force
298
# Add or remove space inside '[' and ']'
299
sp_inside_square = remove # ignore/add/remove/force
301
# Add or remove space after ','
302
sp_after_comma = force # ignore/add/remove/force
304
# Add or remove space before ','
305
sp_before_comma = remove # ignore/add/remove/force
307
# Add or remove space after class ':'
308
sp_after_class_colon = ignore # ignore/add/remove/force
310
# Add or remove space before class ':'
311
sp_before_class_colon = ignore # ignore/add/remove/force
313
# Add or remove space between 'operator' and operator sign
314
sp_after_operator = ignore # ignore/add/remove/force
316
# Add or remove space between the operator symbol and the open paren, as in 'operator ++('
317
sp_after_operator_sym = ignore # ignore/add/remove/force
319
# Add or remove space after C/D cast, ie 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a'
320
sp_after_cast = remove # ignore/add/remove/force
322
# Add or remove spaces inside cast parens
323
sp_inside_paren_cast = remove # ignore/add/remove/force
325
# Add or remove space between the type and open paren in a C++ cast, ie 'int(exp)' vs 'int (exp)'
326
sp_cpp_cast_paren = remove # ignore/add/remove/force
328
# Add or remove space between 'sizeof' and '('
329
sp_sizeof_paren = remove # ignore/add/remove/force
331
# Add or remove space after the tag keyword (Pawn)
332
sp_after_tag = ignore # ignore/add/remove/force
334
# Add or remove space inside enum '{' and '}'
335
sp_inside_braces_enum = force # ignore/add/remove/force
337
# Add or remove space inside struct/union '{' and '}'
338
sp_inside_braces_struct = force # ignore/add/remove/force
340
# Add or remove space inside '{' and '}'
341
sp_inside_braces = force # ignore/add/remove/force
343
# Add or remove space inside '{}'
344
sp_inside_braces_empty = ignore # ignore/add/remove/force
346
# Add or remove space between return type and function name
347
# A minimum of 1 is forced except for pointer return types.
348
sp_type_func = force # ignore/add/remove/force
350
# Add or remove space between function name and '(' on function declaration
351
sp_func_proto_paren = remove # ignore/add/remove/force
353
# Add or remove space between function name and '(' on function definition
354
sp_func_def_paren = remove # ignore/add/remove/force
356
# Add or remove space inside empty function '()'
357
sp_inside_fparens = ignore # ignore/add/remove/force
359
# Add or remove space inside function '(' and ')'
360
sp_inside_fparen = remove # ignore/add/remove/force
362
# Add or remove space between ']' and '(' when part of a function call.
363
sp_square_fparen = ignore # ignore/add/remove/force
365
# Add or remove space between ')' and '{' of function
366
sp_fparen_brace = add # ignore/add/remove/force
368
# Add or remove space between function name and '(' on function calls
369
sp_func_call_paren = remove # ignore/add/remove/force
371
# Add or remove space between the user function name and '(' on function calls
372
# You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file.
373
sp_func_call_user_paren = ignore # ignore/add/remove/force
375
# Add or remove space between a constructor/destructor and the open paren
376
sp_func_class_paren = remove # ignore/add/remove/force
378
# Add or remove space between 'return' and '('
379
sp_return_paren = remove # ignore/add/remove/force
381
# Add or remove space between '__attribute__' and '('
382
sp_attribute_paren = remove # ignore/add/remove/force
384
# Add or remove space between 'defined' and '(' in '#if defined (FOO)'
385
sp_defined_paren = remove # ignore/add/remove/force
387
# Add or remove space between 'throw' and '(' in 'throw (something)'
388
sp_throw_paren = ignore # ignore/add/remove/force
390
# Add or remove space between macro and value
391
sp_macro = ignore # ignore/add/remove/force
393
# Add or remove space between macro function ')' and value
394
sp_macro_func = ignore # ignore/add/remove/force
396
# Add or remove space between 'else' and '{' if on the same line
397
sp_else_brace = ignore # ignore/add/remove/force
399
# Add or remove space between '}' and 'else' if on the same line
400
sp_brace_else = ignore # ignore/add/remove/force
402
# Add or remove space between '}' and the name of a typedef on the same line
403
sp_brace_typedef = force # ignore/add/remove/force
405
# Add or remove space between 'catch' and '{' if on the same line
406
sp_catch_brace = ignore # ignore/add/remove/force
408
# Add or remove space between '}' and 'catch' if on the same line
409
sp_brace_catch = ignore # ignore/add/remove/force
411
# Add or remove space between 'finally' and '{' if on the same line
412
sp_finally_brace = ignore # ignore/add/remove/force
414
# Add or remove space between '}' and 'finally' if on the same line
415
sp_brace_finally = ignore # ignore/add/remove/force
417
# Add or remove space between 'try' and '{' if on the same line
418
sp_try_brace = ignore # ignore/add/remove/force
420
# Add or remove space between get/set and '{' if on the same line
421
sp_getset_brace = ignore # ignore/add/remove/force
423
# Add or remove space before the '::' operator
424
sp_before_dc = remove # ignore/add/remove/force
426
# Add or remove space after the '::' operator
427
sp_after_dc = remove # ignore/add/remove/force
429
# Add or remove around the D named array initializer ':' operator
430
sp_d_array_colon = ignore # ignore/add/remove/force
432
# Add or remove space after the '!' (not) operator.
433
sp_not = force # ignore/add/remove/force
435
# Add or remove space after the '~' (invert) operator.
436
sp_inv = remove # ignore/add/remove/force
438
# Add or remove space after the '&' (address-of) operator.
439
# This does not affect the spacing after a '&' that is part of a type.
440
sp_addr = remove # ignore/add/remove/force
442
# Add or remove space around the '.' or '->' operators
443
sp_member = remove # ignore/add/remove/force
445
# Add or remove space after the '*' (dereference) operator.
446
# This does not affect the spacing after a '*' that is part of a type.
447
sp_deref = remove # ignore/add/remove/force
449
# Add or remove space after '+' or '-', as in 'x = -5' or 'y = +7'
450
sp_sign = remove # ignore/add/remove/force
452
# Add or remove space before or after '++' and '--', as in '(--x)' or 'y++;'
453
sp_incdec = remove # ignore/add/remove/force
455
# Add or remove space before a backslash-newline at the end of a line
456
sp_before_nl_cont = add # ignore/add/remove/force
458
# Add or remove space after the scope '+' or '-', as in '-(void) foo;' or '+(int) bar;'
459
sp_after_oc_scope = ignore # ignore/add/remove/force
461
# Add or remove space after the colon in message specs
462
# '-(int) f:(int) x;' vs '-(int) f: (int) x;'
463
sp_after_oc_colon = ignore # ignore/add/remove/force
465
# Add or remove space before the colon in message specs
466
# '-(int) f: (int) x;' vs '-(int) f : (int) x;'
467
sp_before_oc_colon = ignore # ignore/add/remove/force
469
# Add or remove space after the colon in message specs
470
# '[object setValue:1];' vs '[object setValue: 1];'
471
sp_after_send_oc_colon = ignore # ignore/add/remove/force
473
# Add or remove space before the colon in message specs
474
# '[object setValue:1];' vs '[object setValue :1];'
475
sp_before_send_oc_colon = ignore # ignore/add/remove/force
477
# Add or remove space after the (type) in message specs
478
# '-(int) f: (int) x;' vs '-(int) f: (int)x;'
479
sp_after_oc_type = ignore # ignore/add/remove/force
481
# Add or remove space around the ':' in 'b ? t : f'
482
sp_cond_colon = ignore # ignore/add/remove/force
484
# Add or remove space around the '?' in 'b ? t : f'
485
sp_cond_question = ignore # ignore/add/remove/force
487
# Fix the spacing between 'case' and the label. Only 'ignore' and 'force' make sense here.
488
sp_case_label = remove # ignore/add/remove/force
491
# Code alignment (not left column spaces/tabs)
494
# Whether to keep non-indenting tabs
495
align_keep_tabs = false # false/true
497
# Whether to use tabs for alinging
498
align_with_tabs = false # false/true
500
# Whether to bump out to the next tab when aligning
501
align_on_tabstop = false # false/true
503
# Whether to left-align numbers
504
align_number_left = false # false/true
506
# Align variable definitions in prototypes and functions
507
align_func_params = false # false/true
509
# Align parameters in single-line functions that have the same name.
510
# The function names must already be aligned with each other.
511
align_same_func_call_params = false # false/true
513
# The span for aligning variable definitions (0=don't align)
514
align_var_def_span = 1 # number
516
# How to align the star in variable definitions.
517
# 0=Part of the type 'void * foo;'
518
# 1=Part of the variable 'void *foo;'
519
# 2=Dangling 'void *foo;'
520
align_var_def_star_style = 1 # number
522
# How to align the '&' in variable definitions.
524
# 1=Part of the variable
526
align_var_def_amp_style = 0 # number
528
# The threshold for aligning variable definitions (0=no limit)
529
align_var_def_thresh = 1 # number
531
# The gap for aligning variable definitions
532
align_var_def_gap = 0 # number
534
# Whether to align the colon in struct bit fields
535
align_var_def_colon = false # false/true
537
# Whether to align inline struct/enum/union variable definitions
538
align_var_def_inline = false # false/true
540
# The span for aligning on '=' in assignments (0=don't align)
541
align_assign_span = 0 # number
543
# The threshold for aligning on '=' in assignments (0=no limit)
544
align_assign_thresh = 12 # number
546
# The span for aligning on '=' in enums (0=don't align)
547
align_enum_equ_span = 0 # number
549
# The threshold for aligning on '=' in enums (0=no limit)
550
align_enum_equ_thresh = 0 # number
552
# The span for aligning struct/union (0=don't align)
553
align_var_struct_span = 0 # number
555
# The threshold for aligning struct/union member definitions (0=no limit)
556
align_var_struct_thresh = 0 # number
558
# The gap for aligning struct/union member definitions
559
align_var_struct_gap = 0 # number
561
# The span for aligning struct initializer values (0=don't align)
562
align_struct_init_span = 3 # number
564
# The minimum space between the type and the synonym of a typedef
565
align_typedef_gap = 3 # number
567
# The span for aligning single-line typedefs (0=don't align)
568
align_typedef_span = 5 # number
570
# How to align typedef'd functions with other typedefs
571
# 0: Don't mix them at all
572
# 1: align the open paren with the types
573
# 2: align the function type name with the other type names
574
align_typedef_func = 0 # number
576
# Controls the positioning of the '*' in typedefs. Just try it.
577
# 0: Align on typdef type, ignore '*'
578
# 1: The '*' is part of type name: typedef int *pint;
579
# 2: The '*' is part of the type, but dangling: typedef int *pint;
580
align_typedef_star_style = 0 # number
582
# Controls the positioning of the '&' in typedefs. Just try it.
583
# 0: Align on typdef type, ignore '&'
584
# 1: The '&' is part of type name: typedef int &pint;
585
# 2: The '&' is part of the type, but dangling: typedef int &pint;
586
align_typedef_amp_style = 0 # number
588
# The span for aligning comments that end lines (0=don't align)
589
align_right_cmt_span = 3 # number
591
# If aligning comments, mix with comments after '}' and #endif with less than 3 spaces before the comment
592
align_right_cmt_mix = false # false/true
594
# If a trailing comment is more than this number of columns away from the text it follows,
595
# it will qualify for being aligned.
596
align_right_cmt_gap = 0 # number
598
# The span for aligning function prototypes (0=don't align)
599
align_func_proto_span = 0 # number
601
# Minimum gap between the return type and the function name.
602
align_func_proto_gap = 0 # number
604
# Whether to mix aligning prototype and variable declarations.
605
# If true, align_var_def_XXX options are used instead of align_func_proto_XXX options.
606
align_mix_var_proto = false # false/true
608
# Align single-line functions with function prototypes, uses align_func_proto_span
609
align_single_line_func = false # false/true
611
# Aligning the open brace of single-line functions.
612
# Requires align_single_line_func=true, uses align_func_proto_span
613
align_single_line_brace = false # false/true
615
# Gap for align_single_line_brace.
616
align_single_line_brace_gap = 0 # number
618
# The span for aligning ObjC msg spec (0=don't align)
619
align_oc_msg_spec_span = 0 # number
621
# Whether to align macros wrapped with a backslash and a newline.
622
# This will not work right if the macro contains a multi-line comment.
623
align_nl_cont = true # false/true
625
# The minimum space between label and value of a preprocessor define
626
align_pp_define_gap = 4 # number
628
# The span for aligning on '#define' bodies (0=don't align)
629
align_pp_define_span = 3 # number
631
# Align lines that start with '<<' with previous '<<'. Default=true
632
align_left_shift = true # false/true
635
# Newline adding and removing options
638
# Whether to collapse empty blocks between '{' and '}'
639
nl_collapse_empty_body = true # false/true
641
# Don't split one-line braced assignments - 'foo_t f = { 1, 2 };'
642
nl_assign_leave_one_liners = false # false/true
644
# Don't split one-line braced statements inside a class xx { } body
645
nl_class_leave_one_liners = false # false/true
647
# Don't split one-line enums: 'enum foo { BAR = 15 };'
648
nl_enum_leave_one_liners = false # false/true
650
# Don't split one-line get or set functions
651
nl_getset_leave_one_liners = false # false/true
653
# Don't split one-line function definitions - 'int foo() { return 0; }'
654
nl_func_leave_one_liners = false # false/true
656
# Don't split one-line if/else statements - 'if(a) b++;'
657
nl_if_leave_one_liners = false # false/true
659
# Add or remove newlines at the start of the file
660
nl_start_of_file = remove # ignore/add/remove/force
662
# The number of newlines at the start of the file (only used if nl_start_of_file is 'add' or 'force'
663
nl_start_of_file_min = 0 # number
665
# Add or remove newline at the end of the file
666
nl_end_of_file = force # ignore/add/remove/force
668
# The number of newlines at the end of the file (only used if nl_end_of_file is 'add' or 'force')
669
nl_end_of_file_min = 1 # number
671
# Add or remove newline between '=' and '{'
672
nl_assign_brace = force # ignore/add/remove/force
674
# Add or remove newline between '=' and '[' (D only)
675
nl_assign_square = force # ignore/add/remove/force
677
# Add or remove newline after '= [' (D only). Will also affect the newline before the ']'
678
nl_after_square_assign = force # ignore/add/remove/force
680
# The number of newlines after a block of variable definitions
681
nl_func_var_def_blk = 1 # number
683
# Add or remove newline between a function call's ')' and '{', as in:
684
# list_for_each(item, &list) { }
685
nl_fcall_brace = force # ignore/add/remove/force
687
# Add or remove newline between 'enum' and '{'
688
nl_enum_brace = force # ignore/add/remove/force
690
# Add or remove newline between 'struct and '{'
691
nl_struct_brace = force # ignore/add/remove/force
693
# Add or remove newline between 'union' and '{'
694
nl_union_brace = force # ignore/add/remove/force
696
# Add or remove newline between 'if' and '{'
697
nl_if_brace = force # ignore/add/remove/force
699
# Add or remove newline between '}' and 'else'
700
nl_brace_else = force # ignore/add/remove/force
702
# Add or remove newline between 'else if' and '{'
703
# If set to ignore, nl_if_brace is used instead
704
nl_elseif_brace = force # ignore/add/remove/force
706
# Add or remove newline between 'else' and '{'
707
nl_else_brace = force # ignore/add/remove/force
709
# Add or remove newline between 'else' and 'if'
710
nl_else_if = remove # ignore/add/remove/force
712
# Add or remove newline between '}' and 'finally'
713
nl_brace_finally = force # ignore/add/remove/force
715
# Add or remove newline between 'finally' and '{'
716
nl_finally_brace = force # ignore/add/remove/force
718
# Add or remove newline between 'try' and '{'
719
nl_try_brace = force # ignore/add/remove/force
721
# Add or remove newline between get/set and '{'
722
nl_getset_brace = force # ignore/add/remove/force
724
# Add or remove newline between 'for' and '{'
725
nl_for_brace = force # ignore/add/remove/force
727
# Add or remove newline between 'catch' and '{'
728
nl_catch_brace = force # ignore/add/remove/force
730
# Add or remove newline between '}' and 'catch'
731
nl_brace_catch = force # ignore/add/remove/force
733
# Add or remove newline between 'while' and '{'
734
nl_while_brace = force # ignore/add/remove/force
736
# Add or remove newline between 'do' and '{'
737
nl_do_brace = force # ignore/add/remove/force
739
# Add or remove newline between '}' and 'while' of 'do' statement
740
nl_brace_while = force # ignore/add/remove/force
742
# Add or remove newline between 'switch' and '{'
743
nl_switch_brace = force # ignore/add/remove/force
745
# Add or remove newline when condition spans two or more lines
746
nl_multi_line_cond = false # false/true
748
# Force a newline in a define after the macro name for multi-line defines.
749
nl_multi_line_define = true # false/true
751
# Whether to put a newline before 'case' statement
752
nl_before_case = true # false/true
754
# Add or remove newline between ')' and 'throw'
755
nl_before_throw = ignore # ignore/add/remove/force
757
# Whether to put a newline after 'case' statement
758
nl_after_case = true # false/true
760
# Newline between namespace and {
761
nl_namespace_brace = add # ignore/add/remove/force
763
# Add or remove newline between 'template<>' and whatever follows.
764
nl_template_class = add # ignore/add/remove/force
766
# Add or remove newline between 'class' and '{'
767
nl_class_brace = add # ignore/add/remove/force
769
# Add or remove newline after each ',' in the constructor member initialization
770
nl_class_init_args = force # ignore/add/remove/force
772
# Add or remove newline between return type and function name in definition
773
nl_func_type_name = ignore # ignore/add/remove/force
775
# Add or remove newline between return type and function name in a prototype
776
nl_func_proto_type_name = remove # ignore/add/remove/force
778
# Add or remove newline between a function name and the opening '('
779
nl_func_paren = remove # ignore/add/remove/force
781
# Add or remove newline after '(' in a function declaration
782
nl_func_decl_start = remove # ignore/add/remove/force
784
# Add or remove newline after each ',' in a function declaration
785
nl_func_decl_args = remove # ignore/add/remove/force
787
# Add or remove newline before the ')' in a function declaration
788
nl_func_decl_end = remove # ignore/add/remove/force
790
# Add or remove newline between function signature and '{'
791
nl_fdef_brace = add # ignore/add/remove/force
793
# Whether to put a newline after 'return' statement
794
nl_after_return = true # false/true
796
# Add or remove a newline between the return keyword and return expression.
797
nl_return_expr = remove # ignore/add/remove/force
799
# Whether to put a newline after semicolons, except in 'for' statements
800
nl_after_semicolon = true # false/true
802
# Whether to put a newline after brace open.
803
# This also adds a newline before the matching brace close.
804
nl_after_brace_open = true # false/true
806
# If nl_after_brace_open and nl_after_brace_open_cmt are true, a newline is
807
# placed between the open brace and a trailing single-line comment.
808
nl_after_brace_open_cmt = false # false/true
810
# Whether to put a newline after a virtual brace open.
811
# These occur in un-braced if/while/do/for statement bodies.
812
nl_after_vbrace_open = true # false/true
814
# Whether to alter newlines in '#define' macros
815
nl_define_macro = true # false/true
817
# Whether to not put blanks after '#ifxx', '#elxx', or before '#endif'
818
nl_squeeze_ifdef = false # false/true
820
# Add or remove newline before 'if'
821
nl_before_if = ignore # ignore/add/remove/force
823
# Add or remove newline after 'if'
824
nl_after_if = ignore # ignore/add/remove/force
826
# Add or remove newline before 'for'
827
nl_before_for = ignore # ignore/add/remove/force
829
# Add or remove newline after 'for'
830
nl_after_for = ignore # ignore/add/remove/force
832
# Add or remove newline before 'while'
833
nl_before_while = ignore # ignore/add/remove/force
835
# Add or remove newline after 'while'
836
nl_after_while = ignore # ignore/add/remove/force
838
# Add or remove newline before 'switch'
839
nl_before_switch = force # ignore/add/remove/force
841
# Add or remove newline after 'switch'
842
nl_after_switch = force # ignore/add/remove/force
844
# Add or remove newline before 'do'
845
nl_before_do = ignore # ignore/add/remove/force
847
# Add or remove newline after 'do'
848
nl_after_do = ignore # ignore/add/remove/force
850
# Whether to double-space commented-entries in struct/enum
851
nl_ds_struct_enum_cmt = false # false/true
853
# Whether to double-space before the close brace of a struct/union/enum
854
nl_ds_struct_enum_close_brace = false # false/true
856
# Add or remove a newline around a class colon.
857
# Related to pos_class_colon, nl_class_init_args, and pos_comma.
858
nl_class_colon = ignore # ignore/add/remove/force
860
# Change simple unbraced if statements into a one-liner
861
# 'if(b)\n i++;' => 'if(b) i++;'
862
nl_create_if_one_liner = false # false/true
864
# Change simple unbraced for statements into a one-liner
865
# 'for (i=0;i<5;i++)\n foo(i);' => 'for (i=0;i<5;i++) foo(i);'
866
nl_create_for_one_liner = false # false/true
868
# Change simple unbraced while statements into a one-liner
869
# 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);'
870
nl_create_while_one_liner = false # false/true
873
# Positioning options
876
# The position of arithmetic operators in wrapped expressions
877
pos_arith = lead # ignore/lead/trail
879
# The position of assignment in wrapped expressions
880
pos_assign = trail # ignore/lead/trail
882
# The position of boolean operators in wrapped expressions
883
pos_bool = lead # ignore/lead/trail
885
# The position of the comma in wrapped expressions
886
pos_comma = trail # ignore/lead/trail
888
# The position of the comma in the constructor initialization list
889
pos_class_comma = trail # ignore/lead/trail
891
# The position of colons between constructor and member initialization
892
pos_class_colon = lead # ignore/lead/trail
895
# Line Splitting options
898
# Try to limit code width to N number of columns
899
code_width = 76 # number
901
# Whether to fully split long 'for' statements at semi-colons
902
ls_for_split_full = true # false/true
904
# Whether to fully split long function protos/calls at commas
905
ls_func_split_full = true # false/true
911
# The maximum consecutive newlines
914
# The number of newlines after a function prototype, if followed by another function prototype
915
nl_after_func_proto = 0 # number
917
# The number of newlines after a function prototype, if not followed by another function prototype
918
nl_after_func_proto_group = 3 # number
920
# The number of newlines after '}' of a multi-line function body
921
nl_after_func_body = 3 # number
923
# The number of newlines after '}' of a single line function body
924
nl_after_func_body_one_liner = 1 # number
926
# The minimum number of newlines before a multi-line comment.
927
# Doesn't apply if after a brace open or another multi-line comment.
928
nl_before_block_comment = 2 # number
930
# The minimum number of newlines before a single-line C comment.
931
# Doesn't apply if after a brace open or other single-line C comments.
932
nl_before_c_comment = 1 # number
934
# The minimum number of newlines before a CPP comment.
935
# Doesn't apply if after a brace open or other CPP comments.
936
nl_before_cpp_comment = 0 # number
938
# Whether to force a newline after a mulit-line comment.
939
nl_after_multiline_comment = false # false/true
941
# The number of newlines before a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
942
# Will not change the newline count if after a brace open.
944
nl_before_access_spec = 1 # number
946
# The number of newlines after a 'private:', 'public:', 'protected:', 'signals:', or 'slots:' label.
948
nl_after_access_spec = 1 # number
950
# The number of newlines between a function def and the function comment.
952
nl_comment_func_def = 0 # number
954
# Whether to remove blank lines after '{'
955
eat_blanks_after_open_brace = true # false/true
957
# Whether to remove blank lines before '}'
958
eat_blanks_before_close_brace = true # false/true
961
# Code modifying options (non-whitespace)
964
# Add or remove braces on single-line 'do' statement
965
mod_full_brace_do = add # ignore/add/remove/force
967
# Add or remove braces on single-line 'for' statement
968
mod_full_brace_for = add # ignore/add/remove/force
970
# Add or remove braces on single-line function defintions. (Pawn)
971
mod_full_brace_function = ignore # ignore/add/remove/force
973
# Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'.
974
mod_full_brace_if = ignore # ignore/add/remove/force
976
# Don't remove braces around statements that span N newlines
977
mod_full_brace_nl = 0 # number
979
# Add or remove braces on single-line 'while' statement
980
mod_full_brace_while = add # ignore/add/remove/force
982
# Add or remove unnecessary paren on 'return' statement
983
mod_paren_on_return = remove # ignore/add/remove/force
985
# Whether to change optional semicolons to real semicolons
986
mod_pawn_semicolon = false # false/true
988
# Add parens on 'while' and 'if' statement around bools
989
mod_full_paren_if_bool = true # false/true
991
# Whether to remove superfluous semicolons
992
mod_remove_extra_semicolon = true # false/true
994
# If a function body exceeds the specified number of newlines and doesn't have a comment after
995
# the close brace, a comment will be added.
996
mod_add_long_function_closebrace_comment = 5 # number
998
# If a switch body exceeds the specified number of newlines and doesn't have a comment after
999
# the close brace, a comment will be added.
1000
mod_add_long_switch_closebrace_comment = 5 # number
1002
# If TRUE, will sort consecutive single-line 'import' statements [Java, D]
1003
mod_sort_import = false # false/true
1005
# If TRUE, will sort consecutive single-line 'using' statements [C#]
1006
mod_sort_using = false # false/true
1008
# If TRUE, will sort consecutive single-line '#include' statements [C/C++] and '#import' statements [Obj-C]
1009
# This is generally a bad idea, as it may break your code.
1010
mod_sort_include = false # false/true
1012
# If TRUE, it will move a 'break' that appears after a fully braced 'case' before the close brace.
1013
mod_move_case_break = false # false/true
1015
# If TRUE, it will remove a void 'return;' that appears as the last statement in a function.
1016
mod_remove_empty_return = true # false/true
1019
# Comment modifications
1022
# Try to wrap comments at cmt_width columns
1023
cmt_width = 0 # number
1025
# If false, disable all multi-line comment changes, including cmt_width and leading chars.
1027
cmt_indent_multi = true # false/true
1029
# Whether to group c-comments that look like they are in a block
1030
cmt_c_group = false # false/true
1032
# Whether to put an empty '/*' on the first line of the combined c-comment
1033
cmt_c_nl_start = false # false/true
1035
# Whether to put a newline before the closing '*/' of the combined c-comment
1036
cmt_c_nl_end = false # false/true
1038
# Whether to group cpp-comments that look like they are in a block
1039
cmt_cpp_group = false # false/true
1041
# Whether to put an empty '/*' on the first line of the combined cpp-comment
1042
cmt_cpp_nl_start = false # false/true
1044
# Whether to put a newline before the closing '*/' of the combined cpp-comment
1045
cmt_cpp_nl_end = false # false/true
1047
# Whether to change cpp-comments into c-comments
1048
cmt_cpp_to_c = false # false/true
1050
# Whether to put a star on subsequent comment lines
1051
cmt_star_cont = true # false/true
1053
# The number of spaces to insert at the start of subsequent comment lines
1054
cmt_sp_before_star_cont = 0 # number
1056
# The number of spaces to insert after the star on subsequent comment lines
1057
cmt_sp_after_star_cont = 1 # number
1059
# For multi-line comments with a '*' lead, remove leading spaces if the first and last lines of
1060
# the comment are the same length. Default=True
1061
cmt_multi_check_last = true # false/true
1063
# The filename that contains text to insert at the head of a file if the file doesn't start with a C/C++ comment.
1064
# Will substitue $(filename) with the current file's name.
1065
cmt_insert_file_header = "" # string
1067
# The filename that contains text to insert before a function implementation if the function isn't preceeded with a C/C++ comment.
1068
# Will substitue $(function) with the function name and $(javaparam) with the javadoc @param and @return stuff.
1069
# Will also substitute $(fclass) with the class name: void CFoo::Bar() { ... }
1070
cmt_insert_func_header = "" # string
1072
# The filename that contains text to insert before a class if the class isn't preceeded with a C/C++ comment.
1073
# Will substitue $(class) with the class name.
1074
cmt_insert_class_header = "" # string
1076
# If a preprocessor is encountered when stepping backwards from a function name, then
1077
# this option decides whether the comment should be inserted.
1078
# Affects cmt_insert_func_header and cmt_insert_class_header.
1079
cmt_insert_before_preproc = false # false/true
1082
# Preprocessor options
1085
# Control indent of preprocessors inside #if blocks at brace level 0
1086
pp_indent = remove # ignore/add/remove/force
1088
# Whether to indent #if/#else/#endif at the brace level (true) or from column 1 (false)
1089
pp_indent_at_level = false # false/true
1091
# If pp_indent_at_level=false, specifies the number of columns to indent per level. Default=1.
1092
pp_indent_count = 1 # number
1094
# Add or remove space after # based on pp_level of #if blocks
1095
pp_space = add # ignore/add/remove/force
1097
# Sets the number of spaces added with pp_space
1098
pp_space_count = 1 # number
1100
# The indent for #region and #endregion in C# and '#pragma region' in C/C++
1101
pp_indent_region = 0 # number
1103
# Whether to indent the code between #region and #endregion
1104
pp_region_indent_code = false # false/true
1106
# If pp_indent_at_level=true, sets the indent for #if, #else, and #endif when not at file-level
1107
pp_indent_if = 0 # number
1109
# Control whether to indent the code between #if, #else and #endif when not at file-level
1110
pp_if_indent_code = false # false/true
1112
# Whether to indent '#define' at the brace level (true) or from column 1 (false)
1113
pp_define_at_level = false # false/true
1115
# You can force a token to be a type with the 'type' option.
1117
# type myfoo1 myfoo2
1119
# You can create custom macro-based indentation using macro-open,
1120
# macro-else and macro-close.
1122
# macro-open BEGIN_TEMPLATE_MESSAGE_MAP
1123
# macro-open BEGIN_MESSAGE_MAP
1124
# macro-close END_MESSAGE_MAP
1126
# You can assign any keyword to any type with the set option.
1127
# set func_call_user _ N_