1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

coding style: document how to break a function declaration

This commit is contained in:
Luca Boccassi 2020-08-20 12:11:26 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 037857507a
commit 7489ccc350

View File

@ -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