diff --git a/default.cfg b/default.cfg index 6292735..48378d5 100644 --- a/default.cfg +++ b/default.cfg @@ -1,4 +1,4 @@ -# Uncrustify-0.70.1_f +# Uncrustify-0.72.0_f # # General options @@ -240,12 +240,22 @@ sp_after_byref_func = ignore # ignore/add/remove/force # prototype or function definition. sp_before_byref_func = ignore # ignore/add/remove/force -# Add or remove space between type and word. +# Add or remove space between type and word. In cases where total removal of +# whitespace would be a syntax error, a value of 'remove' is treated the same +# as 'force'. +# +# This also affects some other instances of space following a type that are +# not covered by other options; for example, between the return type and +# parenthesis of a function type template argument, between the type and +# parenthesis of an array parameter, or between 'decltype(...)' and the +# following word. # # Default: force sp_after_type = force # ignore/add/remove/force # Add or remove space between 'decltype(...)' and word. +# +# Overrides sp_after_type. sp_after_decltype = ignore # ignore/add/remove/force # (D) Add or remove space before the parenthesis in the D constructs @@ -367,6 +377,9 @@ sp_cpp_before_struct_binding = ignore # ignore/add/remove/force # Add or remove space inside a non-empty '[' and ']'. sp_inside_square = ignore # ignore/add/remove/force +# Add or remove space inside '[]'. +sp_inside_square_empty = ignore # ignore/add/remove/force + # (OC) Add or remove space inside a non-empty Objective-C boxed array '@[' and # ']'. If set to ignore, sp_inside_square is used. sp_inside_square_oc_array = ignore # ignore/add/remove/force @@ -545,7 +558,7 @@ sp_square_fparen = ignore # ignore/add/remove/force # Add or remove space between ')' and '{' of function. sp_fparen_brace = ignore # ignore/add/remove/force -# Add or remove space between ')' and '{' of s function call in object +# Add or remove space between ')' and '{' of a function call in object # initialization. # # Overrides sp_fparen_brace. @@ -1289,7 +1302,7 @@ indent_oc_block_msg_from_brace = false # true/false indent_min_vbrace_open = 0 # unsigned number # Whether to add further spaces after regular indent to reach next tabstop -# when identing after virtual brace open and newline. +# when indenting after virtual brace open and newline. indent_vbrace_open_on_tabstop = false # true/false # How to indent after a brace followed by another token (not a newline). @@ -1339,11 +1352,16 @@ indent_single_after_return = false # true/false # have their own indentation). indent_ignore_asm_block = false # true/false +# Don't indent the close parenthesis of a function definition, +# if the parenthesis is on its own line. +donot_indent_func_def_close_paren = false # true/false + # # Newline adding and removing options # # Whether to collapse empty blocks between '{' and '}'. +# If true, overrides nl_inside_empty_func nl_collapse_empty_body = false # true/false # Don't split one-line braced assignments, as in 'foo_t f = { 1, 2 };'. @@ -1976,6 +1994,10 @@ nl_split_for_one_liner = false # true/false # adding a newline, as in 'while (expr) stmt;'. nl_split_while_one_liner = false # true/false +# Don't add a newline before a cpp-comment in a parameter list of a function +# call. +donot_add_nl_before_cpp_comment = false # true/false + # # Blank line options # @@ -1986,6 +2008,10 @@ nl_max = 3 # unsigned number # The maximum number of consecutive newlines in a function. nl_max_blank_in_func = 2 # unsigned number +# The number of newlines inside an empty function body. +# This option is overridden by nl_collapse_empty_body=true +nl_inside_empty_func = 0 # unsigned number + # The number of newlines before a function prototype. nl_before_func_body_proto = 0 # unsigned number @@ -2242,6 +2268,9 @@ pos_class_colon = trail # ignore/break/force/lead/trail/join/ # Related to nl_constr_colon, nl_constr_init_args and pos_constr_comma. pos_constr_colon = trail_force # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force +# The position of shift operators in wrapped expressions. +pos_shift = lead # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force + # # Line splitting options # @@ -2551,6 +2580,10 @@ align_pp_define_gap = 0 # unsigned number # Default: true align_left_shift = true # true/false +# Whether to align comma-separated statements following '<<' (as used to +# initialize Eigen matrices). +align_eigen_comma_init = true # true/false + # Whether to align text after 'asm volatile ()' colons. align_asm_colon = false # true/false @@ -3034,6 +3067,11 @@ debug_max_number_of_loops = 0 # number # 0: nothing protocol. debug_line_number_to_protocol = 0 # number +# Set the number of second(s) before terminating formatting the current file, +# 0: no timeout. +# only for linux +debug_timeout = 0 # number + # Meaning of the settings: # Ignore - do not do any changes # Add - makes sure there is 1 or more space/brace/newline/etc @@ -3086,5 +3124,5 @@ debug_line_number_to_protocol = 0 # number # `macro-close END_MESSAGE_MAP` # # -# option(s) with 'not default' value: 160 +# option(s) with 'not default' value: 161 #