>So that means that our C++ code should look like this then?
>if (blah || boo || foo) { //no line breaking allowed
In that case, yes, because the entire expression is short. And the ctor example
that was used originally would also be on one line. Why not? Does the Qt coding
standard require each expression to be on a separate line? I thought they
should be on separate lines when the list is too long to be on a single line.
martin
________________________________________
From: André Somers <[email protected]>
Sent: Friday, June 3, 2016 9:25:18 AM
To: Martin Smith; [email protected]
Subject: Re: [Development] commas in ctor-init-lists
Op 03/06/2016 om 08:52 schreef Martin Smith:
>> You can do this, given:
> Nobody does that. We always write: * You bla, or you boo, or you foo, and in
> this case we would normally write: You bla, you boo, or you foo. Even better:
> You bla, boo, or foo. You are inventing problems that don't exist.
>
If you say so.
So that means that our C++ code should look like this then?
if (blah || boo || foo) { //no line breaking allowed
something();
}
What a load of nonsense.
André
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development