summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJan-Michael Brummer <jan.brummer@tabos.org>2021-02-21 11:40:05 +0100
committerMichael Catanzaro <mcatanzaro@gnome.org>2021-02-21 14:29:43 +0000
commit964d1398f59daa9a6a98b4e9fd5821a3b55fd586 (patch)
treee62c1aa14aadcfad4ce8e8c395fe4b087fd777a7 /data
parent98824524d16dd951350e09204b96046b52094724 (diff)
downloadepiphany-964d1398f59daa9a6a98b4e9fd5821a3b55fd586.tar.gz
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
Diffstat (limited to 'data')
-rw-r--r--data/uncrustify.cfg2
1 files changed, 2 insertions, 0 deletions
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