cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* [Cocci] uses of Coccinelle
@ 2018-10-07  6:02 Julia Lawall
  2018-10-08 10:35 ` SF Markus Elfring
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Julia Lawall @ 2018-10-07  6:02 UTC (permalink / raw)
  To: cocci

Hello,

It would be helpful to me to have a list of some things that Coccinelle
has recently been used for.  A one sentence description, would be quite
sufficient.

thanks,
julia

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Cocci] uses of Coccinelle
  2018-10-07  6:02 [Cocci] uses of Coccinelle Julia Lawall
@ 2018-10-08 10:35 ` SF Markus Elfring
  2018-10-08 10:50   ` Julia Lawall
  2018-10-08 11:21 ` Gustavo A. R. Silva
  2018-10-08 19:02 ` Michael Stefaniuc
  2 siblings, 1 reply; 7+ messages in thread
From: SF Markus Elfring @ 2018-10-08 10:35 UTC (permalink / raw)
  To: cocci

> It would be helpful to me to have a list of some things that Coccinelle
> has recently been used for.

Are you looking for use cases and corresponding software applications
which have not been discussed on this mailing list before?

Did you try any internet searches out for development topics like
b\0
Adjustments achieved together with the semantic patch languageb\0
?

Regards,
Markus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Cocci] uses of Coccinelle
  2018-10-08 10:35 ` SF Markus Elfring
@ 2018-10-08 10:50   ` Julia Lawall
       [not found]     ` <192f5b0e-75ba-b399-c25f-14f3d322f735@users.sourceforge.net>
  0 siblings, 1 reply; 7+ messages in thread
From: Julia Lawall @ 2018-10-08 10:50 UTC (permalink / raw)
  To: cocci



On Mon, 8 Oct 2018, SF Markus Elfring wrote:

> > It would be helpful to me to have a list of some things that Coccinelle
> > has recently been used for.
>
> Are you looking for use cases and corresponding software applications
> which have not been discussed on this mailing list before?

Anything is fine.

> Did you try any internet searches out for development topics like
> b?\x1cAdjustments achieved together with the semantic patch languageb?\x1d?

It's not really obvious what to search for, and such a comment might not
be associated with a use of Coccinelle anyway.

julia

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Cocci] uses of Coccinelle
  2018-10-07  6:02 [Cocci] uses of Coccinelle Julia Lawall
  2018-10-08 10:35 ` SF Markus Elfring
@ 2018-10-08 11:21 ` Gustavo A. R. Silva
  2018-10-08 19:02 ` Michael Stefaniuc
  2 siblings, 0 replies; 7+ messages in thread
From: Gustavo A. R. Silva @ 2018-10-08 11:21 UTC (permalink / raw)
  To: cocci

Hi Julia,

On 10/7/18 8:02 AM, Julia Lawall wrote:
> Hello,
> 
> It would be helpful to me to have a list of some things that Coccinelle
> has recently been used for.  A one sentence description, would be quite
> sufficient.
> 

I have used Coccinelle for the following list of things:

- Fix duplicate code
- Add NULL checks on function return values (like devm_kzalloc() and devm_kmemdup())
- Fix error return codes
- Fix NULL pointer dereferences
- Replace open-code with the swap macro
- Constification
- Use true and false for boolean values
- Remove unnecessary NULL checks
- Replace open-code with the PTR_ERR_OR_ZERO macro
- Replace PTR_RET with PTR_ERR_OR_ZERO
- Fix inconsistent IS_ERR and PTR_ERR
- Fix uninitialized variables
- Replace open-code with the ARRAY_SIZE macro
- Fix application of sizeof to pointer
- Fix incorrect bit mask
- Use BUG_ON instead of if condition followed by BUG
- Compress return logic into one line
- Remove unnecessary cast on kmalloc
- Identify potential integer overflows during memory allocation

Thanks
--
Gustavo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Cocci] uses of Coccinelle
       [not found]     ` <192f5b0e-75ba-b399-c25f-14f3d322f735@users.sourceforge.net>
@ 2018-10-08 11:39       ` Julia Lawall
  0 siblings, 0 replies; 7+ messages in thread
From: Julia Lawall @ 2018-10-08 11:39 UTC (permalink / raw)
  To: cocci



On Mon, 8 Oct 2018, SF Markus Elfring wrote:

> > Anything is fine.
>
> How do you think about to reconsider any change possibilities
> which were registered in issue trackers or patchwork instances?

I'm not interested in specific changes, but rather in more general
applications.

julia

>
>
> > It's not really obvious what to search for, and such a comment might not
> > be associated with a use of Coccinelle anyway.
>
> Can any hits appear for SmPL scripts in areas which have not been
> so popular that their transformation results were presented
> on development conferences?
>
> Regards,
> Markus
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Cocci] uses of Coccinelle
  2018-10-07  6:02 [Cocci] uses of Coccinelle Julia Lawall
  2018-10-08 10:35 ` SF Markus Elfring
  2018-10-08 11:21 ` Gustavo A. R. Silva
@ 2018-10-08 19:02 ` Michael Stefaniuc
  2018-10-08 20:20   ` Julia Lawall
  2 siblings, 1 reply; 7+ messages in thread
From: Michael Stefaniuc @ 2018-10-08 19:02 UTC (permalink / raw)
  To: cocci

Hello Julia,

On 10/07/2018 08:02 AM, Julia Lawall wrote:
> It would be helpful to me to have a list of some things that Coccinelle
> has recently been used for.  A one sentence description, would be quite
> sufficient.
I'm using coccinelle exclusively on Wine.
Not doing anything fancy now, just replacing open coded ARRAY_SIZE() (as
that is a late addition to Wine there are quite a lot of those.
Here and then I rerun some of my older scripts, basically janitorial work.

If you're interested in stuff from the past:
- COM cleanup (coccinelle script generating coccinelle scripts, one per
COM interface).
- Open coded *Rect*() function for the Win32 RECT type.


bye
	michael

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Cocci] uses of Coccinelle
  2018-10-08 19:02 ` Michael Stefaniuc
@ 2018-10-08 20:20   ` Julia Lawall
  0 siblings, 0 replies; 7+ messages in thread
From: Julia Lawall @ 2018-10-08 20:20 UTC (permalink / raw)
  To: cocci



On Mon, 8 Oct 2018, Michael Stefaniuc wrote:

> Hello Julia,
>
> On 10/07/2018 08:02 AM, Julia Lawall wrote:
> > It would be helpful to me to have a list of some things that Coccinelle
> > has recently been used for.  A one sentence description, would be quite
> > sufficient.
> I'm using coccinelle exclusively on Wine.
> Not doing anything fancy now, just replacing open coded ARRAY_SIZE() (as
> that is a late addition to Wine there are quite a lot of those.
> Here and then I rerun some of my older scripts, basically janitorial work.
>
> If you're interested in stuff from the past:
> - COM cleanup (coccinelle script generating coccinelle scripts, one per
> COM interface).
> - Open coded *Rect*() function for the Win32 RECT type.

Thanks, that is sufficient information.  Thanks for your help.

julia

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-08 20:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-07  6:02 [Cocci] uses of Coccinelle Julia Lawall
2018-10-08 10:35 ` SF Markus Elfring
2018-10-08 10:50   ` Julia Lawall
     [not found]     ` <192f5b0e-75ba-b399-c25f-14f3d322f735@users.sourceforge.net>
2018-10-08 11:39       ` Julia Lawall
2018-10-08 11:21 ` Gustavo A. R. Silva
2018-10-08 19:02 ` Michael Stefaniuc
2018-10-08 20:20   ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).