Skip to content

Commit e129d02

Browse files
committed
Apply uncrustify 0.82.0 changes
1 parent bd0f543 commit e129d02

File tree

1 file changed

+56
-30
lines changed

1 file changed

+56
-30
lines changed

uncrustify/citus-style.cfg

Lines changed: 56 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Uncrustify 0.61
1+
# Citus style according to Uncrustify 0.82.0
22

33
#
44
# General options
@@ -161,8 +161,8 @@ indent_func_throw = 0 # number
161161
# Usually set to 0, 1, or indent_columns.
162162
indent_member = 0 # number
163163

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
166166

167167
# If set, will indent trailing single line ('//') comments relative
168168
# to the code instead of trying to keep the same absolute column
@@ -205,11 +205,17 @@ indent_paren_nl = false # false/true
205205
# 2: Indent to the brace level
206206
indent_paren_close = 0 # number
207207

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 = -1 # number
210213

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
213219

214220
# If 'indent_bool_paren' is true, controls the indent of the first expression. If TRUE, aligns the first expression to the following ones
215221
indent_first_bool_expr = false # false/true
@@ -266,8 +272,9 @@ sp_assign = force # ignore/add/remove/force
266272
# Add or remove space around '=' in C++11 lambda capture specifications. Overrides sp_assign
267273
sp_cpp_lambda_assign = ignore # ignore/add/remove/force
268274

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
271278

272279
# Add or remove space around assignment operator '=' in a prototype
273280
sp_assign_default = ignore # ignore/add/remove/force
@@ -314,9 +321,6 @@ sp_paren_paren = remove # ignore/add/remove/force
314321
# Add or remove space between back-to-back parens: ')(' vs ') ('
315322
sp_cparen_oparen = ignore # ignore/add/remove/force
316323

317-
# Whether to balance spaces inside nested parens
318-
sp_balance_nested_parens = false # false/true
319-
320324
# Add or remove space between ')' and '{'
321325
sp_paren_brace = force # ignore/add/remove/force
322326

@@ -612,8 +616,9 @@ sp_try_brace = ignore # ignore/add/remove/force
612616
# Add or remove space between get/set and '{' if on the same line
613617
sp_getset_brace = ignore # ignore/add/remove/force
614618

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
617622

618623
# Add or remove space between a variable and '{' for a namespace
619624
sp_word_brace_ns = add # ignore/add/remove/force
@@ -762,11 +767,11 @@ sp_endif_cmt = ignore # ignore/add/remove/force
762767
# Controls the spaces after 'new', 'delete', and 'delete[]'
763768
sp_after_new = ignore # ignore/add/remove/force
764769

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
767772

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
770775

771776
# Control space between a Java annotation and the open paren.
772777
sp_annotation_paren = ignore # ignore/add/remove/force
@@ -914,9 +919,16 @@ align_single_line_brace_gap = 0 # number
914919
# The span for aligning ObjC msg spec (0=don't align)
915920
align_oc_msg_spec_span = 0 # number
916921

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.
918923
# 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
920932

921933
# # Align macro functions and variables together
922934
align_pp_define_together = false # false/true
@@ -991,9 +1003,14 @@ nl_assign_square = ignore # ignore/add/remove/force
9911003
# Add or remove newline after '= [' (D only). Will also affect the newline before the ']'
9921004
nl_after_square_assign = ignore # ignore/add/remove/force
9931005

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
9971014

9981015
# The number of newlines before a block of typedefs
9991016
# 0 = No change (default)
@@ -1466,9 +1483,18 @@ mod_full_brace_function = ignore # ignore/add/remove/force
14661483
# Add or remove braces on single-line 'if' statement. Will not remove the braces if they contain an 'else'.
14671484
mod_full_brace_if = force # ignore/add/remove/force
14681485

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
14721498

14731499
# Don't remove braces around statements that span N newlines
14741500
mod_full_brace_nl = 0 # number
@@ -1626,11 +1652,11 @@ pp_indent_at_level = false # false/true
16261652
# Default=1.
16271653
pp_indent_count = 1 # number
16281654

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
16311657

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
16341660

16351661
# The indent for #region and #endregion in C# and '#pragma region' in C/C++
16361662
pp_indent_region = 0 # number

0 commit comments

Comments
 (0)