diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs')
89 files changed, 3507 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/615_nested_usings.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/615_nested_usings.cfg new file mode 100644 index 00000000..ae152fd4 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/615_nested_usings.cfg @@ -0,0 +1 @@ +indent_using_block = false diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/620_getset-brace.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/620_getset-brace.cfg new file mode 100644 index 00000000..8e5510d0 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/620_getset-brace.cfg @@ -0,0 +1,5 @@ +indent_class = true +nl_getset_leave_one_liners = true +nl_getset_brace = force +nl_property_brace = force + diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/625_where-constraints.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/625_where-constraints.cfg new file mode 100644 index 00000000..a6fa8175 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/625_where-constraints.cfg @@ -0,0 +1,4 @@ +sp_inside_angle = remove +sp_angle_shift = remove +sp_after_comma = add +indent_class = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/Issue_2705.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/Issue_2705.cfg new file mode 100644 index 00000000..0a3ecb71 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/Issue_2705.cfg @@ -0,0 +1 @@ +mod_remove_empty_return = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U-J.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U-J.cfg new file mode 100644 index 00000000..21e55d74 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U-J.cfg @@ -0,0 +1,6 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_switch_case = 4 +nl_end_of_file = force +nl_end_of_file_min = 1 +nl_before_return = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U01-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U01-Cs.cfg new file mode 100644 index 00000000..4edc0426 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U01-Cs.cfg @@ -0,0 +1,282 @@ +input_tab_size=4 +string_replace_tab_chars=true +tok_split_gte=false +disable_processing_cmt=*begin-nonstandard-formatting* +enable_processing_cmt=*end-nonstandard-formatting* +utf8_bom=remove +utf8_byte=false +utf8_force=false +indent_columns=4 +indent_with_tabs=0 +indent_cmt_with_tabs=false +indent_align_string=false +indent_braces=false +indent_braces_no_func=false +indent_braces_no_class=false +indent_braces_no_struct=false +indent_brace_parent=false +indent_cs_delegate_brace=true +indent_namespace=true +indent_extern=false +indent_class=true +indent_class_colon=false +indent_else_if=false +indent_var_def_cont=false +indent_func_call_param=true +indent_func_def_param=true +indent_func_proto_param=true +indent_func_class_param=false +indent_func_ctor_var_param=false +indent_template_param=false +indent_func_param_double=false +indent_relative_single_line_comments=false +indent_switch_case=4 +indent_case_shift=0 +indent_case_brace=0 +indent_col1_comment=false +indent_label=-4 +indent_access_spec=-4 +indent_paren_nl=false +indent_comma_paren=false +indent_bool_paren=false +indent_first_bool_expr=false +indent_square_nl=false +indent_preserve_sql=false +indent_oc_block_msg_xcode_style=true +indent_off_after_return_new=true +indent_single_after_return=true +sp_arith=add +sp_assign=add +sp_assign_default=add +sp_enum_assign=add +sp_pp_concat=remove +sp_pp_stringify=remove +sp_bool=add +sp_compare=add +sp_inside_paren=remove +sp_paren_paren=remove +sp_balance_nested_parens=false +sp_paren_brace=force +sp_after_type=ignore +sp_template_angle=remove +sp_before_angle=remove +sp_inside_angle=remove +sp_angle_paren=remove +sp_angle_paren_empty=remove +sp_angle_word=add +sp_angle_shift=remove +sp_before_sparen=force +sp_inside_sparen=remove +sp_after_sparen=add +sp_sparen_brace=force +sp_special_semi=force +sp_before_semi=remove +sp_before_semi_for=remove +sp_before_semi_for_empty=remove +sp_between_semi_for_empty=remove +sp_after_semi=add +sp_after_semi_for=force +sp_after_semi_for_empty=remove +sp_before_square=remove +sp_before_squares=remove +sp_inside_square=remove +sp_after_comma=add +sp_before_comma=ignore +sp_after_mdatype_commas=remove +sp_before_mdatype_commas=remove +sp_between_mdatype_commas=remove +sp_paren_comma=remove +sp_after_class_colon=force +sp_before_class_colon=force +sp_before_case_colon=remove +sp_after_operator=remove +sp_after_operator_sym=remove +sp_after_operator_sym_empty=remove +sp_after_cast=remove +sp_inside_paren_cast=remove +sp_cpp_cast_paren=remove +sp_sizeof_paren=remove +sp_inside_braces_enum=add +sp_inside_braces_empty=remove +sp_type_func=ignore +sp_func_proto_paren=remove +sp_func_def_paren=remove +sp_inside_fparens=remove +sp_inside_fparen=remove +sp_fparen_brace=add +sp_func_call_paren=remove +sp_func_call_paren_empty=remove +sp_func_call_user_paren=remove +sp_func_class_paren=remove +sp_return_paren=add +sp_defined_paren=remove +sp_throw_paren=add +sp_catch_paren=add +sp_brace_typedef=add +sp_getset_brace=add +sp_after_dc=remove +sp_not=remove +sp_inv=remove +sp_addr=remove +sp_member=remove +sp_deref=remove +sp_sign=remove +sp_incdec=remove +sp_before_nl_cont=add +sp_after_oc_scope=force +sp_after_oc_colon=remove +sp_before_oc_colon=remove +sp_after_oc_dict_colon=force +sp_before_oc_dict_colon=remove +sp_after_send_oc_colon=force +sp_before_send_oc_colon=remove +sp_after_oc_type=remove +sp_after_oc_return_type=remove +sp_after_oc_at_sel=remove +sp_inside_oc_at_sel_parens=remove +sp_cond_colon=add +sp_cond_question=add +sp_case_label=ignore +sp_after_new=force +sp_between_new_paren=remove +sp_skip_vbrace_tokens=true +align_keep_tabs=false +align_with_tabs=false +align_on_tabstop=false +align_number_right=false +align_func_params=false +align_same_func_call_params=false +align_var_def_colon=false +align_var_def_attribute=false +align_var_def_inline=false +align_right_cmt_mix=false +align_on_operator=false +align_mix_var_proto=false +align_single_line_func=false +align_single_line_brace=false +align_nl_cont=false +align_left_shift=false +nl_collapse_empty_body=false +nl_assign_leave_one_liners=true +nl_class_leave_one_liners=true +nl_enum_leave_one_liners=true +nl_getset_leave_one_liners=true +nl_func_leave_one_liners=true +nl_cpp_lambda_leave_one_liners=true +nl_if_leave_one_liners=false +nl_oc_msg_leave_one_liner=true +nl_start_of_file=remove +nl_end_of_file=force +nl_end_of_file_min=1 +nl_assign_brace=force +nl_enum_brace=force +nl_struct_brace=force +nl_union_brace=force +nl_if_brace=force +nl_brace_else=force +nl_else_brace=force +nl_else_if=remove +nl_brace_finally=force +nl_finally_brace=force +nl_try_brace=force +nl_getset_brace=force +nl_for_brace=force +nl_catch_brace=force +nl_brace_catch=force +nl_while_brace=force +nl_using_brace=force +nl_brace_brace=ignore +nl_do_brace=force +nl_brace_while=force +nl_switch_brace=force +nl_multi_line_cond=false +nl_before_case=false +nl_after_case=false +nl_case_colon_brace=force +nl_namespace_brace=force +nl_template_class=ignore +nl_fdef_brace=force +nl_after_semicolon=false +nl_after_brace_open=false +nl_after_brace_open_cmt=false +nl_after_vbrace_open=false +nl_after_vbrace_open_empty=false +nl_after_brace_close=false +nl_after_vbrace_close=false +nl_squeeze_ifdef=false +nl_ds_struct_enum_cmt=false +nl_ds_struct_enum_close_brace=false +nl_create_if_one_liner=false +nl_create_for_one_liner=false +nl_create_while_one_liner=false +ls_for_split_full=false +ls_func_split_full=false +nl_max=3 +nl_after_func_body=2 +nl_after_multiline_comment=false +nl_property_brace=force +eat_blanks_after_open_brace=true +eat_blanks_before_close_brace=true +nl_after_return=false +mod_full_brace_if_chain=false +mod_paren_on_return=ignore +mod_pawn_semicolon=false +mod_full_paren_if_bool=false +mod_remove_extra_semicolon=true +mod_move_case_break=false +mod_remove_empty_return=true +cmt_indent_multi=false +cmt_c_group=false +cmt_c_nl_start=false +cmt_c_nl_end=false +cmt_cpp_group=false +cmt_cpp_nl_start=false +cmt_cpp_nl_end=false +cmt_cpp_to_c=false +cmt_star_cont=false +cmt_multi_check_last=false +cmt_insert_before_preproc=false +pp_space=ignore +use_options_overriding_for_qt_macros=false +warn_level_tabs_found_in_verbatim_string_literals=1 +# blocked by https://sourceforge.net/p/uncrustify/bugs/619/ +# can be turned back on at any time +#mod_add_long_ifdef_else_comment=8 +#mod_add_long_ifdef_endif_comment=8 +mod_add_long_ifdef_else_comment=0 +mod_add_long_ifdef_endif_comment=0 + + + +# Setting this 'false' will cause an extra tab to be added to function call args from an assignment: +# +# x = o.Func2(a, b, +# y); +# o.Func2(a, b, +# y); +# +# ...but setting it 'true' is often worse: +# +# ExtraReallyLongType reallyLongVariableName = someTest +# ? someTrueExpr +# : someFalseExpr +# +# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or, +# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did. +# (currently unreported) +indent_align_assign=false + +# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space +# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++ +# comment line at the same level of indentation. +# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us +# (test using Runtime/Allocator/BucketAllocator.h) +# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further +sp_cmt_cpp_start=ignore + +# https://sourceforge.net/p/uncrustify/bugs/619/ +sp_endif_cmt=ignore + +# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example: +# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp +#nl_cpp_ldef_brace=force diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U02-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U02-Cs.cfg new file mode 100644 index 00000000..c7d6aeda --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U02-Cs.cfg @@ -0,0 +1,8 @@ +input_tab_size = 4 +sp_skip_vbrace_tokens = true +indent_columns = 4 +indent_with_tabs = 0 +indent_namespace = true +indent_class = true +nl_end_of_file = force +nl_end_of_file_min = 1 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U03-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U03-Cs.cfg new file mode 100644 index 00000000..24961370 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U03-Cs.cfg @@ -0,0 +1,4 @@ +indent_columns = 4 +indent_with_tabs = 0 +nl_try_brace = force +nl_brace_catch = force diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U04-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U04-Cs.cfg new file mode 100644 index 00000000..b331f6f8 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U04-Cs.cfg @@ -0,0 +1,10 @@ +input_tab_size = 4 +sp_func_def_paren = remove +sp_func_call_paren = remove +indent_columns = 4 +indent_with_tabs = 0 +indent_namespace = true +indent_class = true +nl_class_leave_one_liners = true +nl_after_func_body = 2 +eat_blanks_before_close_brace = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U06-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U06-Cs.cfg new file mode 100644 index 00000000..03c2c765 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U06-Cs.cfg @@ -0,0 +1,6 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_cs_delegate_brace = true +indent_class = true +nl_end_of_file = force +nl_end_of_file_min = 1 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U07-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U07-Cs.cfg new file mode 100644 index 00000000..62ee120e --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U07-Cs.cfg @@ -0,0 +1,283 @@ +input_tab_size=4 +string_replace_tab_chars=true +tok_split_gte=false +disable_processing_cmt=*begin-nonstandard-formatting* +enable_processing_cmt=*end-nonstandard-formatting* +utf8_bom=remove +utf8_byte=false +utf8_force=false +indent_columns=4 +indent_with_tabs=0 +indent_cmt_with_tabs=false +indent_align_string=false +indent_braces=false +indent_braces_no_func=false +indent_braces_no_class=false +indent_braces_no_struct=false +indent_brace_parent=false +indent_cs_delegate_brace=true +indent_namespace=true +indent_extern=false +indent_class=true +indent_class_colon=false +indent_else_if=false +indent_var_def_cont=false +indent_func_call_param=true +indent_func_def_param=true +indent_func_proto_param=true +indent_func_class_param=false +indent_func_ctor_var_param=false +indent_template_param=false +indent_func_param_double=false +indent_relative_single_line_comments=false +indent_switch_case=4 +indent_case_shift=0 +indent_case_brace=0 +indent_col1_comment=false +indent_label=-4 +indent_access_spec=-4 +indent_paren_nl=false +indent_comma_paren=false +indent_bool_paren=false +indent_first_bool_expr=false +indent_square_nl=false +indent_preserve_sql=false +indent_oc_block_msg_xcode_style=true +indent_off_after_return_new=true +indent_single_after_return=true +sp_arith=add +sp_assign=add +sp_assign_default=add +sp_enum_assign=add +sp_pp_concat=remove +sp_pp_stringify=remove +sp_bool=add +sp_compare=add +sp_inside_paren=remove +sp_paren_paren=remove +sp_balance_nested_parens=false +sp_paren_brace=force +sp_after_type=ignore +sp_template_angle=remove +sp_before_angle=remove +sp_inside_angle=remove +sp_angle_paren=remove +sp_angle_paren_empty=remove +sp_angle_word=add +sp_angle_shift=remove +sp_before_sparen=force +sp_inside_sparen=remove +sp_after_sparen=add +sp_sparen_brace=force +sp_special_semi=force +sp_before_semi=remove +sp_before_semi_for=remove +sp_before_semi_for_empty=remove +sp_between_semi_for_empty=remove +sp_after_semi=add +sp_after_semi_for=force +sp_after_semi_for_empty=remove +sp_before_square=remove +sp_before_squares=remove +sp_inside_square=remove +sp_after_comma=add +sp_before_comma=ignore +sp_after_mdatype_commas=remove +sp_before_mdatype_commas=remove +sp_between_mdatype_commas=remove +sp_paren_comma=remove +sp_after_class_colon=force +sp_before_class_colon=force +sp_before_case_colon=remove +sp_after_operator=remove +sp_after_operator_sym=remove +sp_after_operator_sym_empty=remove +sp_after_cast=remove +sp_inside_paren_cast=remove +sp_cpp_cast_paren=remove +sp_sizeof_paren=remove +sp_inside_braces_enum=add +sp_inside_braces_empty=remove +sp_type_func=ignore +sp_func_proto_paren=remove +sp_func_def_paren=remove +sp_inside_fparens=remove +sp_inside_fparen=remove +sp_fparen_brace=add +sp_func_call_paren=remove +sp_func_call_paren_empty=remove +sp_func_call_user_paren=remove +sp_func_class_paren=remove +sp_return_paren=add +sp_defined_paren=remove +sp_throw_paren=add +sp_catch_paren=add +sp_brace_typedef=add +sp_getset_brace=add +sp_after_dc=remove +sp_not=remove +sp_inv=remove +sp_addr=remove +sp_member=remove +sp_deref=remove +sp_sign=remove +sp_incdec=remove +sp_before_nl_cont=add +sp_after_oc_scope=force +sp_after_oc_colon=remove +sp_before_oc_colon=remove +sp_after_oc_dict_colon=force +sp_before_oc_dict_colon=remove +sp_after_send_oc_colon=force +sp_before_send_oc_colon=remove +sp_after_oc_type=remove +sp_after_oc_return_type=remove +sp_after_oc_at_sel=remove +sp_inside_oc_at_sel_parens=remove +sp_cond_colon=add +sp_cond_question=add +sp_case_label=ignore +sp_after_new=force +sp_between_new_paren=remove +sp_skip_vbrace_tokens=true +align_keep_tabs=false +align_with_tabs=false +align_on_tabstop=false +align_number_right=false +align_func_params=false +align_same_func_call_params=false +align_var_def_colon=false +align_var_def_attribute=false +align_var_def_inline=false +align_right_cmt_mix=false +align_on_operator=false +align_mix_var_proto=false +align_single_line_func=false +align_single_line_brace=false +align_nl_cont=false +align_left_shift=false +nl_collapse_empty_body=false +nl_assign_leave_one_liners=true +nl_class_leave_one_liners=true +nl_enum_leave_one_liners=true +nl_getset_leave_one_liners=true +nl_func_leave_one_liners=true +nl_cpp_lambda_leave_one_liners=true +nl_if_leave_one_liners=false +nl_oc_msg_leave_one_liner=true +nl_start_of_file=remove +nl_end_of_file=force +nl_end_of_file_min=1 +nl_assign_brace=force +nl_enum_brace=force +nl_struct_brace=force +nl_union_brace=force +nl_if_brace=force +nl_brace_else=force +nl_else_brace=force +nl_else_if=remove +nl_brace_finally=force +nl_finally_brace=force +nl_try_brace=force +nl_getset_brace=force +nl_for_brace=force +nl_catch_brace=force +nl_brace_catch=force +nl_while_brace=force +nl_using_brace=force +nl_brace_brace=ignore +nl_do_brace=force +nl_brace_while=force +nl_switch_brace=force +nl_multi_line_cond=false +nl_before_case=false +nl_after_case=false +nl_case_colon_brace=force +nl_namespace_brace=force +nl_template_class=ignore +nl_class_brace=force +nl_fdef_brace=force +nl_after_semicolon=false +nl_after_brace_open=false +nl_after_brace_open_cmt=false +nl_after_vbrace_open=false +nl_after_vbrace_open_empty=false +nl_after_brace_close=false +nl_after_vbrace_close=false +nl_squeeze_ifdef=false +nl_ds_struct_enum_cmt=false +nl_ds_struct_enum_close_brace=false +nl_create_if_one_liner=false +nl_create_for_one_liner=false +nl_create_while_one_liner=false +ls_for_split_full=false +ls_func_split_full=false +nl_max=3 +nl_after_multiline_comment=false +nl_property_brace=force +eat_blanks_after_open_brace=true +eat_blanks_before_close_brace=true +nl_after_return=false +mod_full_brace_if_chain=false +mod_paren_on_return=ignore +mod_pawn_semicolon=false +mod_full_paren_if_bool=false +mod_remove_extra_semicolon=true +mod_move_case_break=false +mod_remove_empty_return=true +cmt_indent_multi=false +cmt_c_group=false +cmt_c_nl_start=false +cmt_c_nl_end=false +cmt_cpp_group=false +cmt_cpp_nl_start=false +cmt_cpp_nl_end=false +cmt_cpp_to_c=false +cmt_star_cont=false +cmt_multi_check_last=false +cmt_insert_before_preproc=false +pp_space=ignore +use_options_overriding_for_qt_macros=false +warn_level_tabs_found_in_verbatim_string_literals=1 + +# blocked by https://sourceforge.net/p/uncrustify/bugs/619/ +# can be turned back on at any time +mod_add_long_ifdef_else_comment=0 +mod_add_long_ifdef_endif_comment=0 + + + +# Setting this 'false' will cause an extra tab to be added to function call args from an assignment: +# +# x = o.Func2(a, b, +# y); +# o.Func2(a, b, +# y); +# +# ...but setting it 'true' is often worse: +# +# ExtraReallyLongType reallyLongVariableName = someTest +# ? someTrueExpr +# : someFalseExpr +# +# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or, +# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did. +# (currently unreported) +indent_align_assign=false + +# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space +# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++ +# comment line at the same level of indentation. +# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us +# (test using Runtime/Allocator/BucketAllocator.h) +# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further +#sp_cmt_cpp_start=add +sp_cmt_cpp_start=ignore + +# https://sourceforge.net/p/uncrustify/bugs/619/ +#sp_endif_cmt=force +sp_endif_cmt=ignore + +# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example: +# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp +#nl_cpp_ldef_brace=force diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U08-Cpp.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U08-Cpp.cfg new file mode 100644 index 00000000..1a8d9ead --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U08-Cpp.cfg @@ -0,0 +1,2 @@ +sp_func_proto_paren = remove +sp_before_byref = remove diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U08-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U08-Cs.cfg new file mode 100644 index 00000000..2378cb43 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U08-Cs.cfg @@ -0,0 +1,282 @@ +input_tab_size=4 +string_replace_tab_chars=true +tok_split_gte=false +disable_processing_cmt=*begin-nonstandard-formatting* +enable_processing_cmt=*end-nonstandard-formatting* +utf8_bom=remove +utf8_byte=false +utf8_force=false +indent_columns=4 +indent_with_tabs=0 +indent_cmt_with_tabs=false +indent_align_string=false +indent_braces=false +indent_braces_no_func=false +indent_braces_no_class=false +indent_braces_no_struct=false +indent_brace_parent=false +indent_cs_delegate_brace=true +indent_namespace=true +indent_extern=false +indent_class=true +indent_class_colon=false +indent_else_if=false +indent_var_def_cont=false +indent_func_call_param=true +indent_func_def_param=true +indent_func_proto_param=true +indent_func_class_param=false +indent_func_ctor_var_param=false +indent_template_param=false +indent_func_param_double=false +indent_relative_single_line_comments=false +indent_switch_case=4 +indent_case_shift=0 +indent_case_brace=0 +indent_col1_comment=false +indent_label=-4 +indent_access_spec=-4 +indent_paren_nl=false +indent_comma_paren=false +indent_bool_paren=false +indent_first_bool_expr=false +indent_square_nl=false +indent_preserve_sql=false +indent_oc_block_msg_xcode_style=true +indent_off_after_return_new=true +indent_single_after_return=true +sp_arith=add +sp_assign=add +sp_assign_default=add +sp_enum_assign=add +sp_pp_concat=remove +sp_pp_stringify=remove +sp_bool=add +sp_compare=add +sp_inside_paren=remove +sp_paren_paren=remove +sp_balance_nested_parens=false +sp_paren_brace=force +sp_after_type=remove +sp_template_angle=remove +sp_before_angle=remove +sp_inside_angle=remove +sp_angle_paren=remove +sp_angle_paren_empty=remove +sp_angle_word=add +sp_angle_shift=remove +sp_before_sparen=force +sp_inside_sparen=remove +sp_after_sparen=add +sp_sparen_brace=force +sp_special_semi=force +sp_before_semi=remove +sp_before_semi_for=remove +sp_before_semi_for_empty=remove +sp_between_semi_for_empty=remove +sp_after_semi=add +sp_after_semi_for=force +sp_after_semi_for_empty=remove +sp_before_square=remove +sp_before_squares=remove +sp_inside_square=remove +sp_after_comma=add +sp_before_comma=ignore +sp_after_mdatype_commas=remove +sp_before_mdatype_commas=remove +sp_between_mdatype_commas=remove +sp_paren_comma=remove +sp_after_class_colon=force +sp_before_class_colon=force +sp_before_case_colon=remove +sp_after_operator=remove +sp_after_operator_sym=remove +sp_after_operator_sym_empty=remove +sp_after_cast=remove +sp_inside_paren_cast=remove +sp_cpp_cast_paren=remove +sp_sizeof_paren=remove +sp_inside_braces_enum=add +sp_inside_braces_empty=remove +sp_type_func=ignore +sp_func_proto_paren=remove +sp_func_def_paren=remove +sp_inside_fparens=remove +sp_inside_fparen=remove +sp_fparen_brace=add +sp_func_call_paren=remove +sp_func_call_paren_empty=remove +sp_func_call_user_paren=remove +sp_func_class_paren=remove +sp_return_paren=add +sp_defined_paren=remove +sp_throw_paren=add +sp_catch_paren=add +sp_brace_typedef=add +sp_getset_brace=add +sp_after_dc=remove +sp_not=remove +sp_inv=remove +sp_addr=remove +sp_member=remove +sp_deref=remove +sp_sign=remove +sp_incdec=remove +sp_before_nl_cont=add +sp_after_oc_scope=force +sp_after_oc_colon=remove +sp_before_oc_colon=remove +sp_after_oc_dict_colon=force +sp_before_oc_dict_colon=remove +sp_after_send_oc_colon=force +sp_before_send_oc_colon=remove +sp_after_oc_type=remove +sp_after_oc_return_type=remove +sp_after_oc_at_sel=remove +sp_inside_oc_at_sel_parens=remove +sp_cond_colon=add +sp_cond_question=add +sp_case_label=ignore +sp_after_new=force +sp_between_new_paren=remove +sp_skip_vbrace_tokens=true +align_keep_tabs=false +align_with_tabs=false +align_on_tabstop=false +align_number_right=false +align_func_params=false +align_same_func_call_params=false +align_var_def_colon=false +align_var_def_attribute=false +align_var_def_inline=false +align_right_cmt_mix=false +align_on_operator=false +align_mix_var_proto=false +align_single_line_func=false +align_single_line_brace=false +align_nl_cont=false +align_left_shift=false +nl_collapse_empty_body=false +nl_assign_leave_one_liners=true +nl_class_leave_one_liners=true +nl_enum_leave_one_liners=true +nl_getset_leave_one_liners=true +nl_func_leave_one_liners=true +nl_cpp_lambda_leave_one_liners=true +nl_if_leave_one_liners=false +nl_oc_msg_leave_one_liner=true +nl_start_of_file=remove +nl_end_of_file=force +nl_end_of_file_min=1 +nl_assign_brace=force +nl_enum_brace=force +nl_struct_brace=force +nl_union_brace=force +nl_if_brace=force +nl_brace_else=force +nl_else_brace=force +nl_else_if=remove +nl_brace_finally=force +nl_finally_brace=force +nl_try_brace=force +nl_getset_brace=force +nl_for_brace=force +nl_catch_brace=force +nl_brace_catch=force +nl_while_brace=force +nl_using_brace=force +nl_brace_brace=ignore +nl_do_brace=force +nl_brace_while=force +nl_switch_brace=force +nl_multi_line_cond=false +nl_before_case=false +nl_after_case=false +nl_case_colon_brace=force +nl_namespace_brace=force +nl_template_class=ignore +nl_class_brace=force +nl_fdef_brace=force +nl_after_semicolon=false +nl_after_brace_open=false +nl_after_brace_open_cmt=false +nl_after_vbrace_open=false +nl_after_vbrace_open_empty=false +nl_after_brace_close=false +nl_after_vbrace_close=false +nl_squeeze_ifdef=false +nl_ds_struct_enum_cmt=false +nl_ds_struct_enum_close_brace=false +nl_create_if_one_liner=false +nl_create_for_one_liner=false +nl_create_while_one_liner=false +ls_for_split_full=false +ls_func_split_full=false +nl_max=3 +nl_after_func_body=2 +nl_after_multiline_comment=false +nl_property_brace=force +eat_blanks_after_open_brace=true +eat_blanks_before_close_brace=true +nl_after_return=false +mod_paren_on_return=ignore +mod_pawn_semicolon=false +mod_full_paren_if_bool=false +mod_remove_extra_semicolon=true +mod_move_case_break=false +mod_remove_empty_return=true +cmt_indent_multi=false +cmt_c_group=false +cmt_c_nl_start=false +cmt_c_nl_end=false +cmt_cpp_group=false +cmt_cpp_nl_start=false +cmt_cpp_nl_end=false +cmt_cpp_to_c=false +cmt_star_cont=false +cmt_multi_check_last=false +cmt_insert_before_preproc=false +pp_space=ignore +use_options_overriding_for_qt_macros=false +warn_level_tabs_found_in_verbatim_string_literals=1 +# blocked by https://sourceforge.net/p/uncrustify/bugs/619/ +# can be turned back on at any time +mod_add_long_ifdef_else_comment=0 +mod_add_long_ifdef_endif_comment=0 + + + +# Setting this 'false' will cause an extra tab to be added to function call args from an assignment: +# +# x = o.Func2(a, b, +# y); +# o.Func2(a, b, +# y); +# +# ...but setting it 'true' is often worse: +# +# ExtraReallyLongType reallyLongVariableName = someTest +# ? someTrueExpr +# : someFalseExpr +# +# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or, +# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did. +# (currently unreported) +indent_align_assign=false + +# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space +# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++ +# comment line at the same level of indentation. +# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us +# (test using Runtime/Allocator/BucketAllocator.h) +# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further +#sp_cmt_cpp_start=add +sp_cmt_cpp_start=ignore + +# https://sourceforge.net/p/uncrustify/bugs/619/ +#sp_endif_cmt=force +sp_endif_cmt=ignore + +# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example: +# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp +#nl_cpp_ldef_brace=force diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U09-Cpp.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U09-Cpp.cfg new file mode 100644 index 00000000..e8b4846a --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U09-Cpp.cfg @@ -0,0 +1,2 @@ +nl_end_of_file = force +nl_end_of_file_min = 1 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U09-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U09-Cs.cfg new file mode 100644 index 00000000..d74080d2 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U09-Cs.cfg @@ -0,0 +1,3 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_cs_delegate_brace = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U10-Cpp.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U10-Cpp.cfg new file mode 100644 index 00000000..76c1c8c3 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U10-Cpp.cfg @@ -0,0 +1,6 @@ +sp_func_def_paren = remove +sp_after_send_oc_colon = force +sp_cond_question = add +indent_columns = 4 +indent_with_tabs = 0 +nl_after_func_body = 2 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U10-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U10-Cs.cfg new file mode 100644 index 00000000..42254ddb --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U10-Cs.cfg @@ -0,0 +1,2 @@ +sp_inside_fparen = remove +indent_columns = 4 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U11-Cpp.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U11-Cpp.cfg new file mode 100644 index 00000000..07ba9e26 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U11-Cpp.cfg @@ -0,0 +1,4 @@ +sp_before_sparen = force +sp_after_send_oc_colon = force +indent_columns = 4 +indent_with_tabs = 0 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U11-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U11-Cs.cfg new file mode 100644 index 00000000..70557c46 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U11-Cs.cfg @@ -0,0 +1,4 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_class = true +indent_single_after_return = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U12-Cpp.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U12-Cpp.cfg new file mode 100644 index 00000000..581594ac --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U12-Cpp.cfg @@ -0,0 +1,5 @@ +sp_after_cast = remove +sp_func_def_paren = remove +sp_func_call_paren = remove +indent_columns = 4 +indent_with_tabs = 0 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U13-Cpp.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U13-Cpp.cfg new file mode 100644 index 00000000..162b13d4 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U13-Cpp.cfg @@ -0,0 +1,3 @@ +input_tab_size = 4 +indent_with_tabs = 0 +pp_ignore_define_body = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U13-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U13-Cs.cfg new file mode 100644 index 00000000..75f78b42 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U13-Cs.cfg @@ -0,0 +1 @@ +indent_columns = 4 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U14-Cpp.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U14-Cpp.cfg new file mode 100644 index 00000000..967ea74d --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U14-Cpp.cfg @@ -0,0 +1 @@ +sp_func_proto_paren = remove diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U15-Cpp.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U15-Cpp.cfg new file mode 100644 index 00000000..0d78de45 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U15-Cpp.cfg @@ -0,0 +1,2 @@ +indent_columns = 4 +indent_with_tabs = 0 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U15-Cs.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U15-Cs.cfg new file mode 100644 index 00000000..5a700342 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U15-Cs.cfg @@ -0,0 +1,3 @@ +indent_columns = 4 +indent_class = true +nl_class_leave_one_liners = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U24-Cpp.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U24-Cpp.cfg new file mode 100644 index 00000000..bc46ae54 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/U24-Cpp.cfg @@ -0,0 +1,3 @@ +input_tab_size = 4 +indent_columns = 4 +pp_ignore_define_body = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-11095.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-11095.cfg new file mode 100644 index 00000000..f5cc4ceb --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-11095.cfg @@ -0,0 +1,319 @@ +input_tab_size=4 +string_replace_tab_chars=true +tok_split_gte=false +disable_processing_cmt=*begin-nonstandard-formatting* +enable_processing_cmt=*end-nonstandard-formatting* +utf8_bom=remove +utf8_byte=false +utf8_force=false +indent_columns=4 +indent_with_tabs=0 +indent_cmt_with_tabs=false +indent_align_string=false +indent_braces=false +indent_braces_no_func=false +indent_braces_no_class=false +indent_braces_no_struct=false +indent_brace_parent=false +indent_cs_delegate_brace=true +indent_namespace=true +indent_extern=false +indent_class=true +indent_class_colon=false +indent_else_if=false +indent_var_def_cont=false +indent_func_call_param=true +indent_func_def_param=true +indent_func_proto_param=true +indent_func_class_param=false +indent_func_ctor_var_param=false +indent_template_param=false +indent_func_param_double=false +indent_relative_single_line_comments=false +indent_switch_case=4 +indent_case_shift=0 +indent_case_brace=0 +indent_col1_comment=false +indent_label=-4 +indent_access_spec=-4 +indent_paren_nl=false +indent_comma_paren=false +indent_bool_paren=false +indent_first_bool_expr=false +indent_square_nl=false +indent_preserve_sql=false +indent_align_paren=false +indent_oc_block_msg_xcode_style=true +indent_off_after_return_new=true +indent_single_after_return=true +sp_arith=add +sp_assign=add +sp_assign_default=add +sp_enum_assign=add +sp_pp_concat=remove +sp_pp_stringify=remove +sp_bool=add +sp_compare=add +sp_inside_paren=remove +sp_paren_paren=remove +sp_balance_nested_parens=false +sp_paren_brace=force +sp_after_type=ignore +sp_template_angle=remove +sp_before_angle=remove +sp_inside_angle=remove +sp_angle_paren=remove +sp_angle_paren_empty=remove +sp_angle_word=add +sp_angle_shift=remove +sp_before_sparen=force +sp_inside_sparen=remove +sp_after_sparen=add +sp_sparen_brace=force +sp_special_semi=force +sp_before_semi=remove +sp_before_semi_for=remove +sp_before_semi_for_empty=remove +sp_between_semi_for_empty=remove +sp_after_semi=add +sp_after_semi_for=force +sp_after_semi_for_empty=remove +sp_before_square=remove +sp_before_squares=remove +sp_inside_square=remove +sp_after_comma=add +sp_before_comma=ignore +sp_after_mdatype_commas=remove +sp_before_mdatype_commas=remove +sp_between_mdatype_commas=remove +sp_paren_comma=remove +sp_after_class_colon=force +sp_before_class_colon=force +sp_before_case_colon=remove +sp_after_operator=remove +sp_after_operator_sym=remove +sp_after_operator_sym_empty=remove +sp_after_cast=remove +sp_inside_paren_cast=remove +sp_cpp_cast_paren=remove +sp_sizeof_paren=remove +sp_inside_braces_enum=add +sp_inside_braces_empty=remove +sp_type_func=ignore +sp_func_proto_paren=remove +sp_func_def_paren=remove +sp_inside_fparens=remove +sp_inside_fparen=remove +sp_fparen_brace=add +sp_func_call_paren=remove +sp_func_call_paren_empty=remove +sp_func_call_user_paren=remove +sp_func_class_paren=remove +sp_return_paren=add +sp_defined_paren=remove +sp_throw_paren=add +sp_catch_paren=add +sp_brace_typedef=add +sp_getset_brace=add +sp_after_dc=remove +sp_not=remove +sp_inv=remove +sp_addr=remove +sp_member=remove +sp_deref=remove +sp_sign=remove +sp_incdec=remove +sp_before_nl_cont=add +sp_after_oc_scope=force +sp_after_oc_colon=remove +sp_before_oc_colon=remove +sp_after_oc_dict_colon=force +sp_before_oc_dict_colon=remove +sp_after_send_oc_colon=force +sp_before_send_oc_colon=remove +sp_after_oc_type=remove +sp_after_oc_return_type=remove +sp_after_oc_at_sel=remove +sp_inside_oc_at_sel_parens=remove +sp_cond_colon=add +sp_cond_question=add +sp_case_label=ignore +sp_after_new=force +sp_between_new_paren=remove +sp_skip_vbrace_tokens=true +align_keep_tabs=false +align_with_tabs=false +align_on_tabstop=false +align_number_right=false +align_func_params=false +align_same_func_call_params=false +align_var_def_colon=false +align_var_def_attribute=false +align_var_def_inline=false +align_right_cmt_mix=false +align_on_operator=false +align_mix_var_proto=false +align_single_line_func=false +align_single_line_brace=false +align_nl_cont=false +align_left_shift=false +nl_collapse_empty_body=false +nl_assign_leave_one_liners=true +nl_class_leave_one_liners=true +nl_enum_leave_one_liners=true +nl_getset_leave_one_liners=true +nl_func_leave_one_liners=true +nl_cpp_lambda_leave_one_liners=true +nl_if_leave_one_liners=false +nl_oc_msg_leave_one_liner=true +nl_start_of_file=remove +nl_end_of_file=force +nl_end_of_file_min=1 +nl_assign_brace=force +nl_enum_brace=force +nl_struct_brace=force +nl_union_brace=force +nl_if_brace=force +nl_brace_else=force +nl_else_brace=force +nl_else_if=remove +nl_brace_finally=force +nl_finally_brace=force +nl_try_brace=force +nl_getset_brace=force +nl_for_brace=force +nl_catch_brace=force +nl_brace_catch=force +nl_while_brace=force +nl_using_brace=force +nl_brace_brace=ignore +nl_do_brace=force +nl_brace_while=force +nl_switch_brace=force +nl_multi_line_cond=false +nl_before_case=false +nl_after_case=false +nl_case_colon_brace=force +nl_namespace_brace=force +nl_template_class=ignore +nl_class_brace=force +nl_fdef_brace=force +nl_after_semicolon=false +nl_after_brace_open=false +nl_after_brace_open_cmt=false +nl_after_vbrace_open=false +nl_after_vbrace_open_empty=false +nl_after_brace_close=false +nl_after_vbrace_close=false +nl_squeeze_ifdef=false +nl_ds_struct_enum_cmt=false +nl_ds_struct_enum_close_brace=false +nl_namespace_two_to_one_liner=false +nl_create_if_one_liner=false +nl_create_for_one_liner=false +nl_create_while_one_liner=false +nl_create_func_def_one_liner=false +ls_for_split_full=false +ls_func_split_full=false +nl_max=3 +nl_after_func_body=2 +nl_after_multiline_comment=false +nl_property_brace=force +eat_blanks_after_open_brace=true +eat_blanks_before_close_brace=true +nl_after_return=false +mod_full_brace_if_chain=false +mod_paren_on_return=ignore +mod_pawn_semicolon=false +mod_full_paren_if_bool=false +mod_remove_extra_semicolon=true +mod_move_case_break=false +mod_remove_empty_return=true +cmt_convert_tab_to_spaces=True +cmt_indent_multi=false +cmt_c_group=false +cmt_c_nl_start=false +cmt_c_nl_end=false +cmt_cpp_group=false +cmt_cpp_nl_start=false +cmt_cpp_nl_end=false +cmt_cpp_to_c=false +cmt_star_cont=false +cmt_multi_check_last=false +cmt_insert_before_preproc=false +pp_space=ignore +use_options_overriding_for_qt_macros=false +warn_level_tabs_found_in_verbatim_string_literals=1 +# blocked by https://sourceforge.net/p/uncrustify/bugs/619/ +# can be turned back on at any time +mod_add_long_ifdef_else_comment=0 +mod_add_long_ifdef_endif_comment=0 + + + +# Setting this 'false' will cause an extra tab to be added to function call args from an assignment: +# +# x = o.Func2(a, b, +# y); +# o.Func2(a, b, +# y); +# +# ...but setting it 'true' is often worse: +# +# ExtraReallyLongType reallyLongVariableName = someTest +# ? someTrueExpr +# : someFalseExpr +# +# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or, +# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did. +# (currently unreported) +indent_align_assign=false + +# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space +# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++ +# comment line at the same level of indentation. +# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us +# (test using Runtime/Allocator/BucketAllocator.h) +# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further +#sp_cmt_cpp_start=add +sp_cmt_cpp_start=ignore + +# https://sourceforge.net/p/uncrustify/bugs/619/ +#sp_endif_cmt=force +sp_endif_cmt=ignore + +# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example: +# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp +#nl_cpp_ldef_brace=force + +# workaround for some nasty macroing we're doing +set COMMENT PLATFORM_EXCEPTION_SAFEGUARD_PROLOG + +# without this, uncrustify will parse and process the contents of #defines, which is super unstable. very easy to get into edge cases it does not support, +# so just have it treat #defines as black boxes. this will keep all of the contents of the #define as unprocessed. +pp_ignore_define_body=true + +# macros in #includes aren't known to Uncrustify, so have to inform it here for macros that will confuse it +set MACRO_FUNC ATTRIBUTE_ALIGN + +# we have some truly insane deep namespace nesting in il2cpp. :/ +indent_namespace_single_indent=true + +# needed for fmod apparently (via HEVAGTool.h - the *'s near F_STDCALL will be interpreted as ARITH without this) +set COMMENT F_STDCALL + +# https://github.com/uncrustify/uncrustify/pull/602 +# https://sourceforge.net/p/uncrustify/bugs/633/ +set COMMENT __cdecl +set COMMENT __clrcall +set COMMENT __fastcall +set COMMENT __stdcall +set COMMENT __thiscall +set COMMENT __vectorcall +set COMMENT WINAPI + +# We need to make FAKE_FUNCTION a PROTO_WRAP macro function to help properly tokenize it's parameters. +# Previously parameters with CT_AMP and CT_STAR were tokenized as CT_ARITH. Support for optional parenthesis added in github PR #629. +set PROTO_WRAP FAKE_FUNCTION +nl_create_func_def_one_liner=true +sp_inside_braces=Add diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-11662.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-11662.cfg new file mode 100644 index 00000000..24cf86a8 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-11662.cfg @@ -0,0 +1,5 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_namespace = true +indent_class = true +nl_class_leave_one_liners = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-11993.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-11993.cfg new file mode 100644 index 00000000..79b2e445 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-11993.cfg @@ -0,0 +1,287 @@ +input_tab_size=4 +string_replace_tab_chars=true +tok_split_gte=false +disable_processing_cmt=*begin-nonstandard-formatting +enable_processing_cmt=*end-nonstandard-formatting* +utf8_bom=remove +utf8_byte=false +utf8_force=false +indent_columns=4 +indent_with_tabs=0 +indent_cmt_with_tabs=false +indent_align_string=false +indent_braces=false +indent_braces_no_func=false +indent_braces_no_class=false +indent_braces_no_struct=false +indent_brace_parent=false +indent_cs_delegate_brace=true +indent_namespace=true +indent_extern=false +indent_class=true +indent_class_colon=false +indent_else_if=false +indent_var_def_cont=false +indent_func_call_param=true +indent_func_def_param=true +indent_func_proto_param=true +indent_func_class_param=false +indent_func_ctor_var_param=false +indent_template_param=false +indent_func_param_double=false +indent_member_single=false +indent_relative_single_line_comments=false +indent_switch_case=4 +indent_case_shift=0 +indent_case_brace=0 +indent_col1_comment=false +indent_label=-4 +indent_access_spec=-4 +indent_paren_nl=false +indent_comma_paren=false +indent_bool_paren=false +indent_first_bool_expr=false +indent_square_nl=false +indent_preserve_sql=false +indent_align_paren=false +indent_oc_block_msg_xcode_style=true +indent_off_after_return_new=true +indent_single_after_return=true +sp_arith=add +sp_assign=add +sp_assign_default=add +sp_enum_assign=add +sp_pp_concat=remove +sp_pp_stringify=remove +sp_bool=add +sp_compare=add +sp_inside_paren=remove +sp_paren_paren=remove +sp_balance_nested_parens=false +sp_paren_brace=force +sp_after_type=ignore +sp_template_angle=remove +sp_before_angle=remove +sp_inside_angle=remove +sp_angle_paren=remove +sp_angle_paren_empty=remove +sp_angle_word=add +sp_angle_shift=remove +sp_before_sparen=force +sp_inside_sparen=remove +sp_after_sparen=add +sp_sparen_brace=force +sp_special_semi=force +sp_before_semi=remove +sp_before_semi_for=remove +sp_before_semi_for_empty=remove +sp_between_semi_for_empty=remove +sp_after_semi=add +sp_after_semi_for=force +sp_after_semi_for_empty=remove +sp_before_square=remove +sp_before_squares=remove +sp_inside_square=remove +sp_after_comma=add +sp_before_comma=ignore +sp_after_mdatype_commas=remove +sp_before_mdatype_commas=remove +sp_between_mdatype_commas=remove +sp_paren_comma=remove +sp_after_class_colon=force +sp_before_class_colon=force +sp_before_case_colon=remove +sp_after_operator=remove +sp_after_operator_sym=remove +sp_after_operator_sym_empty=remove +sp_after_cast=remove +sp_inside_paren_cast=remove +sp_cpp_cast_paren=remove +sp_sizeof_paren=remove +sp_inside_braces_enum=add +sp_inside_braces_empty=remove +sp_type_func=ignore +sp_func_proto_paren=remove +sp_func_def_paren=remove +sp_inside_fparens=remove +sp_inside_fparen=remove +sp_fparen_brace=add +sp_func_call_paren=remove +sp_func_call_paren_empty=remove +sp_func_call_user_paren=remove +sp_func_class_paren=remove +sp_return_paren=add +sp_defined_paren=remove +sp_throw_paren=add +sp_catch_paren=add +sp_brace_typedef=add +sp_getset_brace=add +sp_after_dc=remove +sp_not=remove +sp_inv=remove +sp_addr=remove +sp_member=remove +sp_deref=remove +sp_sign=remove +sp_incdec=remove +sp_before_nl_cont=add +sp_after_oc_scope=force +sp_after_oc_colon=remove +sp_before_oc_colon=remove +sp_after_oc_dict_colon=force +sp_before_oc_dict_colon=remove +sp_after_send_oc_colon=force +sp_before_send_oc_colon=remove +sp_after_oc_type=remove +sp_after_oc_return_type=remove +sp_after_oc_at_sel=remove +sp_inside_oc_at_sel_parens=remove +sp_cond_colon=add +sp_cond_question=add +sp_case_label=ignore +sp_after_new=force +sp_between_new_paren=remove +sp_skip_vbrace_tokens=true +align_keep_tabs=false +align_with_tabs=false +align_on_tabstop=false +align_number_right=false +align_func_params=false +align_same_func_call_params=false +align_var_def_colon=false +align_var_def_attribute=false +align_var_def_inline=false +align_right_cmt_mix=false +align_on_operator=false +align_mix_var_proto=false +align_single_line_func=false +align_single_line_brace=false +align_nl_cont=false +align_left_shift=false +nl_collapse_empty_body=false +nl_assign_leave_one_liners=true +nl_class_leave_one_liners=true +nl_enum_leave_one_liners=true +nl_getset_leave_one_liners=true +nl_func_leave_one_liners=true +nl_cpp_lambda_leave_one_liners=true +nl_if_leave_one_liners=false +nl_oc_msg_leave_one_liner=true +nl_start_of_file=remove +nl_end_of_file=force +nl_end_of_file_min=1 +nl_assign_brace=force +nl_enum_brace=force +nl_struct_brace=force +nl_union_brace=force +nl_if_brace=force +nl_brace_else=force +nl_else_brace=force +nl_else_if=remove +nl_brace_finally=force +nl_finally_brace=force +nl_try_brace=force +nl_getset_brace=force +nl_for_brace=force +nl_catch_brace=force +nl_brace_catch=force +nl_while_brace=force +nl_using_brace=force +nl_brace_brace=ignore +nl_do_brace=force +nl_brace_while=force +nl_switch_brace=force +nl_multi_line_cond=false +nl_before_case=false +nl_after_case=false +nl_case_colon_brace=force +nl_namespace_brace=force +nl_template_class=ignore +nl_class_brace=force +nl_fdef_brace=force +nl_after_semicolon=false +nl_after_brace_open=false +nl_after_brace_open_cmt=false +nl_after_vbrace_open=false +nl_after_vbrace_open_empty=false +nl_after_brace_close=false +nl_after_vbrace_close=false +nl_squeeze_ifdef=false +nl_ds_struct_enum_cmt=false +nl_ds_struct_enum_close_brace=false +nl_namespace_two_to_one_liner=false +nl_create_if_one_liner=false +nl_create_for_one_liner=false +nl_create_while_one_liner=false +nl_create_func_def_one_liner=false +ls_for_split_full=false +ls_func_split_full=false +nl_max=3 +nl_after_func_body=2 +nl_after_multiline_comment=false +nl_property_brace=force +eat_blanks_after_open_brace=true +eat_blanks_before_close_brace=true +nl_after_return=false +mod_full_brace_if_chain=false +mod_paren_on_return=ignore +mod_pawn_semicolon=false +mod_full_paren_if_bool=false +mod_remove_extra_semicolon=true +mod_move_case_break=false +mod_remove_empty_return=true +cmt_convert_tab_to_spaces=True +cmt_indent_multi=false +cmt_c_group=false +cmt_c_nl_start=false +cmt_c_nl_end=false +cmt_cpp_group=false +cmt_cpp_nl_start=false +cmt_cpp_nl_end=false +cmt_cpp_to_c=false +cmt_star_cont=false +cmt_multi_check_last=false +cmt_insert_before_preproc=false +pp_space=ignore +use_options_overriding_for_qt_macros=false +warn_level_tabs_found_in_verbatim_string_literals=1 +# blocked by https://sourceforge.net/p/uncrustify/bugs/619/ +# can be turned back on at any time +mod_add_long_ifdef_else_comment=0 +mod_add_long_ifdef_endif_comment=0 + + +# Setting this 'false' will cause an extra tab to be added to function call args from an assignment: +# +# x = o.Func2(a, b, +# y); +# o.Func2(a, b, +# y); +# +# ...but setting it 'true' is often worse: +# +# ExtraReallyLongType reallyLongVariableName = someTest +# ? someTrueExpr +# : someFalseExpr +# +# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or, +# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did. +# (currently unreported) +indent_align_assign=false + +# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space +# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++ +# comment line at the same level of indentation. +# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us +# (test using Runtime/Allocator/BucketAllocator.h) +# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further +#sp_cmt_cpp_start=add +sp_cmt_cpp_start=ignore + +# https://sourceforge.net/p/uncrustify/bugs/619/ +#sp_endif_cmt=force +sp_endif_cmt=ignore + +# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example: +# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp +#nl_cpp_ldef_brace=force diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1288.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1288.cfg new file mode 100644 index 00000000..3b6cf1b4 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1288.cfg @@ -0,0 +1,9 @@ +sp_assign = add +sp_fparen_brace_initializer = add +indent_columns = 4 +indent_with_tabs = 0 +indent_class = true +indent_off_after_return_new = true +nl_class_leave_one_liners = true +nl_after_func_body = 2 +eat_blanks_after_open_brace = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1338.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1338.cfg new file mode 100644 index 00000000..0eef21b4 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1338.cfg @@ -0,0 +1,8 @@ +sp_fparen_brace = add +indent_columns = 4 +indent_with_tabs = 0 +indent_class = true +nl_class_leave_one_liners = true +nl_end_of_file = force +nl_end_of_file_min = 1 +sp_inside_braces = add diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1343.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1343.cfg new file mode 100644 index 00000000..f5276e1f --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1343.cfg @@ -0,0 +1,4 @@ +indent_columns = 4 +indent_namespace = true +eat_blanks_before_close_brace = true +mod_add_long_namespace_closebrace_comment = 3 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-13955.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-13955.cfg new file mode 100644 index 00000000..d1c7c955 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-13955.cfg @@ -0,0 +1,4 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_func_call_param = true +indent_paren_close = 2 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-14131.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-14131.cfg new file mode 100644 index 00000000..7c5535ea --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-14131.cfg @@ -0,0 +1,4 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_cs_delegate_brace = true +indent_class = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-18437.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-18437.cfg new file mode 100644 index 00000000..a40e16a6 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-18437.cfg @@ -0,0 +1,287 @@ +input_tab_size=4 +string_replace_tab_chars=true +tok_split_gte=false +disable_processing_cmt=*begin-nonstandard-formatting* +enable_processing_cmt=*end-nonstandard-formatting* +utf8_bom=remove +utf8_byte=false +utf8_force=false +indent_columns=4 +indent_with_tabs=0 +indent_cmt_with_tabs=false +indent_align_string=false +indent_braces=false +indent_braces_no_func=false +indent_braces_no_class=false +indent_braces_no_struct=false +indent_brace_parent=false +indent_cs_delegate_brace=true +indent_namespace=true +indent_extern=false +indent_class=true +indent_class_colon=false +indent_else_if=false +indent_var_def_cont=false +indent_func_call_param=true +indent_func_def_param=true +indent_func_proto_param=true +indent_func_class_param=false +indent_func_ctor_var_param=false +indent_template_param=false +indent_func_param_double=false +indent_relative_single_line_comments=false +indent_switch_case=4 +indent_case_shift=0 +indent_case_brace=0 +indent_col1_comment=false +indent_label=-4 +indent_access_spec=-4 +indent_paren_nl=false +indent_comma_paren=false +indent_bool_paren=false +indent_first_bool_expr=false +indent_square_nl=false +indent_preserve_sql=false +indent_align_paren=false +indent_oc_block_msg_xcode_style=true +indent_off_after_return_new=true +indent_single_after_return=true +sp_arith=add +sp_assign=add +sp_assign_default=add +sp_enum_assign=add +sp_pp_concat=remove +sp_pp_stringify=remove +sp_bool=add +sp_compare=add +sp_inside_paren=remove +sp_paren_paren=remove +sp_balance_nested_parens=false +sp_paren_brace=force +sp_after_type=ignore +sp_template_angle=remove +sp_before_angle=remove +sp_inside_angle=remove +sp_angle_paren=remove +sp_angle_paren_empty=remove +sp_angle_word=add +sp_angle_shift=remove +sp_before_sparen=force +sp_inside_sparen=remove +sp_after_sparen=add +sp_sparen_brace=force +sp_special_semi=force +sp_before_semi=remove +sp_before_semi_for=remove +sp_before_semi_for_empty=remove +sp_between_semi_for_empty=remove +sp_after_semi=add +sp_after_semi_for=force +sp_after_semi_for_empty=remove +sp_before_square=remove +sp_before_squares=remove +sp_inside_square=remove +sp_after_comma=add +sp_before_comma=ignore +sp_after_mdatype_commas=remove +sp_before_mdatype_commas=remove +sp_between_mdatype_commas=remove +sp_paren_comma=remove +sp_after_class_colon=force +sp_before_class_colon=force +sp_before_case_colon=remove +sp_after_operator=remove +sp_after_operator_sym=remove +sp_after_operator_sym_empty=remove +sp_after_cast=remove +sp_inside_paren_cast=remove +sp_cpp_cast_paren=remove +sp_sizeof_paren=remove +sp_inside_braces_enum=add +sp_inside_braces_empty=remove +sp_type_func=ignore +sp_func_proto_paren=remove +sp_func_def_paren=remove +sp_inside_fparens=remove +sp_inside_fparen=remove +sp_fparen_brace=add +sp_func_call_paren=remove +sp_func_call_paren_empty=remove +sp_func_call_user_paren=remove +sp_func_class_paren=remove +sp_return_paren=add +sp_defined_paren=remove +sp_throw_paren=add +sp_catch_paren=add +sp_brace_typedef=add +sp_getset_brace=add +sp_after_dc=remove +sp_not=remove +sp_inv=remove +sp_addr=remove +sp_member=remove +sp_deref=remove +sp_sign=remove +sp_incdec=remove +sp_before_nl_cont=add +sp_after_oc_scope=force +sp_after_oc_colon=remove +sp_before_oc_colon=remove +sp_after_oc_dict_colon=force +sp_before_oc_dict_colon=remove +sp_after_send_oc_colon=force +sp_before_send_oc_colon=remove +sp_after_oc_type=remove +sp_after_oc_return_type=remove +sp_after_oc_at_sel=remove +sp_inside_oc_at_sel_parens=remove +sp_cond_colon=add +sp_cond_question=add +sp_case_label=ignore +sp_after_new=force +sp_between_new_paren=remove +sp_skip_vbrace_tokens=true +align_keep_tabs=false +align_with_tabs=false +align_on_tabstop=false +align_number_right=false +align_func_params=false +align_same_func_call_params=false +align_var_def_colon=false +align_var_def_attribute=false +align_var_def_inline=false +align_right_cmt_mix=false +align_on_operator=false +align_mix_var_proto=false +align_single_line_func=false +align_single_line_brace=false +align_nl_cont=false +align_left_shift=false +nl_collapse_empty_body=false +nl_assign_leave_one_liners=true +nl_class_leave_one_liners=true +nl_enum_leave_one_liners=true +nl_getset_leave_one_liners=true +nl_func_leave_one_liners=true +nl_cpp_lambda_leave_one_liners=true +nl_if_leave_one_liners=false +nl_oc_msg_leave_one_liner=true +nl_start_of_file=remove +nl_end_of_file=force +nl_end_of_file_min=1 +nl_assign_brace=force +nl_enum_brace=force +nl_struct_brace=force +nl_union_brace=force +nl_if_brace=force +nl_brace_else=force +nl_else_brace=force +nl_else_if=remove +nl_brace_finally=force +nl_finally_brace=force +nl_try_brace=force +nl_getset_brace=force +nl_for_brace=force +nl_catch_brace=force +nl_brace_catch=force +nl_while_brace=force +nl_using_brace=force +nl_brace_brace=ignore +nl_do_brace=force +nl_brace_while=force +nl_switch_brace=force +nl_multi_line_cond=false +nl_before_case=false +nl_after_case=false +nl_case_colon_brace=force +nl_namespace_brace=force +nl_template_class=ignore +nl_class_brace=force +nl_fdef_brace=force +nl_after_semicolon=false +nl_after_brace_open=false +nl_after_brace_open_cmt=false +nl_after_vbrace_open=false +nl_after_vbrace_open_empty=false +nl_after_brace_close=false +nl_after_vbrace_close=false +nl_squeeze_ifdef=false +nl_ds_struct_enum_cmt=false +nl_ds_struct_enum_close_brace=false +nl_namespace_two_to_one_liner=false +nl_create_if_one_liner=false +nl_create_for_one_liner=false +nl_create_while_one_liner=false +nl_create_func_def_one_liner=false +ls_for_split_full=false +ls_func_split_full=false +nl_max=3 +nl_after_func_body=2 +nl_after_multiline_comment=false +nl_property_brace=force +eat_blanks_after_open_brace=true +eat_blanks_before_close_brace=true +nl_after_return=false +mod_full_brace_if_chain=false +mod_paren_on_return=ignore +mod_pawn_semicolon=false +mod_full_paren_if_bool=false +mod_remove_extra_semicolon=true +mod_move_case_break=false +mod_remove_empty_return=true +cmt_convert_tab_to_spaces=True +cmt_indent_multi=false +cmt_c_group=false +cmt_c_nl_start=false +cmt_c_nl_end=false +cmt_cpp_group=false +cmt_cpp_nl_start=false +cmt_cpp_nl_end=false +cmt_cpp_to_c=false +cmt_star_cont=false +cmt_multi_check_last=false +cmt_insert_before_preproc=false +pp_space=ignore +use_options_overriding_for_qt_macros=false +warn_level_tabs_found_in_verbatim_string_literals=1 +# blocked by https://sourceforge.net/p/uncrustify/bugs/619/ +# can be turned back on at any time +mod_add_long_ifdef_else_comment=0 +mod_add_long_ifdef_endif_comment=0 + + +# Setting this 'false' will cause an extra tab to be added to function call args from an assignment: +# +# x = o.Func2(a, b, +# y); +# o.Func2(a, b, +# y); +# +# ...but setting it 'true' is often worse: +# +# ExtraReallyLongType reallyLongVariableName = someTest +# ? someTrueExpr +# : someFalseExpr +# +# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or, +# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did. +# (currently unreported) +indent_align_assign=false + +# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space +# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++ +# comment line at the same level of indentation. +# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us +# (test using Runtime/Allocator/BucketAllocator.h) +# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further +#sp_cmt_cpp_start=add +sp_cmt_cpp_start=ignore + +# https://sourceforge.net/p/uncrustify/bugs/619/ +#sp_endif_cmt=force +sp_endif_cmt=ignore + +# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example: +# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp +#nl_cpp_ldef_brace=force +indent_member_single=true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-18829.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-18829.cfg new file mode 100644 index 00000000..d65f6b27 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-18829.cfg @@ -0,0 +1,3 @@ +indent_columns = 4 +nl_end_of_file = force +nl_end_of_file_min = 1 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1975.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1975.cfg new file mode 100644 index 00000000..80528dc6 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1975.cfg @@ -0,0 +1,3 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_class = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1977.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1977.cfg new file mode 100644 index 00000000..4563bfde --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1977.cfg @@ -0,0 +1,6 @@ +output_tab_size = 4 +indent_columns = 4 +indent_with_tabs = 0 +indent_namespace = true +indent_class = true +cmt_convert_tab_to_spaces = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1978.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1978.cfg new file mode 100644 index 00000000..2cf794e3 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-1978.cfg @@ -0,0 +1,7 @@ +sp_arith = add +sp_inside_fparen = remove +indent_columns = 4 +indent_with_tabs = 0 +indent_namespace = true +indent_class = true +nl_tsquare_brace = add diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-19895.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-19895.cfg new file mode 100644 index 00000000..ac4012d1 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-19895.cfg @@ -0,0 +1,7 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_namespace = true +indent_class = true +indent_align_paren = false +nl_end_of_file = force +nl_end_of_file_min = 1 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2020.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2020.cfg new file mode 100644 index 00000000..0d78de45 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2020.cfg @@ -0,0 +1,2 @@ +indent_columns = 4 +indent_with_tabs = 0 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2021.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2021.cfg new file mode 100644 index 00000000..827d33e0 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2021.cfg @@ -0,0 +1,6 @@ +sp_func_def_paren = remove +sp_fparen_brace = add +nl_func_leave_one_liners = true +nl_end_of_file = force +nl_end_of_file_min = 1 +nl_create_func_def_one_liner = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-21730.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-21730.cfg new file mode 100644 index 00000000..5443f32f --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-21730.cfg @@ -0,0 +1,2 @@ +sp_before_comma = ignore +indent_columns = 4 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2684.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2684.cfg new file mode 100644 index 00000000..c048c827 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2684.cfg @@ -0,0 +1,5 @@ +indent_columns = 4 +indent_with_tabs = 0 +nl_end_of_file = force +nl_end_of_file_min = 1 +indent_cs_delegate_brace = false diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2685.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2685.cfg new file mode 100644 index 00000000..3f25a1fa --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-2685.cfg @@ -0,0 +1,6 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_func_call_param = true +nl_end_of_file = force +nl_end_of_file_min = 1 +indent_cs_delegate_brace = false diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-29933.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-29933.cfg new file mode 100644 index 00000000..2f136516 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-29933.cfg @@ -0,0 +1,5 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_func_call_param = true +indent_switch_case = 4 +indent_align_assign = false diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-30498_2.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-30498_2.cfg new file mode 100644 index 00000000..8f635e72 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-30498_2.cfg @@ -0,0 +1,7 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_class = true +indent_func_call_param = true +indent_switch_case = 4 +indent_align_assign = false +nl_class_leave_one_liners = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-3083.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-3083.cfg new file mode 100644 index 00000000..80528dc6 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-3083.cfg @@ -0,0 +1,3 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_class = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-32658.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-32658.cfg new file mode 100644 index 00000000..9333a9c5 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-32658.cfg @@ -0,0 +1,286 @@ +input_tab_size=4 +string_replace_tab_chars=true +tok_split_gte=false +disable_processing_cmt=*begin-nonstandard-formatting* +enable_processing_cmt=*end-nonstandard-formatting* +utf8_bom=remove +utf8_byte=false +utf8_force=false +indent_columns=4 +indent_with_tabs=0 +indent_cmt_with_tabs=false +indent_align_string=false +indent_braces=false +indent_braces_no_func=false +indent_braces_no_class=false +indent_braces_no_struct=false +indent_brace_parent=false +indent_cs_delegate_brace=true +indent_namespace=true +indent_extern=false +indent_class=true +indent_class_colon=false +indent_else_if=false +indent_var_def_cont=false +indent_func_call_param=true +indent_func_def_param=true +indent_func_proto_param=true +indent_func_class_param=false +indent_func_ctor_var_param=false +indent_template_param=false +indent_func_param_double=false +indent_member_single=false +indent_relative_single_line_comments=false +indent_switch_case=4 +indent_case_shift=0 +indent_case_brace=0 +indent_col1_comment=false +indent_label=-4 +indent_access_spec=-4 +indent_paren_nl=false +indent_comma_paren=false +indent_bool_paren=false +indent_first_bool_expr=false +indent_square_nl=false +indent_preserve_sql=false +indent_align_paren=false +indent_oc_block_msg_xcode_style=true +indent_off_after_return_new=true +indent_single_after_return=true +sp_arith=add +sp_assign=add +sp_assign_default=add +sp_enum_assign=add +sp_pp_concat=remove +sp_pp_stringify=remove +sp_bool=add +sp_compare=add +sp_inside_paren=remove +sp_paren_paren=remove +sp_balance_nested_parens=false +sp_paren_brace=force +sp_after_type=ignore +sp_template_angle=remove +sp_before_angle=remove +sp_inside_angle=remove +sp_angle_paren=remove +sp_angle_paren_empty=remove +sp_angle_word=add +sp_angle_shift=remove +sp_before_sparen=force +sp_inside_sparen=remove +sp_after_sparen=add +sp_sparen_brace=force +sp_special_semi=force +sp_before_semi=remove +sp_before_semi_for=remove +sp_before_semi_for_empty=remove +sp_between_semi_for_empty=remove +sp_after_semi=add +sp_after_semi_for=force +sp_after_semi_for_empty=remove +sp_before_square=remove +sp_before_squares=remove +sp_inside_square=remove +sp_after_comma=add +sp_before_comma=ignore +sp_after_mdatype_commas=remove +sp_before_mdatype_commas=remove +sp_between_mdatype_commas=remove +sp_paren_comma=remove +sp_after_class_colon=force +sp_before_class_colon=force +sp_before_case_colon=remove +sp_after_operator=remove +sp_after_operator_sym=remove +sp_after_operator_sym_empty=remove +sp_after_cast=remove +sp_inside_paren_cast=remove +sp_cpp_cast_paren=remove +sp_sizeof_paren=remove +sp_inside_braces_enum=add +sp_inside_braces_empty=remove +sp_type_func=ignore +sp_func_proto_paren=remove +sp_func_def_paren=remove +sp_inside_fparens=remove +sp_inside_fparen=remove +sp_fparen_brace=add +sp_func_call_paren=remove +sp_func_call_paren_empty=remove +sp_func_call_user_paren=remove +sp_func_class_paren=remove +sp_return_paren=add +sp_defined_paren=remove +sp_throw_paren=add +sp_catch_paren=add +sp_brace_typedef=add +sp_getset_brace=add +sp_after_dc=remove +sp_not=remove +sp_inv=remove +sp_addr=remove +sp_member=remove +sp_deref=remove +sp_sign=remove +sp_incdec=remove +sp_before_nl_cont=add +sp_after_oc_scope=force +sp_after_oc_colon=remove +sp_before_oc_colon=remove +sp_after_oc_dict_colon=force +sp_before_oc_dict_colon=remove +sp_after_send_oc_colon=force +sp_before_send_oc_colon=remove +sp_after_oc_type=remove +sp_after_oc_return_type=remove +sp_after_oc_at_sel=remove +sp_inside_oc_at_sel_parens=remove +sp_cond_colon=add +sp_cond_question=add +sp_case_label=ignore +sp_after_new=force +sp_between_new_paren=remove +sp_skip_vbrace_tokens=true +align_keep_tabs=false +align_with_tabs=false +align_on_tabstop=false +align_number_right=false +align_func_params=false +align_same_func_call_params=false +align_var_def_colon=false +align_var_def_attribute=false +align_var_def_inline=false +align_right_cmt_mix=false +align_on_operator=false +align_mix_var_proto=false +align_single_line_func=false +align_single_line_brace=false +align_nl_cont=false +align_left_shift=false +nl_collapse_empty_body=false +nl_assign_leave_one_liners=true +nl_class_leave_one_liners=true +nl_enum_leave_one_liners=true +nl_getset_leave_one_liners=true +nl_func_leave_one_liners=true +nl_cpp_lambda_leave_one_liners=true +nl_if_leave_one_liners=false +nl_oc_msg_leave_one_liner=true +nl_start_of_file=remove +nl_end_of_file=force +nl_end_of_file_min=1 +nl_assign_brace=force +nl_enum_brace=force +nl_struct_brace=force +nl_union_brace=force +nl_if_brace=force +nl_brace_else=force +nl_else_brace=force +nl_else_if=remove +nl_brace_finally=force +nl_finally_brace=force +nl_try_brace=force +nl_getset_brace=force +nl_for_brace=force +nl_catch_brace=force +nl_brace_catch=force +nl_while_brace=force +nl_using_brace=force +nl_brace_brace=ignore +nl_do_brace=force +nl_brace_while=force +nl_switch_brace=force +nl_multi_line_cond=false +nl_before_case=false +nl_after_case=false +nl_case_colon_brace=force +nl_namespace_brace=force +nl_template_class=ignore +nl_class_brace=force +nl_fdef_brace=force +nl_after_semicolon=false +nl_after_brace_open=false +nl_after_brace_open_cmt=false +nl_after_vbrace_open=false +nl_after_vbrace_open_empty=false +nl_after_brace_close=false +nl_after_vbrace_close=false +nl_squeeze_ifdef=false +nl_ds_struct_enum_cmt=false +nl_ds_struct_enum_close_brace=false +nl_namespace_two_to_one_liner=false +nl_create_if_one_liner=false +nl_create_for_one_liner=false +nl_create_while_one_liner=false +nl_create_func_def_one_liner=false +ls_for_split_full=false +ls_func_split_full=false +nl_max=3 +nl_after_func_body=2 +nl_after_multiline_comment=false +nl_property_brace=force +eat_blanks_after_open_brace=true +eat_blanks_before_close_brace=true +nl_after_return=false +mod_full_brace_if_chain=false +mod_paren_on_return=ignore +mod_pawn_semicolon=false +mod_full_paren_if_bool=false +mod_remove_extra_semicolon=true +mod_move_case_break=false +mod_remove_empty_return=true +cmt_convert_tab_to_spaces=True +cmt_indent_multi=false +cmt_c_group=false +cmt_c_nl_start=false +cmt_c_nl_end=false +cmt_cpp_group=false +cmt_cpp_nl_start=false +cmt_cpp_nl_end=false +cmt_cpp_to_c=false +cmt_star_cont=false +cmt_multi_check_last=false +cmt_insert_before_preproc=false +pp_space=ignore +use_options_overriding_for_qt_macros=false +warn_level_tabs_found_in_verbatim_string_literals=1 +# blocked by https://sourceforge.net/p/uncrustify/bugs/619/ +# can be turned back on at any time +mod_add_long_ifdef_else_comment=0 +mod_add_long_ifdef_endif_comment=0 + +# Setting this 'false' will cause an extra tab to be added to function call args from an assignment: +# +# x = o.Func2(a, b, +# y); +# o.Func2(a, b, +# y); +# +# ...but setting it 'true' is often worse: +# +# ExtraReallyLongType reallyLongVariableName = someTest +# ? someTrueExpr +# : someFalseExpr +# +# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or, +# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did. +# (currently unreported) +indent_align_assign=false + +# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space +# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++ +# comment line at the same level of indentation. +# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us +# (test using Runtime/Allocator/BucketAllocator.h) +# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further +#sp_cmt_cpp_start=add +sp_cmt_cpp_start=ignore + +# https://sourceforge.net/p/uncrustify/bugs/619/ +#sp_endif_cmt=force +sp_endif_cmt=ignore + +# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example: +# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp +#nl_cpp_ldef_brace=force diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-37241.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-37241.cfg new file mode 100644 index 00000000..ad1ac1cc --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-37241.cfg @@ -0,0 +1,287 @@ +input_tab_size=4 # Number +string_replace_tab_chars=true # { False, True } +tok_split_gte=false # { False, True } +disable_processing_cmt=*begin-nonstandard-formatting* +enable_processing_cmt=*end-nonstandard-formatting* +utf8_bom=remove # { Ignore, Add, Remove, Force } +utf8_byte=false # { False, True } +utf8_force=false # { False, True } +indent_columns=4 # Number +indent_with_tabs=0 # Number +indent_cmt_with_tabs=false # { False, True } +indent_align_string=false # { False, True } +indent_braces=false # { False, True } +indent_braces_no_func=false # { False, True } +indent_braces_no_class=false # { False, True } +indent_braces_no_struct=false # { False, True } +indent_brace_parent=false # { False, True } +indent_cs_delegate_brace=true # { False, True } +indent_namespace=true # { False, True } +indent_extern=false # { False, True } +indent_class=true # { False, True } +indent_class_colon=false # { False, True } +indent_else_if=false # { False, True } +indent_var_def_cont=false # { False, True } +indent_func_call_param=true # { False, True } +indent_func_def_param=true # { False, True } +indent_func_proto_param=true # { False, True } +indent_func_class_param=false # { False, True } +indent_func_ctor_var_param=false # { False, True } +indent_template_param=false # { False, True } +indent_func_param_double=false # { False, True } +indent_member_single=false # false/true +indent_relative_single_line_comments=false # { False, True } +indent_switch_case=4 # Number +indent_case_shift=0 # Number +indent_case_brace=0 # Number +indent_col1_comment=false # { False, True } +indent_label=-4 # Number +indent_access_spec=-4 # Number +indent_paren_nl=false # { False, True } +indent_comma_paren=false # { False, True } +indent_bool_paren=false # { False, True } +indent_first_bool_expr=false # { False, True } +indent_square_nl=false # { False, True } +indent_preserve_sql=false # { False, True } +indent_align_paren=false # { False, True } +indent_oc_block_msg_xcode_style=true # { False, True } +indent_off_after_return_new=true # { False, True } +indent_single_after_return=true # { False, True } +sp_arith=add # { Ignore, Add, Remove, Force } +sp_assign=add # { Ignore, Add, Remove, Force } +sp_assign_default=add # { Ignore, Add, Remove, Force } +sp_enum_assign=add # { Ignore, Add, Remove, Force } +sp_pp_concat=remove # { Ignore, Add, Remove, Force } +sp_pp_stringify=remove # { Ignore, Add, Remove, Force } +sp_bool=add # { Ignore, Add, Remove, Force } +sp_compare=add # { Ignore, Add, Remove, Force } +sp_inside_paren=remove # { Ignore, Add, Remove, Force } +sp_paren_paren=remove # { Ignore, Add, Remove, Force } +sp_balance_nested_parens=false # { False, True } +sp_paren_brace=force # { Ignore, Add, Remove, Force } +sp_after_type=ignore # { Ignore, Add, Remove, Force } +sp_template_angle=remove # { Ignore, Add, Remove, Force } +sp_before_angle=remove # { Ignore, Add, Remove, Force } +sp_inside_angle=remove # { Ignore, Add, Remove, Force } +sp_angle_paren=remove # { Ignore, Add, Remove, Force } +sp_angle_paren_empty=remove # { Ignore, Add, Remove, Force } +sp_angle_word=add # { Ignore, Add, Remove, Force } +sp_angle_shift=remove # { Ignore, Add, Remove, Force } +sp_before_sparen=force # { Ignore, Add, Remove, Force } +sp_inside_sparen=remove # { Ignore, Add, Remove, Force } +sp_after_sparen=add # { Ignore, Add, Remove, Force } +sp_sparen_brace=force # { Ignore, Add, Remove, Force } +sp_special_semi=force # { Ignore, Add, Remove, Force } +sp_before_semi=remove # { Ignore, Add, Remove, Force } +sp_before_semi_for=remove # { Ignore, Add, Remove, Force } +sp_before_semi_for_empty=remove # { Ignore, Add, Remove, Force } +sp_between_semi_for_empty=remove # { Ignore, Add, Remove, Force } +sp_after_semi=add # { Ignore, Add, Remove, Force } +sp_after_semi_for=force # { Ignore, Add, Remove, Force } +sp_after_semi_for_empty=remove # { Ignore, Add, Remove, Force } +sp_before_square=remove # { Ignore, Add, Remove, Force } +sp_before_squares=remove # { Ignore, Add, Remove, Force } +sp_inside_square=remove # { Ignore, Add, Remove, Force } +sp_after_comma=add # { Ignore, Add, Remove, Force } +sp_before_comma=ignore # { Ignore, Add, Remove, Force } +sp_after_mdatype_commas=remove # { Ignore, Add, Remove, Force } +sp_before_mdatype_commas=remove # { Ignore, Add, Remove, Force } +sp_between_mdatype_commas=remove # { Ignore, Add, Remove, Force } +sp_paren_comma=remove # { Ignore, Add, Remove, Force } +sp_after_class_colon=force # { Ignore, Add, Remove, Force } +sp_before_class_colon=force # { Ignore, Add, Remove, Force } +sp_before_case_colon=remove # { Ignore, Add, Remove, Force } +sp_after_operator=remove # { Ignore, Add, Remove, Force } +sp_after_operator_sym=remove # { Ignore, Add, Remove, Force } +sp_after_operator_sym_empty=remove # { Ignore, Add, Remove, Force } +sp_after_cast=remove # { Ignore, Add, Remove, Force } +sp_inside_paren_cast=remove # { Ignore, Add, Remove, Force } +sp_cpp_cast_paren=remove # { Ignore, Add, Remove, Force } +sp_sizeof_paren=remove # { Ignore, Add, Remove, Force } +sp_inside_braces_enum=add # { Ignore, Add, Remove, Force } +sp_inside_braces_empty=remove # { Ignore, Add, Remove, Force } +sp_type_func=ignore # { Ignore, Add, Remove, Force } +sp_func_proto_paren=remove # { Ignore, Add, Remove, Force } +sp_func_def_paren=remove # { Ignore, Add, Remove, Force } +sp_inside_fparens=remove # { Ignore, Add, Remove, Force } +sp_inside_fparen=remove # { Ignore, Add, Remove, Force } +sp_fparen_brace=add # { Ignore, Add, Remove, Force } +sp_func_call_paren=remove # { Ignore, Add, Remove, Force } +sp_func_call_paren_empty=remove # { Ignore, Add, Remove, Force } +sp_func_call_user_paren=remove # { Ignore, Add, Remove, Force } +sp_func_class_paren=remove # { Ignore, Add, Remove, Force } +sp_return_paren=add # { Ignore, Add, Remove, Force } +sp_defined_paren=remove # { Ignore, Add, Remove, Force } +sp_throw_paren=add # { Ignore, Add, Remove, Force } +sp_catch_paren=add # { Ignore, Add, Remove, Force } +sp_brace_typedef=add # { Ignore, Add, Remove, Force } +sp_getset_brace=add # { Ignore, Add, Remove, Force } +sp_after_dc=remove # { Ignore, Add, Remove, Force } +sp_not=remove # { Ignore, Add, Remove, Force } +sp_inv=remove # { Ignore, Add, Remove, Force } +sp_addr=remove # { Ignore, Add, Remove, Force } +sp_member=remove # { Ignore, Add, Remove, Force } +sp_deref=remove # { Ignore, Add, Remove, Force } +sp_sign=remove # { Ignore, Add, Remove, Force } +sp_incdec=remove # { Ignore, Add, Remove, Force } +sp_before_nl_cont=add # { Ignore, Add, Remove, Force } +sp_after_oc_scope=force # { Ignore, Add, Remove, Force } +sp_after_oc_colon=remove # { Ignore, Add, Remove, Force } +sp_before_oc_colon=remove # { Ignore, Add, Remove, Force } +sp_after_oc_dict_colon=force # { Ignore, Add, Remove, Force } +sp_before_oc_dict_colon=remove # { Ignore, Add, Remove, Force } +sp_after_send_oc_colon=force # { Ignore, Add, Remove, Force } +sp_before_send_oc_colon=remove # { Ignore, Add, Remove, Force } +sp_after_oc_type=remove # { Ignore, Add, Remove, Force } +sp_after_oc_return_type=remove # { Ignore, Add, Remove, Force } +sp_after_oc_at_sel=remove # { Ignore, Add, Remove, Force } +sp_inside_oc_at_sel_parens=remove # { Ignore, Add, Remove, Force } +sp_cond_colon=add # { Ignore, Add, Remove, Force } +sp_cond_question=add # { Ignore, Add, Remove, Force } +sp_case_label=ignore # { Ignore, Add, Remove, Force } +sp_after_new=force # { Ignore, Add, Remove, Force } +sp_between_new_paren=remove # { Ignore, Add, Remove, Force } +sp_skip_vbrace_tokens=true # { False, True } +align_keep_tabs=false # { False, True } +align_with_tabs=false # { False, True } +align_on_tabstop=false # { False, True } +align_number_right=false # { False, True } +align_func_params=false # { False, True } +align_same_func_call_params=false # { False, True } +align_var_def_colon=false # { False, True } +align_var_def_attribute=false # { False, True } +align_var_def_inline=false # { False, True } +align_right_cmt_mix=false # { False, True } +align_on_operator=false # { False, True } +align_mix_var_proto=false # { False, True } +align_single_line_func=false # { False, True } +align_single_line_brace=false # { False, True } +align_nl_cont=false # { False, True } +align_left_shift=false # { False, True } +nl_collapse_empty_body=false # { False, True } +nl_assign_leave_one_liners=true # { False, True } +nl_class_leave_one_liners=true # { False, True } +nl_enum_leave_one_liners=true # { False, True } +nl_getset_leave_one_liners=true # { False, True } +nl_func_leave_one_liners=true # { False, True } +nl_cpp_lambda_leave_one_liners=true # { False, True } +nl_if_leave_one_liners=false # { False, True } +nl_oc_msg_leave_one_liner=true # { False, True } +nl_start_of_file=remove # { Ignore, Add, Remove, Force } +nl_end_of_file=force # { Ignore, Add, Remove, Force } +nl_end_of_file_min=1 # Number +nl_assign_brace=force # { Ignore, Add, Remove, Force } +nl_enum_brace=force # { Ignore, Add, Remove, Force } +nl_struct_brace=force # { Ignore, Add, Remove, Force } +nl_union_brace=force # { Ignore, Add, Remove, Force } +nl_if_brace=force # { Ignore, Add, Remove, Force } +nl_brace_else=force # { Ignore, Add, Remove, Force } +nl_else_brace=force # { Ignore, Add, Remove, Force } +nl_else_if=remove # { Ignore, Add, Remove, Force } +nl_brace_finally=force # { Ignore, Add, Remove, Force } +nl_finally_brace=force # { Ignore, Add, Remove, Force } +nl_try_brace=force # { Ignore, Add, Remove, Force } +nl_getset_brace=force # { Ignore, Add, Remove, Force } +nl_for_brace=force # { Ignore, Add, Remove, Force } +nl_catch_brace=force # { Ignore, Add, Remove, Force } +nl_brace_catch=force # { Ignore, Add, Remove, Force } +nl_while_brace=force # { Ignore, Add, Remove, Force } +nl_using_brace=force # { Ignore, Add, Remove, Force } +nl_brace_brace=ignore # { Ignore, Add, Remove, Force } +nl_do_brace=force # { Ignore, Add, Remove, Force } +nl_brace_while=force # { Ignore, Add, Remove, Force } +nl_switch_brace=force # { Ignore, Add, Remove, Force } +nl_multi_line_cond=false # { False, True } +nl_before_case=false # { False, True } +nl_after_case=false # { False, True } +nl_case_colon_brace=force # { Ignore, Add, Remove, Force } +nl_namespace_brace=force # { Ignore, Add, Remove, Force } +nl_template_class=ignore # { Ignore, Add, Remove, Force } +nl_class_brace=force # { Ignore, Add, Remove, Force } +nl_fdef_brace=force # { Ignore, Add, Remove, Force } +nl_after_semicolon=false # { False, True } +nl_after_brace_open=false # { False, True } +nl_after_brace_open_cmt=false # { False, True } +nl_after_vbrace_open=false # { False, True } +nl_after_vbrace_open_empty=false # { False, True } +nl_after_brace_close=false # { False, True } +nl_after_vbrace_close=false # { False, True } +nl_squeeze_ifdef=false # { False, True } +nl_ds_struct_enum_cmt=false # { False, True } +nl_ds_struct_enum_close_brace=false # { False, True } +nl_namespace_two_to_one_liner=false # { False, True } +nl_create_if_one_liner=false # { False, True } +nl_create_for_one_liner=false # { False, True } +nl_create_while_one_liner=false # { False, True } +nl_create_func_def_one_liner=false # { False, True } +ls_for_split_full=false # { False, True } +ls_func_split_full=false # { False, True } +nl_max=3 # Number +nl_after_func_body=2 # Number +nl_after_multiline_comment=false # { False, True } +nl_property_brace=force # { Ignore, Add, Remove, Force } +eat_blanks_after_open_brace=true # { False, True } +eat_blanks_before_close_brace=true # { False, True } +nl_after_return=false # { False, True } +mod_full_brace_if_chain=false # { False, True } +mod_paren_on_return=ignore # { Ignore, Add, Remove, Force } +mod_pawn_semicolon=false # { False, True } +mod_full_paren_if_bool=false # { False, True } +mod_remove_extra_semicolon=true # { False, True } +mod_move_case_break=false # { False, True } +mod_remove_empty_return=true # { False, True } +cmt_convert_tab_to_spaces=True # { False, True } +cmt_indent_multi=false # { False, True } +cmt_c_group=false # { False, True } +cmt_c_nl_start=false # { False, True } +cmt_c_nl_end=false # { False, True } +cmt_cpp_group=false # { False, True } +cmt_cpp_nl_start=false # { False, True } +cmt_cpp_nl_end=false # { False, True } +cmt_cpp_to_c=false # { False, True } +cmt_star_cont=false # { False, True } +cmt_multi_check_last=false # { False, True } +cmt_insert_before_preproc=false # { False, True } +pp_space=ignore # { Ignore, Add, Remove, Force } +use_options_overriding_for_qt_macros=false # { False, True } +warn_level_tabs_found_in_verbatim_string_literals=1 # { 1, 2, 3 } +# blocked by https://sourceforge.net/p/uncrustify/bugs/619/ +# can be turned back on at any time +mod_add_long_ifdef_else_comment=0 +mod_add_long_ifdef_endif_comment=0 + +# Setting this 'false' will cause an extra tab to be added to function call args from an assignment: +# +# x = o.Func2(a, b, +# y); +# o.Func2(a, b, +# y); +# +# ...but setting it 'true' is often worse: +# +# ExtraReallyLongType reallyLongVariableName = someTest +# ? someTrueExpr +# : someFalseExpr +# +# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or, +# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did. +# (currently unreported) +indent_align_assign=false + +# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space +# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++ +# comment line at the same level of indentation. +# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us +# (test using Runtime/Allocator/BucketAllocator.h) +# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further +#sp_cmt_cpp_start=add +sp_cmt_cpp_start=ignore + +# https://sourceforge.net/p/uncrustify/bugs/619/ +#sp_endif_cmt=force +sp_endif_cmt=ignore + +# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example: +# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp +#nl_cpp_ldef_brace=force +nl_cs_property_leave_one_liners=true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-9917.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-9917.cfg new file mode 100644 index 00000000..f1fd0af3 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/UNI-9917.cfg @@ -0,0 +1,9 @@ +sp_inside_braces_empty = remove +indent_columns = 4 +indent_with_tabs = 0 +indent_namespace = true +indent_class = true +nl_class_leave_one_liners = true +nl_end_of_file = force +nl_end_of_file_min = 1 +nl_class_brace = force diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_032.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_032.cfg new file mode 100644 index 00000000..e99f12ab --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_032.cfg @@ -0,0 +1,17 @@ +sp_inside_paren = remove +sp_func_def_paren = remove +sp_func_call_paren = remove +indent_columns = 3 +indent_with_tabs = 0 +indent_class = true +nl_func_var_def_blk = 1 +nl_if_brace = add +nl_else_brace = add +nl_for_brace = add +nl_while_brace = add +nl_fdef_brace = add +align_var_def_span = 2 +align_assign_span = 1 +mod_full_brace_for = add +mod_full_brace_if = add +mod_paren_on_return = add
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_033.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_033.cfg new file mode 100644 index 00000000..3f1ffc6c --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_033.cfg @@ -0,0 +1,4 @@ +indent_columns = 3 +indent_class = true +eat_blanks_after_open_brace = true +eat_blanks_before_close_brace = true
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_034.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_034.cfg new file mode 100644 index 00000000..0681b1b8 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_034.cfg @@ -0,0 +1,4 @@ +indent_columns = 3 +indent_class = true +eat_blanks_before_close_brace = true +align_var_class_span = 2
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_036.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_036.cfg new file mode 100644 index 00000000..5a5f216b --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_036.cfg @@ -0,0 +1,6 @@ +indent_columns = 3 +indent_with_tabs = 0 +indent_class = true +nl_func_var_def_blk = 1 +nl_try_brace = add +nl_after_brace_close = true
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_037.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_037.cfg new file mode 100644 index 00000000..97daab41 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_037.cfg @@ -0,0 +1,5 @@ +sp_inside_paren = remove +sp_func_def_paren = remove +indent_columns = 3 +indent_class = true +mod_paren_on_return = add
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_038.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_038.cfg new file mode 100644 index 00000000..4384cfbd --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_038.cfg @@ -0,0 +1,3 @@ +sp_inside_paren = remove +indent_columns = 3 +mod_paren_on_return = add
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_043.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_043.cfg new file mode 100644 index 00000000..fcbc9ddc --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_043.cfg @@ -0,0 +1,2 @@ +indent_columns = 3 +indent_class = true
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_044.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_044.cfg new file mode 100644 index 00000000..6815087d --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_044.cfg @@ -0,0 +1,8 @@ +sp_inside_paren = remove +indent_columns = 3 +indent_with_tabs = 0 +nl_after_semicolon = true +nl_after_brace_open = true +align_var_def_span = 2 +align_assign_span = 1 +mod_paren_on_return = add
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_045.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_045.cfg new file mode 100644 index 00000000..3ff68ef5 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/ben_045.cfg @@ -0,0 +1,7 @@ +sp_assign = force +indent_columns = 3 +indent_with_tabs = 0 +indent_class = true +nl_func_var_def_blk = 1 +# Add or remove space around the '.' or '->' operators. Default=Remove. +sp_member = force diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_1620.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_1620.cfg new file mode 100644 index 00000000..6b14154d --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_1620.cfg @@ -0,0 +1,289 @@ +input_tab_size=4
+string_replace_tab_chars=true
+tok_split_gte=false
+disable_processing_cmt=*begin-nonstandard-formatting*
+enable_processing_cmt=*end-nonstandard-formatting*
+utf8_bom=remove
+utf8_byte=false
+utf8_force=false
+indent_columns=4
+indent_with_tabs=0
+indent_cmt_with_tabs=false
+indent_align_string=false
+indent_braces=false
+indent_braces_no_func=false
+indent_braces_no_class=false
+indent_braces_no_struct=false
+indent_brace_parent=false
+indent_cs_delegate_brace=true
+indent_namespace=true
+indent_extern=false
+indent_class=true
+indent_class_colon=false
+indent_else_if=false
+indent_var_def_cont=false
+indent_func_call_param=true
+indent_func_def_param=true
+indent_func_proto_param=true
+indent_func_class_param=false
+indent_func_ctor_var_param=false
+indent_template_param=false
+indent_func_param_double=false
+indent_member_single=false
+indent_relative_single_line_comments=false
+indent_switch_case=4
+indent_case_shift=0
+indent_case_brace=0
+indent_col1_comment=false
+indent_label=-4
+indent_access_spec=-4
+indent_paren_nl=false
+indent_comma_paren=false
+indent_bool_paren=false
+indent_first_bool_expr=false
+indent_square_nl=false
+indent_preserve_sql=false
+indent_align_paren=false
+indent_oc_block_msg_xcode_style=true
+indent_off_after_return_new=true
+indent_single_after_return=true
+sp_arith=add
+sp_assign=add
+sp_assign_default=add
+sp_enum_assign=add
+sp_pp_concat=remove
+sp_pp_stringify=remove
+sp_bool=add
+sp_compare=add
+sp_inside_paren=remove
+sp_paren_paren=remove
+sp_balance_nested_parens=false
+sp_paren_brace=force
+sp_after_type=ignore
+sp_template_angle=remove
+sp_before_angle=remove
+sp_inside_angle=remove
+sp_angle_paren=remove
+sp_angle_paren_empty=remove
+sp_angle_word=add
+sp_angle_shift=remove
+sp_before_sparen=force
+sp_inside_sparen=remove
+sp_after_sparen=add
+sp_sparen_brace=force
+sp_special_semi=force
+sp_before_semi=remove
+sp_before_semi_for=remove
+sp_before_semi_for_empty=remove
+sp_between_semi_for_empty=remove
+sp_after_semi=add
+sp_after_semi_for=force
+sp_after_semi_for_empty=remove
+sp_before_square=remove
+sp_before_squares=remove
+sp_inside_square=remove
+sp_after_comma=add
+sp_before_comma=ignore
+sp_after_mdatype_commas=remove
+sp_before_mdatype_commas=remove
+sp_between_mdatype_commas=remove
+sp_paren_comma=remove
+sp_after_class_colon=force
+sp_before_class_colon=force
+sp_before_case_colon=remove
+sp_after_operator=remove
+sp_after_operator_sym=remove
+sp_after_operator_sym_empty=remove
+sp_after_cast=remove
+sp_inside_paren_cast=remove
+sp_cpp_cast_paren=remove
+sp_sizeof_paren=remove
+sp_inside_braces_enum=add
+sp_inside_braces_empty=remove
+sp_type_func=ignore
+sp_func_proto_paren=remove
+sp_func_def_paren=remove
+sp_inside_fparens=remove
+sp_inside_fparen=remove
+sp_fparen_brace=add
+sp_func_call_paren=remove
+sp_func_call_paren_empty=remove
+sp_func_call_user_paren=remove
+sp_func_class_paren=remove
+sp_return_paren=add
+sp_defined_paren=remove
+sp_throw_paren=add
+sp_catch_paren=add
+sp_brace_typedef=add
+sp_getset_brace=add
+sp_after_dc=remove
+sp_not=remove
+sp_inv=remove
+sp_addr=remove
+sp_member=remove
+sp_deref=remove
+sp_sign=remove
+sp_incdec=remove
+sp_before_nl_cont=add
+sp_after_oc_scope=force
+sp_after_oc_colon=remove
+sp_before_oc_colon=remove
+sp_after_oc_dict_colon=force
+sp_before_oc_dict_colon=remove
+sp_after_send_oc_colon=force
+sp_before_send_oc_colon=remove
+sp_after_oc_type=remove
+sp_after_oc_return_type=remove
+sp_after_oc_at_sel=remove
+sp_inside_oc_at_sel_parens=remove
+sp_cond_colon=add
+sp_cond_question=add
+sp_case_label=ignore
+sp_after_new=force
+sp_between_new_paren=remove
+sp_skip_vbrace_tokens=true
+align_keep_tabs=false
+align_with_tabs=false
+align_on_tabstop=false
+align_number_right=false
+align_func_params=false
+align_same_func_call_params=false
+align_var_def_colon=false
+align_var_def_attribute=false
+align_var_def_inline=false
+align_right_cmt_mix=false
+align_on_operator=false
+align_mix_var_proto=false
+align_single_line_func=false
+align_single_line_brace=false
+align_nl_cont=false
+align_left_shift=false
+nl_collapse_empty_body=false
+nl_assign_leave_one_liners=true
+nl_class_leave_one_liners=true
+nl_enum_leave_one_liners=true
+nl_getset_leave_one_liners=true
+nl_func_leave_one_liners=true
+nl_cpp_lambda_leave_one_liners=true
+nl_if_leave_one_liners=false
+nl_oc_msg_leave_one_liner=true
+nl_start_of_file=remove
+nl_end_of_file=force
+nl_end_of_file_min=1
+nl_assign_brace=force
+nl_enum_brace=force
+nl_struct_brace=force
+nl_union_brace=force
+nl_if_brace=force
+nl_brace_else=force
+nl_else_brace=force
+nl_else_if=remove
+nl_brace_finally=force
+nl_finally_brace=force
+nl_try_brace=force
+nl_getset_brace=force
+nl_for_brace=force
+nl_catch_brace=force
+nl_brace_catch=force
+nl_while_brace=force
+nl_using_brace=force
+nl_brace_brace=ignore
+nl_do_brace=force
+nl_brace_while=force
+nl_switch_brace=force
+nl_multi_line_cond=false
+nl_before_case=false
+nl_after_case=false
+nl_case_colon_brace=force
+nl_namespace_brace=force
+nl_template_class=ignore
+nl_class_brace=force
+nl_fdef_brace=force
+nl_after_semicolon=false
+nl_after_brace_open=false
+nl_after_brace_open_cmt=false
+nl_after_vbrace_open=false
+nl_after_vbrace_open_empty=false
+nl_after_brace_close=false
+nl_after_vbrace_close=false
+nl_squeeze_ifdef=false
+nl_ds_struct_enum_cmt=false
+nl_ds_struct_enum_close_brace=false
+nl_namespace_two_to_one_liner=false
+nl_create_if_one_liner=false
+nl_create_for_one_liner=false
+nl_create_while_one_liner=false
+nl_create_func_def_one_liner=false
+ls_for_split_full=false
+ls_func_split_full=false
+nl_max=3
+nl_after_func_body=2
+nl_after_multiline_comment=false
+nl_property_brace=force
+eat_blanks_after_open_brace=true
+eat_blanks_before_close_brace=true
+nl_after_return=false
+mod_full_brace_if_chain=false
+mod_paren_on_return=ignore
+mod_pawn_semicolon=false
+mod_full_paren_if_bool=false
+mod_remove_extra_semicolon=true
+mod_move_case_break=false
+mod_remove_empty_return=true
+cmt_convert_tab_to_spaces=True
+cmt_indent_multi=false
+cmt_c_group=false
+cmt_c_nl_start=false
+cmt_c_nl_end=false
+cmt_cpp_group=false
+cmt_cpp_nl_start=false
+cmt_cpp_nl_end=false
+cmt_cpp_to_c=false
+cmt_star_cont=false
+cmt_multi_check_last=false
+cmt_insert_before_preproc=false
+pp_space=ignore
+use_options_overriding_for_qt_macros=false
+warn_level_tabs_found_in_verbatim_string_literals=1
+mod_add_long_ifdef_else_comment=0
+mod_add_long_ifdef_endif_comment=0
+
+
+
+# Setting this 'false' will cause an extra tab to be added to function call args from an assignment:
+#
+# x = o.Func2(a, b,
+# y);
+# o.Func2(a, b,
+# y);
+#
+# ...but setting it 'true' is often worse:
+#
+# ExtraReallyLongType reallyLongVariableName = someTest
+# ? someTrueExpr
+# : someFalseExpr
+#
+# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or,
+# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did.
+# (currently unreported)
+indent_align_assign=false
+
+# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space
+# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++
+# comment line at the same level of indentation.
+# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us
+# (test using Runtime/Allocator/BucketAllocator.h)
+# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further
+#sp_cmt_cpp_start=add
+sp_cmt_cpp_start=ignore
+
+# https://sourceforge.net/p/uncrustify/bugs/619/
+#sp_endif_cmt=force
+sp_endif_cmt=ignore
+
+# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example:
+# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp
+#nl_cpp_ldef_brace=force
+indent_paren_open_brace=true
+indent_cs_delegate_brace=false
+indent_paren_close=2
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_1637.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_1637.cfg new file mode 100644 index 00000000..d083d613 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_1637.cfg @@ -0,0 +1,287 @@ +input_tab_size=4 +string_replace_tab_chars=true +tok_split_gte=false +disable_processing_cmt=*begin-nonstandard-formatting* +enable_processing_cmt=*end-nonstandard-formatting* +utf8_bom=remove +utf8_byte=false +utf8_force=false +indent_columns=4 +indent_with_tabs=0 +indent_cmt_with_tabs=false +indent_align_string=false +indent_braces=false +indent_braces_no_func=false +indent_braces_no_class=false +indent_braces_no_struct=false +indent_brace_parent=false +indent_cs_delegate_brace=true +indent_namespace=true +indent_extern=false +indent_class=true +indent_class_colon=false +indent_else_if=false +indent_var_def_cont=false +indent_func_call_param=true +indent_func_def_param=true +indent_func_proto_param=true +indent_func_class_param=false +indent_func_ctor_var_param=false +indent_template_param=false +indent_func_param_double=false +indent_member_single=false +indent_relative_single_line_comments=false +indent_switch_case=4 +indent_case_shift=0 +indent_case_brace=0 +indent_col1_comment=false +indent_label=-4 +indent_access_spec=-4 +indent_paren_nl=false +indent_comma_paren=false +indent_bool_paren=false +indent_first_bool_expr=false +indent_square_nl=false +indent_preserve_sql=false +indent_align_paren=false +indent_oc_block_msg_xcode_style=true +indent_off_after_return_new=true +indent_single_after_return=true +sp_arith=add +sp_assign=add +sp_assign_default=add +sp_enum_assign=add +sp_pp_concat=remove +sp_pp_stringify=remove +sp_bool=add +sp_compare=add +sp_inside_paren=remove +sp_paren_paren=remove +sp_balance_nested_parens=false +sp_paren_brace=force +sp_after_type=ignore +sp_template_angle=remove +sp_before_angle=remove +sp_inside_angle=remove +sp_angle_paren=remove +sp_angle_paren_empty=remove +sp_angle_word=add +sp_angle_shift=remove +sp_before_sparen=force +sp_inside_sparen=remove +sp_after_sparen=add +sp_sparen_brace=force +sp_special_semi=force +sp_before_semi=remove +sp_before_semi_for=remove +sp_before_semi_for_empty=remove +sp_between_semi_for_empty=remove +sp_after_semi=add +sp_after_semi_for=force +sp_after_semi_for_empty=remove +sp_before_square=remove +sp_before_squares=remove +sp_inside_square=remove +sp_after_comma=add +sp_before_comma=ignore +sp_after_mdatype_commas=remove +sp_before_mdatype_commas=remove +sp_between_mdatype_commas=remove +sp_paren_comma=remove +sp_after_class_colon=force +sp_before_class_colon=force +sp_before_case_colon=remove +sp_after_operator=remove +sp_after_operator_sym=remove +sp_after_operator_sym_empty=remove +sp_after_cast=remove +sp_inside_paren_cast=remove +sp_cpp_cast_paren=remove +sp_sizeof_paren=remove +sp_inside_braces_enum=add +sp_inside_braces_empty=remove +sp_type_func=ignore +sp_func_proto_paren=remove +sp_func_def_paren=remove +sp_inside_fparens=remove +sp_inside_fparen=remove +sp_fparen_brace=add +sp_func_call_paren=remove +sp_func_call_paren_empty=remove +sp_func_call_user_paren=remove +sp_func_class_paren=remove +sp_return_paren=add +sp_defined_paren=remove +sp_throw_paren=add +sp_catch_paren=add +sp_brace_typedef=add +sp_getset_brace=add +sp_after_dc=remove +sp_not=remove +sp_inv=remove +sp_addr=remove +sp_member=remove +sp_deref=remove +sp_sign=remove +sp_incdec=remove +sp_before_nl_cont=add +sp_after_oc_scope=force +sp_after_oc_colon=remove +sp_before_oc_colon=remove +sp_after_oc_dict_colon=force +sp_before_oc_dict_colon=remove +sp_after_send_oc_colon=force +sp_before_send_oc_colon=remove +sp_after_oc_type=remove +sp_after_oc_return_type=remove +sp_after_oc_at_sel=remove +sp_inside_oc_at_sel_parens=remove +sp_cond_colon=add +sp_cond_question=add +sp_case_label=ignore +sp_after_new=force +sp_between_new_paren=remove +sp_skip_vbrace_tokens=true +align_keep_tabs=false +align_with_tabs=false +align_on_tabstop=false +align_number_right=false +align_func_params=false +align_same_func_call_params=false +align_var_def_colon=false +align_var_def_attribute=false +align_var_def_inline=false +align_right_cmt_mix=false +align_on_operator=false +align_mix_var_proto=false +align_single_line_func=false +align_single_line_brace=false +align_nl_cont=false +align_left_shift=false +nl_collapse_empty_body=false +nl_assign_leave_one_liners=true +nl_class_leave_one_liners=true +nl_enum_leave_one_liners=true +nl_getset_leave_one_liners=true +nl_func_leave_one_liners=true +nl_cpp_lambda_leave_one_liners=true +nl_if_leave_one_liners=false +nl_oc_msg_leave_one_liner=true +nl_start_of_file=remove +nl_end_of_file=force +nl_end_of_file_min=1 +nl_assign_brace=force +nl_enum_brace=force +nl_struct_brace=force +nl_union_brace=force +nl_if_brace=force +nl_brace_else=force +nl_else_brace=force +nl_else_if=remove +nl_brace_finally=force +nl_finally_brace=force +nl_try_brace=force +nl_getset_brace=force +nl_for_brace=force +nl_catch_brace=force +nl_brace_catch=force +nl_while_brace=force +nl_using_brace=force +nl_brace_brace=ignore +nl_do_brace=force +nl_brace_while=force +nl_switch_brace=force +nl_multi_line_cond=false +nl_before_case=false +nl_after_case=false +nl_case_colon_brace=force +nl_namespace_brace=force +nl_template_class=ignore +nl_class_brace=force +nl_fdef_brace=force +nl_after_semicolon=false +nl_after_brace_open=false +nl_after_brace_open_cmt=false +nl_after_vbrace_open=false +nl_after_vbrace_open_empty=false +nl_after_brace_close=false +nl_after_vbrace_close=false +nl_squeeze_ifdef=false +nl_ds_struct_enum_cmt=false +nl_ds_struct_enum_close_brace=false +nl_namespace_two_to_one_liner=false +nl_create_if_one_liner=false +nl_create_for_one_liner=false +nl_create_while_one_liner=false +nl_create_func_def_one_liner=false +ls_for_split_full=false +ls_func_split_full=false +nl_max=3 +nl_after_func_body=2 +nl_after_multiline_comment=false +nl_property_brace=force +eat_blanks_after_open_brace=true +eat_blanks_before_close_brace=true +nl_after_return=false +mod_full_brace_if_chain=false +mod_pawn_semicolon=false +mod_full_paren_if_bool=false +mod_remove_extra_semicolon=true +mod_move_case_break=false +mod_remove_empty_return=true +cmt_convert_tab_to_spaces=True +cmt_indent_multi=false +cmt_c_group=false +cmt_c_nl_start=false +cmt_c_nl_end=false +cmt_cpp_group=false +cmt_cpp_nl_start=false +cmt_cpp_nl_end=false +cmt_cpp_to_c=false +cmt_star_cont=false +cmt_multi_check_last=false +cmt_insert_before_preproc=false +pp_space=ignore +use_options_overriding_for_qt_macros=false +warn_level_tabs_found_in_verbatim_string_literals=1 +mod_add_long_ifdef_else_comment=0 +mod_add_long_ifdef_endif_comment=0 + + + +# Setting this 'false' will cause an extra tab to be added to function call args from an assignment: +# +# x = o.Func2(a, b, +# y); +# o.Func2(a, b, +# y); +# +# ...but setting it 'true' is often worse: +# +# ExtraReallyLongType reallyLongVariableName = someTest +# ? someTrueExpr +# : someFalseExpr +# +# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or, +# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did. +# (currently unreported) +indent_align_assign=false + +# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space +# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++ +# comment line at the same level of indentation. +# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us +# (test using Runtime/Allocator/BucketAllocator.h) +# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further +#sp_cmt_cpp_start=add +sp_cmt_cpp_start=ignore + +# https://sourceforge.net/p/uncrustify/bugs/619/ +#sp_endif_cmt=force +sp_endif_cmt=ignore + +# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example: +# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp +#nl_cpp_ldef_brace=force + +mod_paren_on_return=remove diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_1650.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_1650.cfg new file mode 100644 index 00000000..730c4250 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_1650.cfg @@ -0,0 +1,288 @@ +input_tab_size=4
+string_replace_tab_chars=true
+tok_split_gte=false
+disable_processing_cmt=*begin-nonstandard-formatting*
+enable_processing_cmt=*end-nonstandard-formatting*
+utf8_bom=remove
+utf8_byte=false
+utf8_force=false
+indent_columns=4
+indent_with_tabs=0
+indent_cmt_with_tabs=false
+indent_align_string=false
+indent_braces=false
+indent_braces_no_func=false
+indent_braces_no_class=false
+indent_braces_no_struct=false
+indent_brace_parent=false
+indent_cs_delegate_brace=true
+indent_namespace=true
+indent_extern=false
+indent_class=true
+indent_class_colon=false
+indent_else_if=false
+indent_var_def_cont=false
+indent_func_call_param=true
+indent_func_def_param=true
+indent_func_proto_param=true
+indent_func_class_param=false
+indent_func_ctor_var_param=false
+indent_template_param=false
+indent_func_param_double=false
+indent_relative_single_line_comments=false
+indent_switch_case=4
+indent_case_shift=0
+indent_case_brace=0
+indent_col1_comment=false
+indent_label=-4
+indent_access_spec=-4
+indent_paren_nl=false
+indent_comma_paren=false
+indent_bool_paren=false
+indent_first_bool_expr=false
+indent_square_nl=false
+indent_preserve_sql=false
+indent_align_paren=false
+indent_oc_block_msg_xcode_style=true
+indent_off_after_return_new=true
+indent_single_after_return=true
+sp_arith=add
+sp_assign=add
+sp_assign_default=add
+sp_enum_assign=add
+sp_pp_concat=remove
+sp_pp_stringify=remove
+sp_bool=add
+sp_compare=add
+sp_inside_paren=remove
+sp_paren_paren=remove
+sp_balance_nested_parens=false
+sp_paren_brace=force
+sp_after_type=ignore
+sp_template_angle=remove
+sp_before_angle=remove
+sp_inside_angle=remove
+sp_angle_paren=remove
+sp_angle_paren_empty=remove
+sp_angle_word=add
+sp_angle_shift=remove
+sp_before_sparen=force
+sp_inside_sparen=remove
+sp_after_sparen=add
+sp_sparen_brace=force
+sp_special_semi=force
+sp_before_semi=remove
+sp_before_semi_for=remove
+sp_before_semi_for_empty=remove
+sp_between_semi_for_empty=remove
+sp_after_semi=add
+sp_after_semi_for=force
+sp_after_semi_for_empty=remove
+sp_before_square=remove
+sp_before_squares=remove
+sp_inside_square=remove
+sp_after_comma=add
+sp_before_comma=ignore
+sp_after_mdatype_commas=remove
+sp_before_mdatype_commas=remove
+sp_between_mdatype_commas=remove
+sp_paren_comma=remove
+sp_after_class_colon=force
+sp_before_class_colon=force
+sp_before_case_colon=remove
+sp_after_operator=remove
+sp_after_operator_sym=remove
+sp_after_operator_sym_empty=remove
+sp_after_cast=remove
+sp_inside_paren_cast=remove
+sp_cpp_cast_paren=remove
+sp_sizeof_paren=remove
+sp_inside_braces_enum=add
+sp_inside_braces_empty=remove
+sp_type_func=ignore
+sp_func_proto_paren=remove
+sp_func_def_paren=remove
+sp_inside_fparens=remove
+sp_inside_fparen=remove
+sp_fparen_brace=add
+sp_func_call_paren=remove
+sp_func_call_paren_empty=remove
+sp_func_call_user_paren=remove
+sp_func_class_paren=remove
+sp_return_paren=add
+sp_defined_paren=remove
+sp_throw_paren=add
+sp_catch_paren=add
+sp_getset_brace=add
+sp_after_dc=remove
+sp_not=remove
+sp_inv=remove
+sp_addr=remove
+sp_member=remove
+sp_deref=remove
+sp_sign=remove
+sp_incdec=remove
+sp_before_nl_cont=add
+sp_after_oc_scope=force
+sp_after_oc_colon=remove
+sp_before_oc_colon=remove
+sp_after_oc_dict_colon=force
+sp_before_oc_dict_colon=remove
+sp_after_send_oc_colon=force
+sp_before_send_oc_colon=remove
+sp_after_oc_type=remove
+sp_after_oc_return_type=remove
+sp_after_oc_at_sel=remove
+sp_inside_oc_at_sel_parens=remove
+sp_cond_colon=add
+sp_cond_question=add
+sp_case_label=ignore
+sp_after_new=force
+sp_between_new_paren=remove
+sp_skip_vbrace_tokens=true
+align_keep_tabs=false
+align_with_tabs=false
+align_on_tabstop=false
+align_number_right=false
+align_func_params=false
+align_same_func_call_params=false
+align_var_def_colon=false
+align_var_def_attribute=false
+align_var_def_inline=false
+align_right_cmt_mix=false
+align_on_operator=false
+align_mix_var_proto=false
+align_single_line_func=false
+align_single_line_brace=false
+align_nl_cont=false
+align_left_shift=false
+nl_collapse_empty_body=false
+nl_assign_leave_one_liners=true
+nl_class_leave_one_liners=true
+nl_enum_leave_one_liners=true
+nl_getset_leave_one_liners=true
+nl_func_leave_one_liners=true
+nl_cpp_lambda_leave_one_liners=true
+nl_if_leave_one_liners=false
+nl_oc_msg_leave_one_liner=true
+nl_start_of_file=remove
+nl_end_of_file=force
+nl_end_of_file_min=1
+nl_assign_brace=force
+nl_enum_brace=force
+nl_struct_brace=force
+nl_union_brace=force
+nl_if_brace=force
+nl_brace_else=force
+nl_else_brace=force
+nl_else_if=remove
+nl_brace_finally=force
+nl_finally_brace=force
+nl_try_brace=force
+nl_getset_brace=force
+nl_for_brace=force
+nl_catch_brace=force
+nl_brace_catch=force
+nl_while_brace=force
+nl_using_brace=force
+nl_brace_brace=ignore
+nl_do_brace=force
+nl_brace_while=force
+nl_switch_brace=force
+nl_multi_line_cond=false
+nl_before_case=false
+nl_after_case=false
+nl_case_colon_brace=force
+nl_namespace_brace=force
+nl_template_class=ignore
+nl_class_brace=force
+nl_fdef_brace=force
+nl_after_semicolon=false
+nl_after_brace_open=false
+nl_after_brace_open_cmt=false
+nl_after_vbrace_open=false
+nl_after_vbrace_open_empty=false
+nl_after_brace_close=false
+nl_after_vbrace_close=false
+nl_squeeze_ifdef=false
+nl_ds_struct_enum_cmt=false
+nl_ds_struct_enum_close_brace=false
+nl_namespace_two_to_one_liner=false
+nl_create_if_one_liner=false
+nl_create_for_one_liner=false
+nl_create_while_one_liner=false
+nl_create_func_def_one_liner=false
+ls_for_split_full=false
+ls_func_split_full=false
+nl_max=3
+nl_after_func_body=2
+nl_after_multiline_comment=false
+nl_property_brace=force
+eat_blanks_after_open_brace=true
+eat_blanks_before_close_brace=true
+nl_after_return=false
+mod_full_brace_if_chain=false
+mod_paren_on_return=ignore
+mod_pawn_semicolon=false
+mod_full_paren_if_bool=false
+mod_remove_extra_semicolon=true
+mod_move_case_break=false
+mod_remove_empty_return=true
+cmt_convert_tab_to_spaces=True
+cmt_indent_multi=false
+cmt_c_group=false
+cmt_c_nl_start=false
+cmt_c_nl_end=false
+cmt_cpp_group=false
+cmt_cpp_nl_start=false
+cmt_cpp_nl_end=false
+cmt_cpp_to_c=false
+cmt_star_cont=false
+cmt_multi_check_last=false
+cmt_insert_before_preproc=false
+pp_space=ignore
+use_options_overriding_for_qt_macros=false
+warn_level_tabs_found_in_verbatim_string_literals=1
+mod_add_long_ifdef_else_comment=0
+mod_add_long_ifdef_endif_comment=0
+
+
+
+# Setting this 'false' will cause an extra tab to be added to function call args from an assignment:
+#
+# x = o.Func2(a, b,
+# y);
+# o.Func2(a, b,
+# y);
+#
+# ...but setting it 'true' is often worse:
+#
+# ExtraReallyLongType reallyLongVariableName = someTest
+# ? someTrueExpr
+# : someFalseExpr
+#
+# ...except sometimes we really do want that. What we need is an indent_align_assign_threshold, or,
+# better but maybe more complicated, indent_align_assign=ignore to leave alone what the engineer did.
+# (currently unreported)
+indent_align_assign=false
+
+# this is causing a few problems, but usually with block comments and autodoc markup. perhaps only add a space
+# if first letter is not a symbol and this is a standalone comment: not preceded or followed by another c++
+# comment line at the same level of indentation.
+# REVISIT: work was done to have it eliminate space for doxygen markup in c6aca7b, maybe can improve on it for us
+# (test using Runtime/Allocator/BucketAllocator.h)
+# IMPORTANT: see task at https://trello.com/c/wUgiuvbX before going further
+#sp_cmt_cpp_start=add
+sp_cmt_cpp_start=ignore
+
+# https://sourceforge.net/p/uncrustify/bugs/619/
+#sp_endif_cmt=force
+sp_endif_cmt=ignore
+
+# want to turn this on, but can't do it without also getting alignment right. try running it on this file as an example:
+# Tools\BugReporterV2\qt_face\lib\src\MainWindow.cpp
+#nl_cpp_ldef_brace=force
+indent_cs_delegate_body=true
+indent_paren_open_brace=true
+indent_member_single=true
+indent_paren_close=2
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_620.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_620.cfg new file mode 100644 index 00000000..4486cd45 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/bug_620.cfg @@ -0,0 +1,5 @@ +indent_class = true +nl_getset_leave_one_liners = true +nl_getset_brace = force +nl_after_brace_close = true +nl_property_brace = force
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/comma-cs-f.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/comma-cs-f.cfg new file mode 100644 index 00000000..6ea5a2af --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/comma-cs-f.cfg @@ -0,0 +1,4 @@ +sp_after_comma = force +sp_after_mdatype_commas = force +sp_before_mdatype_commas = force +sp_between_mdatype_commas = force diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/comma-cs-i.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/comma-cs-i.cfg new file mode 100644 index 00000000..f78c61b3 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/comma-cs-i.cfg @@ -0,0 +1,4 @@ +sp_after_comma = ignore +sp_after_mdatype_commas = ignore +sp_before_mdatype_commas = ignore +sp_between_mdatype_commas = ignore diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/comma-cs-r.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/comma-cs-r.cfg new file mode 100644 index 00000000..626b6ff1 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/comma-cs-r.cfg @@ -0,0 +1,4 @@ +sp_after_comma = remove +sp_after_mdatype_commas = remove +sp_before_mdatype_commas = remove +sp_between_mdatype_commas = remove diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/cs_generics.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/cs_generics.cfg new file mode 100644 index 00000000..e4320a80 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/cs_generics.cfg @@ -0,0 +1,5 @@ +sp_before_angle = remove +sp_inside_angle = remove +sp_angle_paren_empty = remove +sp_angle_shift = remove +sp_sizeof_paren = remove
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/getset.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/getset.cfg new file mode 100644 index 00000000..1e1ab8e9 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/getset.cfg @@ -0,0 +1,2 @@ +indent_with_tabs = 0 +nl_getset_brace = force
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/indent-multistring-coulmn1.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/indent-multistring-coulmn1.cfg new file mode 100644 index 00000000..8ce9a4ff --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/indent-multistring-coulmn1.cfg @@ -0,0 +1 @@ +indent_col1_multi_string_literal = True diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/indent_cs_delegate_brace-t.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/indent_cs_delegate_brace-t.cfg new file mode 100644 index 00000000..9a4e6382 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/indent_cs_delegate_brace-t.cfg @@ -0,0 +1 @@ +indent_cs_delegate_brace = true
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/indent_using_block-f.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/indent_using_block-f.cfg new file mode 100644 index 00000000..2bfca802 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/indent_using_block-f.cfg @@ -0,0 +1 @@ +indent_using_block = false
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mda_space_a.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mda_space_a.cfg new file mode 100644 index 00000000..b05558b7 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mda_space_a.cfg @@ -0,0 +1,4 @@ +sp_after_comma = add +sp_after_mdatype_commas = force +sp_before_mdatype_commas = force +sp_between_mdatype_commas = force
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mda_space_c.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mda_space_c.cfg new file mode 100644 index 00000000..9bfcef37 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mda_space_c.cfg @@ -0,0 +1,2 @@ +sp_after_comma = add +sp_between_mdatype_commas = force
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/misc-failures.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/misc-failures.cfg new file mode 100644 index 00000000..36b9e694 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/misc-failures.cfg @@ -0,0 +1,6 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_func_call_param = true +indent_align_assign = false +nl_assign_brace = force +nl_max = 3 diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_full_brace_nl_block_rem_mlcond-0.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_full_brace_nl_block_rem_mlcond-0.cfg new file mode 100644 index 00000000..c187d46a --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_full_brace_nl_block_rem_mlcond-0.cfg @@ -0,0 +1,5 @@ +mod_full_brace_for = remove +mod_full_brace_if = remove +mod_full_brace_nl_block_rem_mlcond = true +mod_full_brace_while = remove +mod_full_brace_using = remove
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_full_brace_nl_block_rem_mlcond-1.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_full_brace_nl_block_rem_mlcond-1.cfg new file mode 100644 index 00000000..800ba158 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_full_brace_nl_block_rem_mlcond-1.cfg @@ -0,0 +1,2 @@ +mod_full_brace_if_chain = true +mod_full_brace_nl_block_rem_mlcond = true
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_full_paren_if_bool.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_full_paren_if_bool.cfg new file mode 100644 index 00000000..f75f8801 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_full_paren_if_bool.cfg @@ -0,0 +1 @@ +mod_full_paren_if_bool = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_sort_using-t.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_sort_using-t.cfg new file mode 100644 index 00000000..805fc734 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mod_sort_using-t.cfg @@ -0,0 +1 @@ +mod_sort_using = true
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mono.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mono.cfg new file mode 100644 index 00000000..726b1eda --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/mono.cfg @@ -0,0 +1,7 @@ + +sp_before_square = add +sp_func_call_paren = force +indent_with_tabs = 0 +indent_class = true +nl_func_var_def_blk = 1 +nl_fdef_brace = add
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/new-constraint-paren-space.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/new-constraint-paren-space.cfg new file mode 100644 index 00000000..f96e03b6 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/new-constraint-paren-space.cfg @@ -0,0 +1 @@ +sp_after_new=force diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sf607.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sf607.cfg new file mode 100644 index 00000000..ac5c0069 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sf607.cfg @@ -0,0 +1,2 @@ +nl_getset_brace = force +nl_property_brace = force
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sort_using_categ.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sort_using_categ.cfg new file mode 100644 index 00000000..bf7f26e6 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sort_using_categ.cfg @@ -0,0 +1,2 @@ +mod_sort_using = true +include_category_0 = "System"
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sp_after_comma-a.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sp_after_comma-a.cfg new file mode 100644 index 00000000..3f67ae0e --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sp_after_comma-a.cfg @@ -0,0 +1 @@ +sp_after_comma = add
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sp_assign-a.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sp_assign-a.cfg new file mode 100644 index 00000000..78ee09f5 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sp_assign-a.cfg @@ -0,0 +1 @@ +sp_assign = add
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sp_between_new_paren.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sp_between_new_paren.cfg new file mode 100644 index 00000000..0a338bd2 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/sp_between_new_paren.cfg @@ -0,0 +1,2 @@ +sp_after_new = force +sp_between_new_paren = remove
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/squeeze-paren-close-Option.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/squeeze-paren-close-Option.cfg new file mode 100644 index 00000000..9d4a4f70 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/squeeze-paren-close-Option.cfg @@ -0,0 +1,7 @@ +indent_columns = 4 +indent_with_tabs = 0 +indent_func_call_param = true +indent_paren_close = 2 +nl_end_of_file = force +nl_end_of_file_min = 1 +nl_squeeze_paren_close = true diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/tcf.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/tcf.cfg new file mode 100644 index 00000000..dd7fa193 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/tcf.cfg @@ -0,0 +1,4 @@ +nl_finally_brace = force +nl_after_try_catch_finally = 3 +nl_around_cs_property = 2 +nl_between_get_set = 2
\ No newline at end of file diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/verbatim_strings.cfg b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/verbatim_strings.cfg new file mode 100644 index 00000000..65e1756d --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/config/cs/verbatim_strings.cfg @@ -0,0 +1,8 @@ +string_replace_tab_chars = true +indent_columns = 4 +indent_class = true + +# needed to suppress warnings about a +# 'Detected non-replaceable tab char in literal string' in +# input/cs/verbatim_strings.cs:4 +warn_level_tabs_found_in_verbatim_string_literals=3 |