1- # Uncrustify-0.71 .0_f
1+ # Uncrustify-0.76 .0_f
22
33#
44# General options
@@ -1539,9 +1539,15 @@ donot_indent_func_def_close_paren = false # true/false
15391539# Newline adding and removing options
15401540#
15411541
1542- # Whether to collapse empty blocks between '{' and '}'.
1542+ # Whether to collapse empty blocks between '{' and '}' except for functions.
1543+ # Use nl_collapse_empty_body_functions to specify how empty function braces
1544+ # should be formatted.
15431545nl_collapse_empty_body = true # true/false
15441546
1547+ # Whether to collapse empty blocks between '{' and '}' for functions only.
1548+ # If true, overrides nl_inside_empty_func.
1549+ nl_collapse_empty_body_functions = false # true/false
1550+
15451551# Don't split one-line braced assignments, as in 'foo_t f = { 1, 2 };'.
15461552nl_assign_leave_one_liners = true # true/false
15471553
@@ -1994,6 +2000,12 @@ nl_template_end = false # true/false
19942000# See nl_oc_msg_leave_one_liner.
19952001nl_oc_msg_args = false # true/false
19962002
2003+ # (OC) Minimum number of Objective-C message parameters before applying nl_oc_msg_args.
2004+ nl_oc_msg_args_min_params = 0 # unsigned number
2005+
2006+ # (OC) Max code width of Objective-C message before applying nl_oc_msg_args.
2007+ nl_oc_msg_args_max_code_width = 0 # unsigned number
2008+
19972009# Add or remove newline between function signature and '{'.
19982010nl_fdef_brace = force # ignore/add/remove/force
19992011
@@ -2007,6 +2019,9 @@ nl_cpp_ldef_brace = ignore # ignore/add/remove/force
20072019# Add or remove newline between 'return' and the return expression.
20082020nl_return_expr = remove # ignore/add/remove/force
20092021
2022+ # Add or remove newline between 'throw' and the throw expression.
2023+ nl_throw_expr = ignore # ignore/add/remove/force/not_defined
2024+
20102025# Whether to add a newline after semicolons, except in 'for' statements.
20112026nl_after_semicolon = false # true/false
20122027
@@ -2252,12 +2267,6 @@ nl_after_func_body_class = 2 # unsigned number
22522267# Overrides nl_after_func_body and nl_after_func_body_class.
22532268nl_after_func_body_one_liner = 2 # unsigned number
22542269
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).
2259- nl_func_var_def_blk = 1 # unsigned number
2260-
22612270# The number of newlines before a block of typedefs. If nl_after_access_spec
22622271# is non-zero, that option takes precedence.
22632272#
@@ -2274,6 +2283,15 @@ nl_typedef_blk_end = 1 # unsigned number
22742283# 0: No change (default).
22752284nl_typedef_blk_in = 0 # unsigned number
22762285
2286+ # The minimum number of blank lines after a block of variable definitions
2287+ # at the top of a function body. If any preprocessor directives appear
2288+ # between the opening brace of the function and the variable block, then
2289+ # it is considered as not at the top of the function.Newlines are added
2290+ # before trailing preprocessor directives, if any exist.
2291+ #
2292+ # 0: No change (default).
2293+ nl_var_def_blk_end_func_top = 1 # unsigned number
2294+
22772295# The number of newlines before a block of variable definitions not at the top
22782296# of a function body. If nl_after_access_spec is non-zero, that option takes
22792297# precedence.
@@ -3075,6 +3093,9 @@ mod_full_brace_nl_block_rem_mlcond = false # true/false
30753093# Add or remove unnecessary parenthesis on 'return' statement.
30763094mod_paren_on_return = remove # ignore/add/remove/force
30773095
3096+ # Add or remove unnecessary parentheses on 'throw' statement.
3097+ mod_paren_on_throw = ignore # ignore/add/remove/force/not_defined
3098+
30783099# (Pawn) Whether to change optional semicolons to real semicolons.
30793100mod_pawn_semicolon = false # true/false
30803101
@@ -3172,6 +3193,49 @@ mod_remove_empty_return = true # true/false
31723193# Add or remove the comma after the last value of an enumeration.
31733194mod_enum_last_comma = remove # ignore/add/remove/force
31743195
3196+ # Syntax to use for infinite loops.
3197+ #
3198+ # 0: Leave syntax alone (default)
3199+ # 1: Rewrite as `for(;;)`
3200+ # 2: Rewrite as `while(true)`
3201+ # 3: Rewrite as `do`...`while(true);`
3202+ # 4: Rewrite as `while(1)`
3203+ # 5: Rewrite as `do`...`while(1);`
3204+ #
3205+ # Infinite loops that do not already match one of these syntaxes are ignored.
3206+ # Other options that affect loop formatting will be applied after transforming
3207+ # the syntax.
3208+ mod_infinite_loop = 0 # unsigned number
3209+
3210+ # Add or remove the 'int' keyword in 'int short'.
3211+ mod_int_short = remove # ignore/add/remove/force/not_defined
3212+
3213+ # Add or remove the 'int' keyword in 'short int'.
3214+ mod_short_int = remove # ignore/add/remove/force/not_defined
3215+
3216+ # Add or remove the 'int' keyword in 'int long'.
3217+ mod_int_long = remove # ignore/add/remove/force/not_defined
3218+
3219+ # Add or remove the 'int' keyword in 'long int'.
3220+ mod_long_int = remove # ignore/add/remove/force/not_defined
3221+
3222+ # Add or remove the 'int' keyword in 'int signed'.
3223+ mod_int_signed = ignore # ignore/add/remove/force/not_defined
3224+
3225+ # Add or remove the 'int' keyword in 'signed int'.
3226+ mod_signed_int = ignore # ignore/add/remove/force/not_defined
3227+
3228+ # Add or remove the 'int' keyword in 'int unsigned'.
3229+ mod_int_unsigned = ignore # ignore/add/remove/force/not_defined
3230+
3231+ # Add or remove the 'int' keyword in 'unsigned int'.
3232+ mod_unsigned_int = ignore # ignore/add/remove/force/not_defined
3233+
3234+ # If there is a situation where mod_int_* and mod_*_int would result in
3235+ # multiple int keywords, whether to keep the rightmost int (the default) or the
3236+ # leftmost int.
3237+ mod_int_prefer_int_on_left = false # true/false
3238+
31753239# (OC) Whether to organize the properties. If true, properties will be
31763240# rearranged according to the mod_sort_oc_property_*_weight factors.
31773241mod_sort_oc_properties = false # true/false
@@ -3203,6 +3267,16 @@ mod_sort_oc_property_nullability_weight = 0 # number
32033267# Preprocessor options
32043268#
32053269
3270+ # How to use tabs when indenting preprocessor code.
3271+ #
3272+ # -1: Use 'indent_with_tabs' setting (default)
3273+ # 0: Spaces only
3274+ # 1: Indent with tabs to brace level, align with spaces
3275+ # 2: Indent and align with tabs, using spaces when not on a tabstop
3276+ #
3277+ # Default: -1
3278+ pp_indent_with_tabs = 0 # number
3279+
32063280# Add or remove indentation of preprocessor directives inside #if blocks
32073281# at brace level 0 (file-level).
32083282pp_indent = ignore # ignore/add/remove/force
@@ -3223,8 +3297,8 @@ pp_indent_at_level0 = false # true/false
32233297# Default: 1
32243298pp_indent_count = 0 # unsigned number
32253299
3226- # Add or remove space after # based on pp_level of #if blocks.
3227- pp_space = ignore # ignore/add/remove/force
3300+ # Add or remove space after # based on pp level of #if blocks.
3301+ pp_space_after = ignore # ignore/add/remove/force/not_defined
32283302
32293303# Sets the number of spaces per level added with pp_space.
32303304pp_space_count = 0 # unsigned number
@@ -3259,6 +3333,18 @@ pp_include_at_level = false # true/false
32593333# Whether to ignore the '#define' body while formatting.
32603334pp_ignore_define_body = true # true/false
32613335
3336+ # An offset value that controls the indentation of the body of a multiline #define.
3337+ # 'body' refers to all the lines of a multiline #define except the first line.
3338+ # Requires 'pp_ignore_define_body = false'.
3339+ #
3340+ # <0: Absolute column: the body indentation starts off at the specified column
3341+ # (ex. -3 ==> the body is indented starting from column 3)
3342+ # >=0: Relative to the column of the '#' of '#define'
3343+ # (ex. 3 ==> the body is indented starting 3 columns at the right of '#')
3344+ #
3345+ # Default: 8
3346+ pp_multiline_define_body_indent = 8 # number
3347+
32623348# Whether to indent case statements between #if, #else, and #endif.
32633349# Only applies to the indent of the preprocesser that the case statements
32643350# directly inside of.
@@ -3412,6 +3498,18 @@ debug_timeout = 0 # number
34123498# 0: do not truncate.
34133499debug_truncate = 0 # unsigned number
34143500
3501+ # sort (or not) the tracking info.
3502+ #
3503+ # Default: true
3504+ debug_sort_the_tracks = true # true/false
3505+
3506+ # decode (or not) the flags as a new line.
3507+ # only if the -p option is set.
3508+ debug_decode_the_flags = false # true/false
3509+
3510+ # insert the number of the line at the beginning of each line
3511+ set_numbering_for_html_output = false # true/false
3512+
34153513# Meaning of the settings:
34163514# Ignore - do not do any changes
34173515# Add - makes sure there is 1 or more space/brace/newline/etc
0 commit comments