[Project Guidelines and Rules]
Freesynd uses the Google C++ Style Guide for its coding style. But there are rules that are specific to this project.
We also use the recommandations based on this site : https://github.com/cpp-best-practices/cppbestpractices by Jason Turner
Indention with 4 spaces, no tabs.
function lowerCamelCase(param) {
}
or
function lowerCamelCase(param)
{
}
function lowerCamelCase(a lot of parameters <= more then 80 columns
yes alot of them) <= may be without indention
{
}
if (check)
exp = value;
if (really long check <= more then 80 columns
yes very long check)
{
exp = value; <= single line
}
if (check) {
exp = value;
exp = value;
...
}
if (another long check <= more then 80 columns
yes it is long)
{
exp = value;
exp = value;
...
}
switch (var) {
case num0:
break;
case num1:
break;
default:
}