Re: Proposal: Standardize initializer list formatting in our coding style guide

2014-12-06 Thread Aryeh Gregor
On Wed, Dec 3, 2014 at 11:54 PM, Seth Fowler 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) > { > …. >

Re: Proposal: Standardize initializer list formatting in our coding style guide

2014-12-04 Thread Cameron McCormack
[Sorry, white space got eaten up in the previous mail...] Nicholas Nethercote wrote: 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

Re: Proposal: Standardize initializer list formatting in our coding style guide

2014-12-04 Thread Cameron McCormack
Nicholas Nethercote wrote: 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 I have encountered far more examp

Re: Proposal: Standardize initializer list formatting in our coding style guide

2014-12-03 Thread Bobby Holley
+1 On Wed, Dec 3, 2014 at 5:37 PM, Seth Fowler wrote: > Yes, looks like it is! It’s not explicitly spelled out though - someone > searching for “initializer list”, say, won’t find it. At a minimum it seems > worth adding an explicit mention in the text. > > - Seth > > > On Dec 3, 2014, at 2:03 P

Re: Proposal: Standardize initializer list formatting in our coding style guide

2014-12-03 Thread Seth Fowler
Yes, looks like it is! It’s not explicitly spelled out though - someone searching for “initializer list”, say, won’t find it. At a minimum it seems worth adding an explicit mention in the text. - Seth > On Dec 3, 2014, at 2:03 PM, Nicholas Nethercote > wrote: > > On Thu, Dec 4, 2014 at 8:54

Re: Proposal: Standardize initializer list formatting in our coding style guide

2014-12-03 Thread Nicholas Nethercote
On Thu, Dec 4, 2014 at 8:54 AM, Seth Fowler 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) > { > …. >