... | ... | @@ -73,7 +73,7 @@ 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:
|
|
|
* 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`)
|
|
|
|
... | ... | |