[Cocci] a small nuisance report

Robert Larice Robert.Larice at t-online.de
Sun Apr 29 21:10:40 CEST 2018


Julia Lawall <julia.lawall at lip6.fr> writes:

> On Sun, 29 Apr 2018, Robert Larice wrote:
>
>> Julia Lawall <julia.lawall at lip6.fr> writes:
>>
>> > On Sun, 29 Apr 2018, Robert Larice wrote:
>> >
>> >> Hello,
>> >>
>> >>   attached is a small example which
>> >>     injects a statement and a comment.
>> >>
>> >>   It works well, but does'nt do exactly as wanted.
>> >>
>> >>   I get :
>> >>
>> >> +    j /* comments are overrated */
>> >> +    -= 3;
>> >>
>> >>   The comment popped up within the expression instead
>> >>     of in front of it.
>> >>   no bug, but uggly.
>> >
>> > This problem is solve in the github version of Coccinelle.  The problem
>> > was because j was declared as a symbol.
>> >
>> > julia
>>
>> Thank You,
>>
>>   so I could work around by simply using an "identifier"
>>     perhaps augmented with a regexp match.
>
> No, just pull from github and recompile.
>
> julia

just did, and it just works,
Thanks,
  Robert


More information about the Cocci mailing list