Add uncrustify config file

This commit is contained in:
Alibek Omarov 2024-04-08 07:37:07 +03:00
parent 1677835b45
commit 0c306bcb88
1 changed files with 66 additions and 0 deletions

66
uncrustify.cfg Normal file
View File

@ -0,0 +1,66 @@
# NOTE: Uncrustify 0.78 is required
newlines = lf
cmt_indent_multi = false
indent_with_tabs = 2
indent_align_string = true
align_with_tabs = false
align_on_tabstop = false
align_keep_extra_space = false
align_var_def_span = 3
align_var_def_colon = true
align_var_def_star_style = 2
align_var_def_amp_style = 2
align_var_def_thresh = 10
align_enum_equ_span = 5
align_var_class_span = 3
align_var_struct_span = 3
align_right_cmt_span = 2
align_right_cmt_same_level = true
align_pp_define_span = 1
align_func_params = true
align_func_params_span = 1
align_number_right = true
align_nl_cont = 1
pos_arith = lead
pos_assign = lead
pos_bool = lead
pos_compare = lead
pos_conditional = lead
pos_comma = trail
pos_shift = lead
sp_arith = force
sp_assign = force
sp_enum_assign = force
sp_pp_concat = force
sp_pp_stringify = remove
sp_bool = force
sp_compare = force
sp_cond_colon = force
sp_cond_question = force
sp_inside_paren = force
sp_inside_paren_cast = remove
sp_paren_paren = remove
sp_cparen_oparen = remove
sp_brace_brace = remove
sp_before_ptr_star = add
sp_type_func = remove
sp_endif_cmt = force
sp_before_tr_cmt = force
sp_num_before_tr_cmt = 1
sp_cmt_cpp_start = add
sp_endif_cmt = add