Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update uncrustify config to latest version #93

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 100 additions & 16 deletions ament_uncrustify/ament_uncrustify/configuration/ament_code_style.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Uncrustify_d-0.65-225-ff0808b
# Uncrustify-0.66.1-421-95831be

#
# General options
Expand Down Expand Up @@ -53,6 +53,9 @@ utf8_force = false # false/true
# also '>>>' '<<' '>>' '%' '|'.
sp_arith = force # ignore/add/remove/force

# Add or remove space around arithmetic operator '+' and '-'. Overrides sp_arith
sp_arith_additive = force # ignore/add/remove/force

# Add or remove space around assignment operator '=', '+=', etc.
sp_assign = force # ignore/add/remove/force

Expand Down Expand Up @@ -173,6 +176,9 @@ sp_before_angle = remove # ignore/add/remove/force
# Add or remove space inside '<' and '>'.
sp_inside_angle = remove # ignore/add/remove/force

# Add or remove space between '<>' and ':'.
sp_angle_colon = ignore # ignore/add/remove/force

# Add or remove space after '<>'.
sp_after_angle = remove # ignore/add/remove/force

Expand All @@ -185,7 +191,7 @@ sp_angle_paren_empty = remove # ignore/add/remove/force
# Add or remove space between '<>' and a word as in 'List<byte> m;' or 'template <typename T> static ...'.
sp_angle_word = force # ignore/add/remove/force

# Add or remove space between '>' and '>' in '>>' (template stuff C++/C# only). Default=Add.
# Add or remove space between '>' and '>' in '>>' (template stuff). Default=Add.
sp_angle_shift = remove # ignore/add/remove/force

# Permit removal of the space between '>>' in 'foo<bar<int> >' (C++11 only). Default=False.
Expand Down Expand Up @@ -243,9 +249,16 @@ sp_before_square = remove # ignore/add/remove/force
# Add or remove space before '[]'.
sp_before_squares = remove # ignore/add/remove/force

# Add or remove space before structured bindings. Only for C++17.
sp_cpp_before_struct_binding = ignore # ignore/add/remove/force

# Add or remove space inside a non-empty '[' and ']'.
sp_inside_square = remove # ignore/add/remove/force

# Add or remove space inside a non-empty OC boxed array '@[' and ']'.
# If set to ignore, sp_inside_square is used.
sp_inside_square_oc_array = ignore # ignore/add/remove/force

# Add or remove space after ',', 'a,b' vs 'a, b'.
sp_after_comma = force # ignore/add/remove/force

Expand Down Expand Up @@ -288,9 +301,7 @@ sp_after_operator = remove # ignore/add/remove/force
# Add or remove space between the operator symbol and the open paren, as in 'operator ++('.
sp_after_operator_sym = remove # ignore/add/remove/force

# Add or remove space between the operator symbol and the open paren when the operator
# has no arguments, as in 'operator *()'.
# Have precedence of sp_after_operator_sym.
# Overrides sp_after_operator_sym when the operator has no arguments, as in 'operator *()'.
sp_after_operator_sym_empty = remove # ignore/add/remove/force

# Add or remove space after C/D cast, i.e. 'cast(int)a' vs 'cast(int) a' or '(int)a' vs '(int) a'.
Expand All @@ -314,6 +325,9 @@ sp_inside_braces_enum = ignore # ignore/add/remove/force
# Add or remove space inside struct/union '{' and '}'.
sp_inside_braces_struct = ignore # ignore/add/remove/force

# Add or remove space inside OC boxed dictionary @'{' and '}'
sp_inside_braces_oc_dict = ignore # ignore/add/remove/force

# Add or remove space after open brace in an unnamed temporary direct-list-initialization.
sp_after_type_brace_init_lst_open = ignore # ignore/add/remove/force

Expand Down Expand Up @@ -366,6 +380,9 @@ sp_square_fparen = remove # ignore/add/remove/force
# Add or remove space between ')' and '{' of function.
sp_fparen_brace = force # ignore/add/remove/force

# Add or remove space between ')' and '{' of function call in object initialization. Overrides sp_fparen_brace.
sp_fparen_brace_initializer = force # ignore/add/remove/force

# Java: Add or remove space between ')' and '{{' of double brace initializer.
sp_fparen_dbrace = ignore # ignore/add/remove/force

Expand All @@ -380,6 +397,13 @@ sp_func_call_paren_empty = ignore # ignore/add/remove/force
# You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file.
sp_func_call_user_paren = ignore # ignore/add/remove/force

# Add or remove space inside user function '(' and ')'
# You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file.
sp_func_call_user_inside_fparen = ignore # ignore/add/remove/force

# Add or remove space between nested parens with user functions: '((' vs ') )'You need to set a keyword to be a user function, like this: 'set func_call_user _' in the config file.
sp_func_call_user_paren_paren = ignore # ignore/add/remove/force

# Add or remove space between a constructor/destructor and the open paren.
sp_func_class_paren = remove # ignore/add/remove/force

Expand All @@ -405,6 +429,10 @@ sp_after_throw = ignore # ignore/add/remove/force
# If set to ignore, sp_before_sparen is used.
sp_catch_paren = ignore # ignore/add/remove/force

# Add or remove space between '@catch' and '(' in '@catch (something) { }'
# If set to ignore, sp_catch_paren is used.
sp_oc_catch_paren = ignore # ignore/add/remove/force

# Add or remove space between 'version' and '(' in 'version (something) { }' (D language)
# If set to ignore, sp_before_sparen is used.
sp_version_paren = ignore # ignore/add/remove/force
Expand Down Expand Up @@ -437,9 +465,17 @@ sp_brace_typedef = force # ignore/add/remove/force
# Add or remove space between 'catch' and '{' if on the same line.
sp_catch_brace = force # ignore/add/remove/force

# Add or remove space between '@catch' and '{' if on the same line.
# If set to ignore, sp_catch_brace is used.
sp_oc_catch_brace = ignore # ignore/add/remove/force

# Add or remove space between '}' and 'catch' if on the same line.
sp_brace_catch = force # ignore/add/remove/force

# Add or remove space between '}' and '@catch' if on the same line.
# If set to ignore, sp_brace_catch is used.
sp_oc_brace_catch = ignore # ignore/add/remove/force

# Add or remove space between 'finally' and '{' if on the same line.
sp_finally_brace = force # ignore/add/remove/force

Expand Down Expand Up @@ -618,11 +654,11 @@ sp_after_newop_paren = ignore # ignore/add/remove/force
sp_inside_newop_paren = ignore # ignore/add/remove/force

# Controls the space after open paren of the new operator: 'new(foo) BAR'.
# Have precedence of sp_inside_newop_paren.
# Overrides sp_inside_newop_paren.
sp_inside_newop_paren_open = ignore # ignore/add/remove/force

# Controls the space before close paren of the new operator: 'new(foo) BAR'.
# Have precedence of sp_inside_newop_paren.
# Overrides sp_inside_newop_paren.
sp_inside_newop_paren_close = ignore # ignore/add/remove/force

# Controls the spaces before a trailing or embedded comment.
Expand Down Expand Up @@ -785,6 +821,10 @@ indent_func_throw = 0 # unsigned number
# Usually set to 0, 1, or indent_columns.
indent_member = 0 # unsigned number

# setting to true will indent lines broken at '.' or '->' by a single indent
# UO_indent_member option will not be effective if this is set to true.
indent_member_single = false # false/true

# Spaces to indent single line ('//') comments on lines before code.
indent_sing_line_comments = 0 # unsigned number

Expand All @@ -796,7 +836,7 @@ indent_relative_single_line_comments = false # false/true
# Usually 0 or indent_columns.
indent_switch_case = 2 # unsigned number

# Whether to indent preproccesor statements inside of switch statements.
# Whether to indent preprocessor statements inside of switch statements.
indent_switch_pp = true # false/true

# Spaces to shift the 'case' line, without affecting any other lines
Expand Down Expand Up @@ -862,6 +902,10 @@ indent_preserve_sql = false # false/true
# If False or the '=' is followed by a newline, the next line is indent one tab.
indent_align_assign = false # false/true

# Align continued statements at the '('. Default=True
# If FALSE or the '(' is not followed by a newline, the next line indent is one tab.
indent_align_paren = true # false/true

# Indent OC blocks at brace level instead of usual rules.
indent_oc_block = false # false/true

Expand Down Expand Up @@ -891,7 +935,7 @@ indent_oc_block_msg_from_caret = false # false/true
# If indent_oc_block_msg and this option are on, blocks will be indented from where the brace is.
indent_oc_block_msg_from_brace = false # false/true

# When identing after virtual brace open and newline add further spaces to reach this min. indent.
# When indenting after virtual brace open and newline add further spaces to reach this min. indent.
indent_min_vbrace_open = 0 # unsigned number

# True: When identing after virtual brace open and newline add further spaces after regular indent to reach next tabstop.
Expand All @@ -912,6 +956,15 @@ indent_using_block = true # false/true
# 2: When the `:` is a continuation, indent it under `?`
indent_ternary_operator = 0 # unsigned number

# If true, the indentation of the chunks after a `return new` sequence will be set at return indentation column.
indent_off_after_return_new = false # false/true

# If true, the tokens after return are indented with regular single indentation.By default (false) the indentation is after the return token.
indent_single_after_return = false # false/true

# If true, ignore indent and align for asm blocks as they have their own indentation.
indent_ignore_asm_block = false # false/true

#
# Newline adding and removing options
#
Expand All @@ -931,6 +984,9 @@ nl_enum_leave_one_liners = true # false/true
# Don't split one-line get or set functions.
nl_getset_leave_one_liners = true # false/true

# Don't split one-line get or set functions.
nl_cs_property_leave_one_liners = false # false/true

# Don't split one-line function definitions - 'int foo() { return 0; }'.
nl_func_leave_one_liners = true # false/true

Expand Down Expand Up @@ -967,6 +1023,9 @@ nl_assign_brace = ignore # ignore/add/remove/force
# Add or remove newline between '=' and '[' (D only).
nl_assign_square = ignore # ignore/add/remove/force

# Add or remove newline between '[]' and '{'.
nl_tsquare_brace = ignore # ignore/add/remove/force

# Add or remove newline after '= [' (D only). Will also affect the newline before the ']'.
nl_after_square_assign = ignore # ignore/add/remove/force

Expand All @@ -976,7 +1035,7 @@ nl_func_var_def_blk = 0 # unsigned number

# The number of newlines before a block of typedefs
# 0 = No change (default)
# the option 'nl_after_access_spec' takes preference over 'nl_typedef_blk_start'.
# is overridden by the option 'nl_after_access_spec'.
nl_typedef_blk_start = 0 # unsigned number

# The number of newlines after a block of typedefs
Expand All @@ -989,7 +1048,7 @@ nl_typedef_blk_in = 0 # unsigned number

# The number of newlines before a block of variable definitions not at the top of a function body
# 0 = No change (default)
# the option 'nl_after_access_spec' takes preference over 'nl_var_def_blk_start'.
# is overridden by the option 'nl_after_access_spec'.
nl_var_def_blk_start = 0 # unsigned number

# The number of newlines after a block of variable definitions not at the top of a function body
Expand All @@ -1002,7 +1061,7 @@ nl_var_def_blk_in = 0 # unsigned number

# Add or remove newline between a function call's ')' and '{', as in:
# list_for_each(item, &list) { }.
nl_fcall_brace = remove # ignore/add/remove/force
nl_fcall_brace = ignore # ignore/add/remove/force

# Add or remove newline between 'enum' and '{'.
nl_enum_brace = force # ignore/add/remove/force
Expand Down Expand Up @@ -1062,9 +1121,17 @@ nl_for_brace = remove # ignore/add/remove/force
# Add or remove newline between 'catch' and '{'.
nl_catch_brace = remove # ignore/add/remove/force

# Add or remove newline between '@catch' and '{'.
# If set to ignore, nl_catch_brace is used.
nl_oc_catch_brace = ignore # ignore/add/remove/force

# Add or remove newline between '}' and 'catch'.
nl_brace_catch = remove # ignore/add/remove/force

# Add or remove newline between '}' and 'catch'.
# If set to ignore, nl_brace_catch is used.
nl_oc_brace_catch = ignore # ignore/add/remove/force

# Add or remove newline between '}' and ']'.
nl_brace_square = ignore # ignore/add/remove/force

Expand Down Expand Up @@ -1174,6 +1241,9 @@ nl_func_def_paren_empty = remove # ignore/add/remove/force
# Add or remove newline between a function name and the opening '(' in the call
nl_func_call_paren = remove # ignore/add/remove/force

# Overrides nl_func_call_paren for functions with no parameters.
nl_func_call_paren_empty = remove # ignore/add/remove/force

# Add or remove newline after '(' in a function declaration.
nl_func_decl_start = ignore # ignore/add/remove/force

Expand Down Expand Up @@ -1228,6 +1298,9 @@ nl_func_decl_empty = ignore # ignore/add/remove/force
# Add or remove newline between '()' in a function definition.
nl_func_def_empty = ignore # ignore/add/remove/force

# Add or remove newline between '()' in a function call.
nl_func_call_empty = ignore # ignore/add/remove/force

# Whether to add newline after '(' in a function call if '(' and ')' are in different lines.
nl_func_call_start_multi_line = false # false/true

Expand Down Expand Up @@ -1296,6 +1369,10 @@ nl_brace_struct_var = ignore # ignore/add/remove/force
# Whether to alter newlines in '#define' macros.
nl_define_macro = false # false/true

# Whether to alter newlines between consecutive paren closes,
# The number of closing paren in a line will depend on respective open paren lines
nl_squeeze_paren_close = false # false/true

# Whether to remove blanks after '#ifxx' and '#elxx', or before '#elxx' and '#endif'. Does not affect top-level #ifdefs.
nl_squeeze_ifdef = false # false/true

Expand Down Expand Up @@ -1360,6 +1437,9 @@ nl_class_colon = ignore # ignore/add/remove/force
# Related to nl_constr_init_args, pos_constr_colon and pos_constr_comma.
nl_constr_colon = force # ignore/add/remove/force

# If true turns two liner namespace to one liner,else will make then four liners
nl_namespace_two_to_one_liner = false # false/true

# Change simple unbraced if statements into a one-liner
# 'if(b)\n i++;' => 'if(b) i++;'.
nl_create_if_one_liner = false # false/true
Expand All @@ -1372,6 +1452,9 @@ nl_create_for_one_liner = false # false/true
# 'while (i<5)\n foo(i++);' => 'while (i<5) foo(i++);'.
nl_create_while_one_liner = false # false/true

# Change simple 4,3,2 liner function def statements into a one-liner
nl_create_func_def_one_liner = false # false/true

# Change a one-liner if statement into simple unbraced if
# 'if(b) i++;' => 'if(b)\n i++;'.
nl_split_if_one_liner = false # false/true
Expand Down Expand Up @@ -1455,7 +1538,7 @@ nl_before_access_spec = 2 # unsigned number

# The number of newlines after a 'private:', 'public:', 'protected:', 'signals:' or 'slots:' label.
# 0 = No change.
# the option 'nl_after_access_spec' takes preference over 'nl_typedef_blk_start' and 'nl_var_def_blk_start'.
# Overrides 'nl_typedef_blk_start' and 'nl_var_def_blk_start'.
nl_after_access_spec = 1 # unsigned number

# The number of newlines between a function def and the function comment.
Expand Down Expand Up @@ -1574,8 +1657,8 @@ align_with_tabs = false # false/true
# Whether to bump out to the next tab when aligning.
align_on_tabstop = false # false/true

# Whether to left-align numbers.
align_number_left = false # false/true
# Whether to right-align numbers.
align_number_right = false # false/true

# Whether to keep whitespace not required for alignment.
align_keep_extra_space = false # false/true
Expand Down Expand Up @@ -2115,5 +2198,6 @@ warn_level_tabs_found_in_verbatim_string_literals = 2 # unsigned number
# `macro-open BEGIN_MESSAGE_MAP`
# `macro-close END_MESSAGE_MAP`
#
## option(s) with 'not default' value: 161
#
# option(s) with 'not default' value: 161
#