[gtksourceview/wip/uncrustify] uncrustify: adapt config to the GtkSourceView coding style



commit dbe6ed3321882ff992098bf89ca01b488e3cd9a7
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Jul 31 14:31:50 2016 +0200

    uncrustify: adapt config to the GtkSourceView coding style
    
    It's hard to find something that suits GtkSourceView.
    
    For example for indent_with_tabs, it should be "1|2", because tabs are
    used for the indentation, but for the alignment either tabs or spaces
    are used and I don't want to change that. I've filed:
    https://sourceforge.net/p/uncrustify/feature-requests/188/
    
    See also:
    https://sourceforge.net/p/uncrustify/feature-requests/125/

 gtksourceview-uncrustify.cfg |   41 +++++++++++++++--------------------------
 1 files changed, 15 insertions(+), 26 deletions(-)
---
diff --git a/gtksourceview-uncrustify.cfg b/gtksourceview-uncrustify.cfg
index 2d41298..e3bbb4c 100644
--- a/gtksourceview-uncrustify.cfg
+++ b/gtksourceview-uncrustify.cfg
@@ -7,17 +7,16 @@ string_escape_char      92
 string_escape_char2     0
 
 # indenting
-indent_columns          2
-indent_with_tabs        0
-indent_align_string     True
-indent_brace            2
+indent_columns          8
+indent_with_tabs        1
+indent_align_string     false
+indent_brace            0
 indent_braces           false
-indent_braces_no_func   True
 indent_func_call_param  false
 indent_func_def_param   false
 indent_func_proto_param false
-indent_switch_case      0
-indent_case_brace       2
+indent_switch_case      8
+indent_case_brace       0
 indent_paren_close      1
 
 # spacing
@@ -56,19 +55,19 @@ sp_cond_question                add
 sp_defined_paren                remove
 
 # alignment
-align_keep_tabs                 False
+align_keep_tabs                 True
 align_with_tabs                 False
 align_on_tabstop                False
 align_number_left               True
 align_func_params               True
 align_var_def_span              0
 align_var_def_amp_style         1
-align_var_def_colon             true
+align_var_def_colon             false
 align_enum_equ_span             0
-align_var_struct_span           2
+align_var_struct_span           0
 align_var_def_star_style        2
 align_var_def_amp_style         2
-align_typedef_span              2
+align_typedef_span              0
 align_typedef_func              0
 align_typedef_star_style        2
 align_typedef_amp_style         2
@@ -79,10 +78,8 @@ nl_enum_leave_one_liners        False
 nl_func_leave_one_liners        False
 nl_if_leave_one_liners          False
 nl_end_of_file                  Add
-nl_assign_brace                 Remove
 nl_func_var_def_blk             1
-nl_fcall_brace                  Add
-nl_enum_brace                   Remove
+nl_enum_brace                   Force
 nl_struct_brace                 Force
 nl_union_brace                  Force
 nl_if_brace                     Force
@@ -112,18 +109,10 @@ nl_after_semicolon              True
 nl_multi_line_cond              true
 
 # mod
-mod_full_brace_for              Remove
-mod_full_brace_if               Remove
-mod_full_brace_while            Remove
-mod_full_brace_do               Remove
-mod_full_brace_nl               3
-mod_paren_on_return             Remove
-
-# line splitting
-#code_width                     = 78
-ls_for_split_full               True
-ls_func_split_full              True
+mod_full_brace_for              Add
+mod_full_brace_if               Add
+mod_full_brace_while            Add
+mod_full_brace_do               Add
 
 # positioning
 pos_bool                        Trail
-pos_conditional                 Lead


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]