All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] In depth docs & question about include
@ 2014-12-20  9:30 Eliseo Martínez
  2014-12-20 16:06 ` Julia Lawall
  0 siblings, 1 reply; 8+ messages in thread
From: Eliseo Martínez @ 2014-12-20  9:30 UTC (permalink / raw)
  To: cocci

Hi, 

I discovered coccinelle some time ago, and I think it?s an amazing tool that can make a real difference.
Unfortunately, up until now, I?ve had to restrict myself to simple use cases, because existing documentation only scratches the surface.
You can see there are much more advanced things you could do, but for those you don?t find an explanation anywhere. You?re left with trial & error.
So, my question is: Are there plans to produce a book-style, really in-depth explanation of all coccinelle functionality?
I think that would be really necessary if you want bigger adoption/usage.

Now, a concrete question:
Suppose I?m introducing changes that make use of a function declared in ?header.h?.
How would I automatically insert includes for the header, only when it?s not already present?

Thanks, and keep up the hard work.
Eliseo Mart?nez.

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

* [Cocci] In depth docs & question about include
  2014-12-20  9:30 [Cocci] In depth docs & question about include Eliseo Martínez
@ 2014-12-20 16:06 ` Julia Lawall
  2014-12-20 18:07   ` Eliseo Martínez
  0 siblings, 1 reply; 8+ messages in thread
From: Julia Lawall @ 2014-12-20 16:06 UTC (permalink / raw)
  To: cocci

On Sat, 20 Dec 2014, Eliseo Mart?nez wrote:

> Hi,
>
> I discovered coccinelle some time ago, and I think it?s an amazing tool that can make a real difference.
> Unfortunately, up until now, I?ve had to restrict myself to simple use cases, because existing documentation only scratches the surface.
> You can see there are much more advanced things you could do, but for those you don?t find an explanation anywhere. You?re left with trial & error.
> So, my question is: Are there plans to produce a book-style, really in-depth explanation of all coccinelle functionality?
> I think that would be really necessary if you want bigger adoption/usage.

It's not in our current plans.

> Now, a concrete question:
> Suppose I?m introducing changes that make use of a function declared in ?header.h?.
> How would I automatically insert includes for the header, only when it?s not already present?

Inserting includes is a little bit complicated, because everything has to
be attached to something.  You can try the following:

@r@
@@
#include <linux/kernel.h>

@depends on !r@
@@

#include <...>
+#include <linux/kernel.h>

julia

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

* [Cocci] In depth docs & question about include
  2014-12-20 16:06 ` Julia Lawall
@ 2014-12-20 18:07   ` Eliseo Martínez
  2014-12-20 18:46     ` Julia Lawall
  2015-01-07  2:27     ` David Young
  0 siblings, 2 replies; 8+ messages in thread
From: Eliseo Martínez @ 2014-12-20 18:07 UTC (permalink / raw)
  To: cocci


> On 20 Dec 2014, at 17:06, Julia Lawall <julia.lawall@lip6.fr> wrote:
> 
> On Sat, 20 Dec 2014, Eliseo Mart?nez wrote:
> 
>> Hi,
>> 
>> I discovered coccinelle some time ago, and I think it?s an amazing tool that can make a real difference.
>> Unfortunately, up until now, I?ve had to restrict myself to simple use cases, because existing documentation only scratches the surface.
>> You can see there are much more advanced things you could do, but for those you don?t find an explanation anywhere. You?re left with trial & error.
>> So, my question is: Are there plans to produce a book-style, really in-depth explanation of all coccinelle functionality?
>> I think that would be really necessary if you want bigger adoption/usage.
> 
> It's not in our current plans.

Ok. Pity. What?s the preferred way for newcomers to ask questions, then? This email list? IRC?

Thanks.

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

* [Cocci] In depth docs & question about include
  2014-12-20 18:07   ` Eliseo Martínez
@ 2014-12-20 18:46     ` Julia Lawall
  2014-12-20 19:04       ` Derek M Jones
  2015-01-07  2:27     ` David Young
  1 sibling, 1 reply; 8+ messages in thread
From: Julia Lawall @ 2014-12-20 18:46 UTC (permalink / raw)
  To: cocci

On Sat, 20 Dec 2014, Eliseo Mart?nez wrote:

> 
> > On 20 Dec 2014, at 17:06, Julia Lawall <julia.lawall@lip6.fr> wrote:
> > 
> > On Sat, 20 Dec 2014, Eliseo Mart?nez wrote:
> > 
> >> Hi,
> >> 
> >> I discovered coccinelle some time ago, and I think it?s an amazing tool that can make a real difference.
> >> Unfortunately, up until now, I?ve had to restrict myself to simple use cases, because existing documentation only scratches the surface.
> >> You can see there are much more advanced things you could do, but for those you don?t find an explanation anywhere. You?re left with trial & error.
> >> So, my question is: Are there plans to produce a book-style, really in-depth explanation of all coccinelle functionality?
> >> I think that would be really necessary if you want bigger adoption/usage.
> > 
> > It's not in our current plans.
> 
> Ok. Pity. What?s the preferred way for newcomers to ask questions, then? This email list? IRC?

Email is preferred, because then others can benefit from your question.

IRC is OK.

julia

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

* [Cocci] In depth docs & question about include
  2014-12-20 18:46     ` Julia Lawall
@ 2014-12-20 19:04       ` Derek M Jones
  2014-12-20 20:05         ` Julia Lawall
  0 siblings, 1 reply; 8+ messages in thread
From: Derek M Jones @ 2014-12-20 19:04 UTC (permalink / raw)
  To: cocci

Julia,

>> Ok. Pity. What?s the preferred way for newcomers to ask questions, then? This email list? IRC?
>
> Email is preferred, because then others can benefit from your question.

Don't you star in some tutorial videos from a coccinelle workshop?

-- 
Derek M. Jones           Software analysis
tel: +44 (0)1252 520667  blog:shape-of-code.coding-guidelines.com

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

* [Cocci] In depth docs & question about include
  2014-12-20 19:04       ` Derek M Jones
@ 2014-12-20 20:05         ` Julia Lawall
  0 siblings, 0 replies; 8+ messages in thread
From: Julia Lawall @ 2014-12-20 20:05 UTC (permalink / raw)
  To: cocci

On Sat, 20 Dec 2014, Derek M Jones wrote:

> Julia,
> 
> > > Ok. Pity. What?s the preferred way for newcomers to ask questions, then?
> > > This email list? IRC?
> > 
> > Email is preferred, because then others can benefit from your question.
> 
> Don't you star in some tutorial videos from a coccinelle workshop?

Yes.  Concretely, on papers and slides (http://coccinelle.lip6.fr/papers.php), 
there is a tutorial with an associated youtube video.

julia

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

* [Cocci] In depth docs & question about include
  2014-12-20 18:07   ` Eliseo Martínez
  2014-12-20 18:46     ` Julia Lawall
@ 2015-01-07  2:27     ` David Young
  2015-01-07  3:00       ` Derek M Jones
  1 sibling, 1 reply; 8+ messages in thread
From: David Young @ 2015-01-07  2:27 UTC (permalink / raw)
  To: cocci

On Sat, Dec 20, 2014 at 07:07:10PM +0100, Eliseo Mart?nez wrote:
> > On 20 Dec 2014, at 17:06, Julia Lawall <julia.lawall@lip6.fr> wrote:
> > On Sat, 20 Dec 2014, Eliseo Mart?nez wrote:
> >> So, my question is: Are there plans to produce a book-style, really in-depth explanation of all coccinelle functionality?
> > 
> > It's not in our current plans.
> 
> Ok. Pity. What?s the preferred way for newcomers to ask questions,
> then? This email list? IRC?

I would be willing to chip in some money to pay for an experienced
technical writer to create some solid Coccinelle documentation.  This
might be a good project to pitch on Kickstarter or one of the other
crowdfunding sites.

Dave

-- 
David Young
dyoung at pobox.com    Urbana, IL    (217) 721-9981

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

* [Cocci] In depth docs & question about include
  2015-01-07  2:27     ` David Young
@ 2015-01-07  3:00       ` Derek M Jones
  0 siblings, 0 replies; 8+ messages in thread
From: Derek M Jones @ 2015-01-07  3:00 UTC (permalink / raw)
  To: cocci

David,

> I would be willing to chip in some money to pay for an experienced
> technical writer to create some solid Coccinelle documentation.  This
> might be a good project to pitch on Kickstarter or one of the other
> crowdfunding sites.

Yes, Kickstarter sounds like an excellent idea.

We need the O'Reilly book for Coccinelle.
Who might be interested and what sort of cost?

I'm busy with my own book for this year:
http://shape-of-code.coding-guidelines.com/2012/06/22/background-to-my-book-project-empirical-software-engineering-with-r/ 


-- 
Derek M. Jones           Software analysis
tel: +44 (0)1252 520667  blog:shape-of-code.coding-guidelines.com

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

end of thread, other threads:[~2015-01-07  3:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-20  9:30 [Cocci] In depth docs & question about include Eliseo Martínez
2014-12-20 16:06 ` Julia Lawall
2014-12-20 18:07   ` Eliseo Martínez
2014-12-20 18:46     ` Julia Lawall
2014-12-20 19:04       ` Derek M Jones
2014-12-20 20:05         ` Julia Lawall
2015-01-07  2:27     ` David Young
2015-01-07  3:00       ` Derek M Jones

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.