Update 'Coding Style'
parent
56af6c3efd
commit
915dcbd7c0
1 changed files with 7 additions and 18 deletions
|
@ -51,25 +51,14 @@ while ((c = *str++))
|
|||
}
|
||||
```
|
||||
Continuation lines should align wrapped elements either vertically using Python’s implicit line joining inside parentheses, brackets and braces, or using a hanging indent [1]. When using a hanging indent the following should be considered; there should be no arguments on the first line and further indentation should be used to clearly distinguish itself as a continuation line:
|
||||
```c
|
||||
error = initialize_tagtree(&prec_control->tag_inclusion,
|
||||
prec_control->numCbX,
|
||||
prec_control->numCbY,
|
||||
prec_control->numCbZ,
|
||||
prec_control->numCbTS)
|
||||
exit(error);
|
||||
```
|
||||
```c
|
||||
error = initialize_tagtree(
|
||||
&prec_control->tag_inclusion,
|
||||
prec_control->numCbX,
|
||||
prec_control->numCbY,
|
||||
prec_control->numCbZ,
|
||||
prec_control->numCbTS);
|
||||
exit(error);
|
||||
```
|
||||
### Braces
|
||||
|
||||
### Braces
|
||||
```c
|
||||
prec_control->numCodeblocks_a = (uint64)(prec_control->numCbX
|
||||
* prec_control->numCbY
|
||||
* prec_control->numCbZ
|
||||
* prec_control->numCbTS);
|
||||
```
|
||||
### Functions
|
||||
### Derived Types
|
||||
|
||||
|
|
Loading…
Reference in a new issue