|
1 | | -# Uncrustify 0.61 |
| 1 | +# Citus style according to Uncrustify 0.82.0 |
2 | 2 |
|
3 | 3 | # |
4 | 4 | # General options |
@@ -161,8 +161,8 @@ indent_func_throw = 0 # number |
161 | 161 | # Usually set to 0, 1, or indent_columns. |
162 | 162 | indent_member = 0 # number |
163 | 163 |
|
164 | | -# Spaces to indent single line ('//') comments on lines before code |
165 | | -indent_sing_line_comments = 0 # number |
| 164 | +# Spaces to indent single line ('//') comments on lines before code. |
| 165 | +indent_single_line_comments_before = 0 # unsigned number |
166 | 166 |
|
167 | 167 | # If set, will indent trailing single line ('//') comments relative |
168 | 168 | # to the code instead of trying to keep the same absolute column |
@@ -205,11 +205,17 @@ indent_paren_nl = false # false/true |
205 | 205 | # 2: Indent to the brace level |
206 | 206 | indent_paren_close = 0 # number |
207 | 207 |
|
208 | | -# Controls the indent of a comma when inside a paren.If TRUE, aligns under the open paren |
209 | | -indent_comma_paren = false # false/true |
| 208 | +# How to indent a comma when inside parentheses. |
| 209 | +# 0: Indent by one level (default) |
| 210 | +# 1: Align under the open parenthesis |
| 211 | +# -1: Preserve original indentation |
| 212 | +indent_comma_paren = 0 # number |
210 | 213 |
|
211 | | -# Controls the indent of a BOOL operator when inside a paren.If TRUE, aligns under the open paren |
212 | | -indent_bool_paren = false # false/true |
| 214 | +# How to indent a Boolean operator when inside parentheses. |
| 215 | +# 0: Indent by one level (default) |
| 216 | +# 1: Align under the open parenthesis |
| 217 | +# -1: Preserve original indentation |
| 218 | +indent_bool_paren = -1 # number |
213 | 219 |
|
214 | 220 | # If 'indent_bool_paren' is true, controls the indent of the first expression. If TRUE, aligns the first expression to the following ones |
215 | 221 | indent_first_bool_expr = false # false/true |
@@ -266,8 +272,9 @@ sp_assign = force # ignore/add/remove/force |
266 | 272 | # Add or remove space around '=' in C++11 lambda capture specifications. Overrides sp_assign |
267 | 273 | sp_cpp_lambda_assign = ignore # ignore/add/remove/force |
268 | 274 |
|
269 | | -# Add or remove space after the capture specification in C++11 lambda. |
270 | | -sp_cpp_lambda_paren = ignore # ignore/add/remove/force |
| 275 | +# Add or remove space after the capture specification of a C++11 lambda when |
| 276 | +# an argument list is present, as in '[] <here> (int x){ ... }'. |
| 277 | +sp_cpp_lambda_square_paren = ignore # ignore/add/remove/force |
271 | 278 |
|
272 | 279 | # Add or remove space around assignment operator '=' in a prototype |
273 | 280 | sp_assign_default = ignore # ignore/add/remove/force |
@@ -314,9 +321,6 @@ sp_paren_paren = remove # ignore/add/remove/force |
314 | 321 | # Add or remove space between back-to-back parens: ')(' vs ') (' |
315 | 322 | sp_cparen_oparen = ignore # ignore/add/remove/force |
316 | 323 |
|
317 | | -# Whether to balance spaces inside nested parens |
318 | | -sp_balance_nested_parens = false # false/true |
319 | | - |
320 | 324 | # Add or remove space between ')' and '{' |
321 | 325 | sp_paren_brace = force # ignore/add/remove/force |
322 | 326 |
|
@@ -612,8 +616,9 @@ sp_try_brace = ignore # ignore/add/remove/force |
612 | 616 | # Add or remove space between get/set and '{' if on the same line |
613 | 617 | sp_getset_brace = ignore # ignore/add/remove/force |
614 | 618 |
|
615 | | -# Add or remove space between a variable and '{' for C++ uniform initialization |
616 | | -sp_word_brace = add # ignore/add/remove/force |
| 619 | +# Add or remove space between type and open brace of an unnamed temporary |
| 620 | +# direct-list-initialization. |
| 621 | +sp_type_brace_init_lst = add # ignore/add/remove/force |
617 | 622 |
|
618 | 623 | # Add or remove space between a variable and '{' for a namespace |
619 | 624 | sp_word_brace_ns = add # ignore/add/remove/force |
@@ -762,11 +767,11 @@ sp_endif_cmt = ignore # ignore/add/remove/force |
762 | 767 | # Controls the spaces after 'new', 'delete', and 'delete[]' |
763 | 768 | sp_after_new = ignore # ignore/add/remove/force |
764 | 769 |
|
765 | | -# Controls the spaces before a trailing or embedded comment |
766 | | -sp_before_tr_emb_cmt = ignore # ignore/add/remove/force |
| 770 | +# Add or remove space before a trailing comment. |
| 771 | +sp_before_tr_cmt = ignore # ignore/add/remove/force |
767 | 772 |
|
768 | | -# Number of spaces before a trailing or embedded comment |
769 | | -sp_num_before_tr_emb_cmt = 0 # number |
| 773 | +# Number of spaces before a trailing comment. |
| 774 | +sp_num_before_tr_cmt = 0 # unsigned number |
770 | 775 |
|
771 | 776 | # Control space between a Java annotation and the open paren. |
772 | 777 | sp_annotation_paren = ignore # ignore/add/remove/force |
@@ -914,9 +919,16 @@ align_single_line_brace_gap = 0 # number |
914 | 919 | # The span for aligning ObjC msg spec (0=don't align) |
915 | 920 | align_oc_msg_spec_span = 0 # number |
916 | 921 |
|
917 | | -# Whether to align macros wrapped with a backslash and a newline. |
| 922 | +# Whether and how to align backslashes that split a macro onto multiple lines. |
918 | 923 | # This will not work right if the macro contains a multi-line comment. |
919 | | -align_nl_cont = false # false/true |
| 924 | +# |
| 925 | +# 0: Do nothing (default) |
| 926 | +# 1: Align the backslashes in the column at the end of the longest line |
| 927 | +# 2: Align with the backslash that is farthest to the left, or, if that |
| 928 | +# backslash is farther left than the end of the longest line, at the end of |
| 929 | +# the longest line |
| 930 | +# 3: Align with the backslash that is farthest to the right |
| 931 | +align_nl_cont = 0 # unsigned number |
920 | 932 |
|
921 | 933 | # # Align macro functions and variables together |
922 | 934 | align_pp_define_together = false # false/true |
@@ -991,9 +1003,14 @@ nl_assign_square = ignore # ignore/add/remove/force |
991 | 1003 | # Add or remove newline after '= [' (D only). Will also affect the newline before the ']' |
992 | 1004 | nl_after_square_assign = ignore # ignore/add/remove/force |
993 | 1005 |
|
994 | | -# The number of blank lines after a block of variable definitions at the top of a function body |
995 | | -# 0 = No change (default) |
996 | | -nl_func_var_def_blk = 0 # number |
| 1006 | +# The minimum number of blank lines after a block of variable definitions |
| 1007 | +# at the top of a function body. If any preprocessor directives appear |
| 1008 | +# between the opening brace of the function and the variable block, then |
| 1009 | +# it is considered as not at the top of the function.Newlines are added |
| 1010 | +# before trailing preprocessor directives, if any exist. |
| 1011 | +# |
| 1012 | +# 0: No change (default). |
| 1013 | +nl_var_def_blk_end_func_top = 0 # unsigned number |
997 | 1014 |
|
998 | 1015 | # The number of newlines before a block of typedefs |
999 | 1016 | # 0 = No change (default) |
@@ -1466,9 +1483,18 @@ mod_full_brace_function = ignore # ignore/add/remove/force |
1466 | 1483 | # Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'. |
1467 | 1484 | mod_full_brace_if = force # ignore/add/remove/force |
1468 | 1485 |
|
1469 | | -# Make all if/elseif/else statements in a chain be braced or not. Overrides mod_full_brace_if. |
1470 | | -# If any must be braced, they are all braced. If all can be unbraced, then the braces are removed. |
1471 | | -mod_full_brace_if_chain = false # false/true |
| 1486 | +# Whether to enforce that all blocks of an 'if'/'else if'/'else' chain either |
| 1487 | +# have, or do not have, braces. Overrides mod_full_brace_if. |
| 1488 | +# |
| 1489 | +# 0: Don't override mod_full_brace_if |
| 1490 | +# 1: Add braces to all blocks if any block needs braces and remove braces if |
| 1491 | +# they can be removed from all blocks |
| 1492 | +# 2: Add braces to all blocks if any block already has braces, regardless of |
| 1493 | +# whether it needs them |
| 1494 | +# 3: Add braces to all blocks if any block needs braces and remove braces if |
| 1495 | +# they can be removed from all blocks, except if all blocks have braces |
| 1496 | +# despite none needing them |
| 1497 | +mod_full_brace_if_chain = 0 # unsigned number |
1472 | 1498 |
|
1473 | 1499 | # Don't remove braces around statements that span N newlines |
1474 | 1500 | mod_full_brace_nl = 0 # number |
@@ -1626,11 +1652,11 @@ pp_indent_at_level = false # false/true |
1626 | 1652 | # Default=1. |
1627 | 1653 | pp_indent_count = 1 # number |
1628 | 1654 |
|
1629 | | -# Add or remove space after # based on pp_level of #if blocks |
1630 | | -pp_space = ignore # ignore/add/remove/force |
| 1655 | +# Add or remove space after # based on pp level of #if blocks. |
| 1656 | +pp_space_after = ignore # ignore/add/remove/force |
1631 | 1657 |
|
1632 | | -# Sets the number of spaces added with pp_space |
1633 | | -pp_space_count = 0 # number |
| 1658 | +# Sets the number of spaces per level added with pp_space_after. |
| 1659 | +pp_space_count = 0 # unsigned number |
1634 | 1660 |
|
1635 | 1661 | # The indent for #region and #endregion in C# and '#pragma region' in C/C++ |
1636 | 1662 | pp_indent_region = 0 # number |
|
0 commit comments