aboutsummaryrefslogtreecommitdiff
path: root/dev-tools
diff options
context:
space:
mode:
authorGert Doering2018-11-30 14:56:41 +0100
committerDavid Sommerseth2018-12-12 13:43:17 +0100
commitf57431cdc88f22fa4d7962946f0d3187fe058539 (patch)
tree6e606561672de812959563f555c591479d406e81 /dev-tools
parenta7b5993d9d6319c77d80212db61c74060cd7e7f1 (diff)
downloadopenvpn-f57431cdc88f22fa4d7962946f0d3187fe058539.zip
openvpn-f57431cdc88f22fa4d7962946f0d3187fe058539.tar.gz
uncrustify openvpn/ sources
There are an amazing number of brackets that were either totally missing, or have snuck up on the "for(...){" line. Further, uncrustify wants "|" in multi-line logical expressions now at the beginning of the new line, and "PRIi64" now gets surrounding spaces. Added "sp_after_semi_for_empty=Add" to uncrustify.conf to leave a few for() statements alone that look better the way they are. Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: David Sommerseth <davids@openvpn.net> Message-Id: <20181130135641.11533-3-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg17970.html Signed-off-by: David Sommerseth <davids@openvpn.net>
Diffstat (limited to 'dev-tools')
-rw-r--r--dev-tools/uncrustify.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/dev-tools/uncrustify.conf b/dev-tools/uncrustify.conf
index d8ea870..25eb4cd 100644
--- a/dev-tools/uncrustify.conf
+++ b/dev-tools/uncrustify.conf
@@ -60,6 +60,9 @@ mod_add_long_ifdef_else_comment=5
# Misc cleanup
mod_remove_extra_semicolon=true
+# leave blank at end of empty for() statements
+sp_after_semi_for_empty=Add
+
# Use C-style comments (/* .. */)
cmt_c_nl_end=true
cmt_star_cont=true