Hello,

Is it possible to use coccinelle to find the structure/union
members which aren't accessed explicitly, via '.' or '->'?
For example, if I have:

struct foo
{
 int x;
 int y;
 int z;
};

and neither X->z nor Y.z (where X is of type 'struct foo *'
and Y is of type 'struct foo') is used, I would like to
get a message about 'z' from type 'struct foo' is never used.

If this isn't possible just now, consider this as the feature
request for the future versions :-).

Thanks,
Dmitry

_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to