Evolutionary development of a semantic patch using Coccinelle
Evolutionary development of a semantic patch using Coccinelle
Posted Mar 30, 2010 21:51 UTC (Tue) by neilbrown (subscriber, #359)Parent article: Evolutionary development of a semantic patch using Coccinelle
This reminds me of something I would really like to have - a semantic 'grep'.
e.g. 'find all times the field 'next' of structure 'struct foo' is used'
You cannot do this with a regexp as lots of structures have a 'next' and
lots of variables are of type 'struct foo'.
I usually rename 'next' to 'nextX' and recompile, but there must be a faster way.
