diff options
author | Luca Boccassi <bluca@debian.org> | 2020-08-20 13:11:26 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-08-20 13:19:28 +0200 |
commit | 7489ccc350ad61006603d9c7156ac801054d4f10 (patch) | |
tree | b97cb502cc49db0ce7f0ae9df3d51620ad82034e /docs/CODING_STYLE.md | |
parent | man: fix xml tags (diff) | |
download | systemd-7489ccc350ad61006603d9c7156ac801054d4f10.tar.xz systemd-7489ccc350ad61006603d9c7156ac801054d4f10.zip |
coding style: document how to break a function declaration
Diffstat (limited to 'docs/CODING_STYLE.md')
-rw-r--r-- | docs/CODING_STYLE.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/CODING_STYLE.md b/docs/CODING_STYLE.md index 119b9a2640..11cc6222e3 100644 --- a/docs/CODING_STYLE.md +++ b/docs/CODING_STYLE.md @@ -25,6 +25,17 @@ layout: default note that emacs loads `.dir-locals.el` automatically, but vim needs to be configured to load `.vimrc`, see that file for instructions. +- If you break a function declaration over multiple lines, do it like this: + + ```c + void some_function( + int foo, + bool bar, + char baz) { + + int a, b, c; + ``` + - Try to write this: ```c |