On Sat, 17 Feb 2018, Robert Larice wrote:
> Julia Lawall <julia.law...@lip6.fr> writes:
> > On Sat, 17 Feb 2018, Robert Larice wrote:
> >> Hello,
> >> attached is a small example which seems to
> >> break up a comment line,
> >> thus commenting out following lines.
> >> Please look at the "long reuse" line
> >> which will have an open comment when spatch is run,
> >> thus commenting out the following "struct line *options"
> > I also see this undesriable behavior. Thanks for the report.
> > julia
> grepping a bit in the source code I found this:
> perhaps in the vicinity of the issue.
> and there is this comment somewhere:
> (* cpp recognize C comments, so when #define xx (yy) /* comment \n ... */
> * then he has already erased the /* comment. So:
> * - dont eat the start of the comment otherwise afterwards we are in the
> * of a comment and so will problably get a parse error somewhere.
> * - have to recognize comments in cpp_eat_until_nl.
The problem is fixed now.
Cocci mailing list