[epiphany] Extend uncrustify rule set



commit 964d1398f59daa9a6a98b4e9fd5821a3b55fd586
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Sun Feb 21 11:40:05 2021 +0100

    Extend uncrustify rule set
    
    Use uncrustify to ensure that we have:
     - a newline after function return types and function name
     - a space between function definition and parenthesis

 data/uncrustify.cfg | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/data/uncrustify.cfg b/data/uncrustify.cfg
index d8975f58f..317a1dac2 100644
--- a/data/uncrustify.cfg
+++ b/data/uncrustify.cfg
@@ -29,6 +29,7 @@ sp_else_brace                            = force
 sp_brace_else                            = force
 sp_func_call_paren                       = force      # "foo (" vs "foo("
 sp_func_proto_paren                      = force      # "int foo ();" vs "int foo();"
+sp_func_def_paren                        = force
 sp_before_ptr_star                       = force
 sp_after_ptr_star_qualifier              = force      # "const char * const" vs. "const char *const"
 sp_after_ptr_star                        = remove
@@ -75,6 +76,7 @@ nl_func_decl_args                        = force
 nl_func_def_args                         = force
 nl_func_decl_end                         = remove
 nl_func_def_end                          = remove
+nl_func_type_name                        = force
 
 # Code modifying options (non-whitespace)
 mod_remove_extra_semicolon               = true


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