[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC] checkpatch: do not warn for multiline paren
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH RFC] checkpatch: do not warn for multiline parenthesized returned value |
Date: |
Tue, 25 Jun 2019 17:12:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 6/21/19 1:28 PM, Paolo Bonzini wrote:
> While indeed we do not want to have
>
> return (a);
>
> it is less clear that this applies to
>
> return (a &&
> b);
>
> Some editors indent more nicely if you have parentheses, and some people's
> eyes may appreciate that as well.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> scripts/checkpatch.pl | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Thanks, I do this semi-regularly.
Reviewed-by: Richard Henderson <address@hidden>
r~