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