From: julia.lawall@lip6.fr (Julia Lawall) Date: Thu, 9 Jun 2016 18:25:56 +0200 (CEST) Subject: [Cocci] [PATCH] docs/demos: add ++ transformation documentation and demos In-Reply-To: <18cc6dea-37f0-4073-dfe7-fd1be5603645@users.sourceforge.net> References: <1465419046-24096-1-git-send-email-mcgrof@kernel.org> <18cc6dea-37f0-4073-dfe7-fd1be5603645@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Thu, 9 Jun 2016, SF Markus Elfring wrote: > > This perhaps is not the best demo for use of ++ but it > > should suffice. > > Since which release of the Coccinelle software is this notation (double > plus) supported? It's many years old. As a random guess I would say 2010. julia > > This adds some basic documentation for it and a demo. > > Thanks for your approach. > > > > @@ -0,0 +1,28 @@ > > +/* > > + * This can move unused variables declaration and assignment > > Will it be better to refer to "variable declaration"? > > > > + * which is only used in the branch into the branch. Its > > Can this wording be confusing? > > > > + * resticted however to only apply to code where this happens > > Is the word "restricted" appropriate here? > > > > + * doe snot matter. > > Would you like to move a space character here? > > > > + * If you don't use "++" you'll get "already tagged token" error since > > Would the addition of a comma (before "you'll") make sense here? > > > > +You may run into the situation where grammar you specificy for > > Is such a wording confusing? > Will the word "specify" be more appropriate in this context? > > > > +additions. If you are sure that order does not matter you can use the > > Would the addition of a comma (before "you") help in reading? > > > > +If however you have two consecutive tokens that Coccinelle > > +can transform order cannot be guaranteed for how Coccinelle > > How do you think about "? transform, order ?"? > > Regards, > Markus > _______________________________________________ > Cocci mailing list > Cocci at systeme.lip6.fr > https://systeme.lip6.fr/mailman/listinfo/cocci >