summaryrefslogtreecommitdiff
path: root/docs/CODING_STYLE.md
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2020-08-20 12:11:26 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-08-20 13:19:28 +0200
commit7489ccc350ad61006603d9c7156ac801054d4f10 (patch)
treeb97cb502cc49db0ce7f0ae9df3d51620ad82034e /docs/CODING_STYLE.md
parent037857507a50ec74b1dce9fb32ce8d8521378914 (diff)
downloadsystemd-7489ccc350ad61006603d9c7156ac801054d4f10.tar.gz
coding style: document how to break a function declaration
Diffstat (limited to 'docs/CODING_STYLE.md')
-rw-r--r--docs/CODING_STYLE.md11
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