Skip to content

Commit 1c05b21

Browse files
committed
update uncrustify.cfg for v0.81
1 parent 6167ef8 commit 1c05b21

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

etc/uncrustify.cfg

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Uncrustify-0.80.1_f
1+
# Uncrustify-0.81.0_f
22

33
#
44
# General options
@@ -881,6 +881,7 @@ sp_inv = remove # ignore/add/remove/force
881881
sp_addr = remove # ignore/add/remove/force
882882

883883
# Add or remove space around the '.' or '->' operators.
884+
# also the c-sharp null-conditional operator '?.'
884885
#
885886
# Default: remove
886887
sp_member = remove # ignore/add/remove/force
@@ -1499,6 +1500,9 @@ indent_bool_paren = 0 # number
14991500
# parentheses.
15001501
indent_ignore_bool = false # true/false
15011502

1503+
# Whether to indent lines that are nested in boolean expression one more level for each nesting
1504+
indent_bool_nested_all = false # true/false
1505+
15021506
# Whether to ignore the indentation of an arithmetic operator.
15031507
indent_ignore_arith = false # true/false
15041508

@@ -2189,6 +2193,12 @@ nl_after_vbrace_close = false # true/false
21892193
# structures. If set to ignore, uses nl_after_brace_close.
21902194
nl_brace_struct_var = force # ignore/add/remove/force
21912195

2196+
# Whether to add a newline before/after each '&&' or `||` on the same
2197+
# nesting level in a boolean expression if boolean expression will not
2198+
# fit on a line. code_width needs to be positive and pos_bool needs
2199+
# to be 'lead' or 'trail' for this option to have any effect.
2200+
nl_bool_expr_hierarchical = false # true/false
2201+
21922202
# Whether to alter newlines in '#define' macros.
21932203
nl_define_macro = false # true/false
21942204

@@ -2505,7 +2515,7 @@ nl_before_access_spec = 0 # unsigned number
25052515
nl_after_access_spec = 0 # unsigned number
25062516

25072517
# The number of newlines between a function definition and the function
2508-
# comment, as in '// comment\n <here> void foo() {...}'.
2518+
# comment, as in '/* comment */ <here> void foo() {...}'.
25092519
#
25102520
# 0: No change (default).
25112521
nl_comment_func_def = 0 # unsigned number

0 commit comments

Comments
 (0)