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:
parent
037857507a
commit
7489ccc350
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user