On Sat, 8 Mar 2014, SF Markus Elfring wrote:
> > A source code search with the following pattern found 893 functions which
> > check
> > their single parameter.
>
> I am also interested to generate statistics for the declaration of function
> parameters and their use.
> Is it possible to analyse the function parameter list by interfaces from the
> semantic patch language? Can any useful numbers be extracted at this place?
The question is not very precise. I don't know what you mean by analyse,
nor what you mean by interfaces, nor what you mean by useful. You can
write things like:
f(...,T i,...) { ... }
where T is a type and i is an identifier
or
f(...,p,...) { ... }
where p is a parameter
or
f(ps,p,...) { ... }
where ps is a parameter list and p is a parameter.
In declaratin a parameter list, you can also say;
parameter list[n] ps;
and then n is the number of parameters that are matched.
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci