On 9 September 2015 at 15:48, SF Markus Elfring <[email protected]> wrote: >> There is a comment section below, and the hunk removes the first /* >> there instead. > > Does this generated update suggestion fit to your expectations? > > Would you like to express any preferences if specific comments should be > deleted together with some source code or when such annotations should > be preserved for a preprocessor statement?
I was surprised to see it happen, as I was not expecting it, however I think it is a useful feature. In the most part, the code blocks I am removing, if they are titled with a comment, would also want that comment to be removed. (with the caveat that the comment is not attached to the end of another statement as discovered) In this particular instance, the fact that the alignment of the comment being removed from below, is just something that happens in patches from diff, and I think for me that is expected behaviour, (Though if anyone knows how to stop it happening I'd be interested in hearing) but I believe it is not an issue related to Coccinelle. Regards Kieran > > Regards, > Markus _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
