uses of Coccinelle
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
Quoted 2 lines
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
Adjustments achieved together with the semantic patch languageb ?
Regards,
Markus
Quoted 5 lines · SF Markus Elfring
Quoted 2 lines
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.
Quoted 2 lines
Did you try any internet searches out for development topics like b?Adjustments achieved together with the semantic patch languageb??
It's not really obvious what to search for, and such a comment might not be associated with a use of Coccinelle anyway.
julia
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · SF Markus Elfring
Quoted 1 line
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
Quoted 12 lines
Quoted 4 lines
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
Hi Julia,
Quoted 6 lines · Julia Lawall
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
Hello Julia,
Quoted 3 lines · Julia Lawall
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
Quoted 11 lines · Michael Stefaniuc
Hello Julia,
Quoted 3 lines · Julia Lawall
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 codedARRAY_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.
Quoted 4 lines
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