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
1 changed files with 11 additions and 0 deletions

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