On Mon, 27 Aug 2012, ron minnich wrote:

> Fatal error: exception Failure("MetaFunc, need more semantic info about id")
>
> [rminnich@myhost i915tool]$ cat spatches-link/nostatic.cocci
> @@
> function f;
> @@
> -static
> f(...){...}
>
>
> This only fails on one file but I'm not sure what to look for ...

Just don't use the metavariable kind function.  It seemed like a good idea
at one time, eg one could write x = y and be sure that y was the name of a
function, rather than having to write a rule to check for that, but it
never really got implemented.

Use identifier instead.

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

Reply via email to