I need to see your semantic patch, perhaps pattern1.cocci?

Yes ...

See also:
http://lists.diku.dk/pipermail/cocci/2011-December/002305.html

Slightly adjusted variant:
@r@
identifier f;
@@
 f(...)
 {
  ...
 }

@is_void@
identifier r.f;
@@
 void f(...)
 {
  ...
 }

@depends on !is_void@
identifier r.f;
identifier g;
@@
 g(...)
 {<+...
* f(...);
 ...+>}


Does the command "spatch" need any more include parameters in this approach to find also ignored return values from functions that belong to the standard C library?

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

Reply via email to