> I would prefer to be able to convert
>       *(skb->data + frame_size / 2 + 10)
> not to
>       (skb->data + frame_size / 2)[10]
> but to
>       skb->data[frame_size / 2 + 10]
>
> but I don't know how.

How do you think about a bit more fine-tuning for the desired semantic
patch?

Can it be that the pattern "*(foo + e)" is too generic for any source
code place?
Would you like to try out the specification of a few more elements
instead of a single expression here?

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

Reply via email to