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 <n.netherc...@gmail.com> 
> wrote:
> 
> 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

Reply via email to