Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/xlint




> On Mar 27, 2021, at 8:51 AM, Roland Illig <roland.illig%gmx.de@localhost> wrote:
> 
> On 27.03.2021 08:59, Christos Zoulas wrote:
>> I think we should document we prefer the parenthesized version in style
>> and call it a day.
> 
> Sounds good.  Will it mean that the following code is also preferred to
> use parentheses?  I like the simplicity without the parentheses, but for
> consistency and simplicity of the rule set, I'd also accept the
> parenthesized version.
> 
>    snprintf(buf, sizeof buf, "%s%s", arg1, arg2);

I believe we should be consistent so that folks don't have to think about it.
So parentheses everywhere I guess.

Best,

christos

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index