Evolutionary development of a semantic patch using Coccinelle
Evolutionary development of a semantic patch using Coccinelle
Posted Mar 31, 2010 7:50 UTC (Wed) by wsa (guest, #52415)In reply to: Evolutionary development of a semantic patch using Coccinelle by neilbrown
Parent article: Evolutionary development of a semantic patch using Coccinelle
Unleashing another feature (regexp), you could do this for static ones:
@@
// Match identifiers starting with "device" for "device_type", "device_driver"...
identifier S ~= "device.*";
identifier name;
expression E;
@@
static struct S name = {
* .groups = E,
};
which matched just a few device_types here.
