This is how a function call must be formatted:
myfunc(arg1, arg2);
- no space between the name and the (
- space after commas
- standard libraryes
- 3rd party libraries
- imports from this project
Imports must be ordered based on the length of the text
int* b;
The pointer must be on the left side
if (...) {
}
else {
}
- } must be on a line on its own
- { must be on the line with the statement
If the body has one statement, format like this:
if (...) body
- camelCase for variables
- PascalCase for functions
- PascalCase for classes/structs/enums/aliases etc
- camelCase for module names
void myfunc() {
}
or
void myfunc() => ...;
or
void myfunc() =>
...;
- use
//
for single line comments
- Limited to 85 characters
- If lines are too long with paranthesis, split like this:
... (
...
)
...