summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2021-04-17 23:32:32 +0100
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2021-04-19 11:20:13 +0000
commit885de25eeb2d4852c43f63748e42568636b267f5 (patch)
tree17417939b7167c3b7f40e57d58c7c7fb0dd80502 /data
parentb5b8823d2fa006a65ac941ef97463e0306bca8d2 (diff)
downloadnautilus-885de25eeb2d4852c43f63748e42568636b267f5.tar.gz
uncrustify: Enforce single space after control flow keywords
This is the style we use, but we were missing the uncrustify configuration for it.
Diffstat (limited to 'data')
-rw-r--r--data/uncrustify.cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/uncrustify.cfg b/data/uncrustify.cfg
index 3883681ef..a4777c8f4 100644
--- a/data/uncrustify.cfg
+++ b/data/uncrustify.cfg
@@ -55,6 +55,7 @@ sp_between_ptr_star = remove # "**var" vs "* *var"
sp_inside_paren = remove # "( 1 )" vs "(1)"
sp_inside_fparen = remove # "( 1 )" vs "(1)" - functions
sp_inside_sparen = remove # "( 1 )" vs "(1)" - if/for/etc
+sp_before_sparen = force # "if (" vs "if(" - if/for/etc
sp_after_cast = force # "(int) a" vs "(int)a"
sp_func_call_user_paren = remove # For gettext, "_()" vs. "_ ()"
set func_call_user _ N_ C_ # Needed for sp_after_cast