[Development] Suggesting update brace placement following a multi-line if condition

Thiago Macieira thiago.macieira at intel.com
Mon Jul 20 03:40:31 CEST 2026


On Sunday, 19 July 2026 14:34:24 Pacific Daylight Time Lorn Potter wrote:
> But then there's a special carve-out of the rules for this one case
> (besides the function exception). To make the original more readable,
> simply use a new blank line after the opening brace.
> 
> and going forward there would be a mismatch of bracing styles for this
> new exception.
> 
> and ewww.. that new style would bother me because it looks out of place.

There's also the possibility of splitting the if into smaller ones and 
assigning variables.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCG - Platform & Sys. Eng.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5176 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20260719/98d18371/attachment.bin>


More information about the Development mailing list