That is what i aimed for. Thing is style was not really followed to the letter in some places, and some details were not in the style guide altogether so big diff cant be avoided. Given that i say its pretty small.
I Maybe it is a good place to discuss one style bit too. Naturally i would not suggest it, but if clang-format is adopted it may be a good opportunity for a change.
Currently engine uses:
MyClass::MyClass() :
member1_(0),
member2_(42)
{
}
This is a tiny bit suboptimal, because adding new member initializer to constructor causes two line change. New comma after member2_(42)
and a next new line.
Maybe it would be a good idea to adopt this?
MyClass::MyClass()
: member1_(0)
, member2_(42)
{
}
Adding a new member or removing last member would never cause extra line modifications.
This really is a non-issue, but just a nice thing to have. It is unfortunate that we can have comma after last item of enum, but not after last member initializer in constructor.