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