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 examples of this in the tree:
class MyClass : public X
, public Y
{
...
};
irk:/z/moz2/central $ git grep '[^ ] *: *public.*,$' | grep '^[^:]*\.h:'
| wc -l
694
irk:/z/moz2/central $ git grep '^ *: *public.*,$' | grep '^[^:]*\.h:' |
wc -l
200
+1 for making the initializer list formatting explicit though.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform