On Wed, 4 Feb 2015, SF Markus Elfring wrote:

> >> I would have expected that both comments would stay.  I will look into it.
> >> Thanks for the report.
> >
> > In this case removing the comment for the removed variable makes more
> > sense to me.
>
> Would you like to be more explicit in the semantic patch language
> around source code adjustments which should also affect
> corresponding comments?

It seems complicated, and people don't always follow the same comventions.

Probably it is thinking that the code looks like this:

/*some comment on b */
int b;

I could change it so that this strategy is only followed if /*some comment
on b */ starts at the beginning of the line.

julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to