[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <36196c4e-a09f-3d0d-5a08-68fa53ee740a@web.de>
Date: Fri, 28 Jun 2019 16:16:08 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Julia Lawall <julia.lawall@...6.fr>, cocci@...teme.lip6.fr
Cc: Wen Yang <wen.yang99@....com.cn>, linux-kernel@...r.kernel.org,
Yi Wang <wang.yi59@....com.cn>,
Gilles Muller <Gilles.Muller@...6.fr>,
Nicolas Palix <nicolas.palix@...g.fr>,
Michal Marek <michal.lkml@...kovi.net>,
Masahiro Yamada <yamada.masahiro@...ionext.com>
Subject: Re: [v2] coccinelle: semantic code search for missing of_node_put
>> +x =
>> +(of_…
>> +|of_…
>> +)@p1(...);
>
> Did you actually test this? I doubt that a position metavariable can be
> put on a ) of a disjunction.
Would you ever like to support this possibility?
>> +|return
>> +(x
>> +|of_fwnode_handle(x)
>> +);
>
> The original code is much more readable.
We have got different views around such specification variants.
> The internal representation will be the same.
I imagine that the Coccinelle software might evolve into additional directions.
Regards,
Markus
Powered by blists - more mailing lists