... | ... | @@ -85,6 +85,12 @@ Many of the rules of the [FreeBS kernel style](https://www.freebsd.org/cgi/man.c |
|
|
* type casting
|
|
|
* When casting types to different types always attach the closing parenthesis directly to the cast value/variable:
|
|
|
* `(unsigned long)a` (**not** `(unsigned long) a`)
|
|
|
* When casting pointer types, always leave a single space character between the asterisk and type name:
|
|
|
* `(int *)b` (**not** `(int*)b`)
|
|
|
|
|
|
* templates
|
|
|
* When defining or using types based on templates never place the opening ant closing pointy brackets in such manner that they could be interpreted as `<<` or `>>`.
|
|
|
* `QMap<int, QPair<int, int> >` (**not** `QMap<int, QPair<int, int>>`)
|
|
|
|
|
|
## Doxygen
|
|
|
|
... | ... | |