[gtksourceview: 8/9] uncrustify: tune some parameters, add comments



commit b870ddb0d5e41b9c99f06411b9f6691c9c226e10
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Jan 3 18:24:22 2018 +0100

    uncrustify: tune some parameters, add comments

 scripts/gtksourceview-uncrustify.cfg |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/scripts/gtksourceview-uncrustify.cfg b/scripts/gtksourceview-uncrustify.cfg
index d51d100..4c4acce 100644
--- a/scripts/gtksourceview-uncrustify.cfg
+++ b/scripts/gtksourceview-uncrustify.cfg
@@ -8,6 +8,9 @@ string_escape_char2     = 0
 
 # indenting
 indent_columns          = 8
+# indent_with_tabs: 1 would be correct too, ideally uncrustify should not
+# modify the alignment, either tabs or spaces are fine.
+# See: https://github.com/uncrustify/uncrustify/issues/749
 indent_with_tabs        = 2
 indent_align_string     = false
 indent_brace            = 0
@@ -25,7 +28,7 @@ sp_compare                      = add
 sp_inside_paren                 = remove
 sp_inside_fparens               = remove
 sp_func_def_paren               = force
-sp_func_proto_paren             = force
+sp_func_proto_paren             = add
 sp_paren_paren                  = remove
 sp_balance_nested_parens        = false
 sp_before_square                = remove
@@ -76,7 +79,7 @@ nl_else_brace                   = force
 nl_for_brace                    = force
 nl_while_brace                  = force
 nl_do_brace                     = force
-nl_brace_while                  = force
+nl_brace_while                  = ignore
 nl_switch_brace                 = force
 nl_before_case                  = true
 nl_after_case                   = false
@@ -103,3 +106,6 @@ mod_full_brace_do               = add
 
 # positioning
 pos_bool                        = trail
+
+# comments
+cmt_indent_multi               = false


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