... | ... | @@ -74,8 +74,9 @@ Many of the rules of the [FreeBS kernel style](https://www.freebsd.org/cgi/man.c |
|
|
* function and variable declaration and definition
|
|
|
* **Never** declare or define functions with empty brackets. Always use `void`.
|
|
|
* When defining/declaring a reference or pointer, **always** attach the `*` or `&` to the variable:
|
|
|
* `void func(struct A *a)` (**NOT** `void func(struct A* a)` or `void func(struct A * a)`)
|
|
|
* `const MyClass &ref` (**NOT** `const MyClass& ref` or `const MyClass & ref`)
|
|
|
* `void func(struct A *a)` (**not** `void func(struct A* a)` nor `void func(struct A * a)`)
|
|
|
* `const MyClass &ref` (**not** `const MyClass& ref` nor `const MyClass & ref`)
|
|
|
* `int *func(void)` (**not** `int* func(void)` nor `int * func(void)`)
|
|
|
|
|
|
## Doxygen
|
|
|
|
... | ... | |