[gnome-kiosk/more-crust-removal: 2/3] scripts: Don't force newline after variable declarations




commit aff15823b94d2135fe39fa51de388a960429ead9
Author: Ray Strode <rstrode redhat com>
Date:   Fri Jul 29 13:33:02 2022 -0400

    scripts: Don't force newline after variable declarations
    
    uncrustify gets confused by g_autoptr, so just leave the blank lines
    up to the author.

 scripts/uncrustify.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/scripts/uncrustify.cfg b/scripts/uncrustify.cfg
index 8d94bbb..5cbfd0c 100644
--- a/scripts/uncrustify.cfg
+++ b/scripts/uncrustify.cfg
@@ -24,7 +24,7 @@ nl_brace_else = remove # "} else" vs "} \n else" - cuddle else
 sp_brace_else = force
 sp_else_brace = force
 nl_func_def_args = add
-nl_func_var_def_blk = 1
+nl_func_var_def_blk = 0
 nl_fcall_brace = remove # "list_for_each() {" vs "list_for_each()\n{"
 nl_fdef_brace = add # "int foo() {" vs "int foo()\n{"
 # nl_after_return = TRUE;


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