On Fri, 4 Nov 2016, Daniel Lezcano wrote:

> On 04/11/2016 22:07, Julia Lawall wrote:
> >
> >
> > On Fri, 4 Nov 2016, Daniel Lezcano wrote:
> >
> >>
> >> Hi Julia,
> >>
> >> thanks for the long explanation. With the great help of Viresh, it is
> >> almost done. However I miss a rule to add a comment description in the
> >> comment cartridge of the changed function.
> >>
> >> /**
> >>
> >>
> >>  * cpuhp_setup_state - Setup hotplug state
> >>  *
> >>  * @state:      The state for which the calls
> >>  * @name:       Name of the callback
> >>  * @startup:    startup callback function
> >>  * @teardown:   teardown callback function
> >> + * @data:       startup/teardown's cookie
> >>  *
> >>  * Installs the callback functions and invokes the startup
> >>  * callback on the present cpus which have already reached
> >>  * the @state.
> >>  */
> >>
> >> Apparently, coccinelle does not like the '@' symbol.
> >>
> >> Is it possible to add such comment ?
> >
> > How did you get Coccinelle to add a line in the middle of a comment at
> > all?  It would indeed have trouble with a @.
>
> Well actually, I didn't. The lines above are to describe what I would
> like to achieve. But if you confirm a @ will put coccinelle in trouble,
> I will manually do the change.

Even without the @ issue, there is no way to add a line in the middle of a
comment.

julia

>
> Thanks for your help.
>
>   -- Daniel
>
> --
>  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
>
> Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
> <http://twitter.com/#!/linaroorg> Twitter |
> <http://www.linaro.org/linaro-blog/> Blog
>
>
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to