* checkpatch.pl block comment detection fail
@ 2020-12-11 22:11 Doug Evans
2020-12-11 23:31 ` Peter Maydell
0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2020-12-11 22:11 UTC (permalink / raw)
To: QEMU Developers
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
Hi.
The coding style docs don't specify this as being bad:
foo(/*bar=*/true);
which improves readability at the call site.
It's not a style to be used liberally, but sometimes it's helpful.
Alas checkpatch.pl claims this is a block comment.
Would it be ok if I try to fix checkpatch.pl to treat this as ok?
[-- Attachment #2: Type: text/html, Size: 1174 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: checkpatch.pl block comment detection fail
2020-12-11 22:11 checkpatch.pl block comment detection fail Doug Evans
@ 2020-12-11 23:31 ` Peter Maydell
0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2020-12-11 23:31 UTC (permalink / raw)
To: Doug Evans; +Cc: QEMU Developers
On Fri, 11 Dec 2020 at 22:54, Doug Evans <dje@google.com> wrote:
>
> Hi.
>
> The coding style docs don't specify this as being bad:
>
> foo(/*bar=*/true);
>
> which improves readability at the call site.
> It's not a style to be used liberally, but sometimes it's helpful.
>
> Alas checkpatch.pl claims this is a block comment.
>
> Would it be ok if I try to fix checkpatch.pl to treat this as ok?
Well, whether it's good or bad style it's certainly not a block
comment, so it's a bug for checkpatch to call it one. If you want
to dive into that morass of perl feel free :-)
thanks
-- PMM
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-11 23:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11 22:11 checkpatch.pl block comment detection fail Doug Evans
2020-12-11 23:31 ` Peter Maydell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.