On Thu, Dec 4, 2014 at 8:54 AM, Seth Fowler <s...@mozilla.com> wrote: > So I noticed that we don’t say anything about initializer list formatting in > our coding style guide. I’d like to propose that we standardize this > formatting: > > Foo::Foo(int aBar, char aBaz) > : mBar(aBar) > , mBaz(aBaz) > { > …. > }
This is already present in the example at https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Classes: class MyClass : public X // when deriving from more than one class, put each on its own line , public Y { public: MyClass() : mVar(0) , mVar2(0) { ... } ... }; Nick _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform