← Back to team overview

unity-dev team mailing list archive

Coding style for opening curly braces

 

Hi,

Everywhere in unity code I see the following coding style:

if (foo)
{
  bar();
}

But the Google coding guidelines present in guides/cppguide.xml says that it should be:

if (foo) {
  bar();
}

So which one is correct, the first (meaning that cppguide.xml has to be updated) or the second?

- Daniel


Follow ups