On Wed, 8 Oct 2014, SF Markus Elfring wrote:

> > I see no reason why a regular expression would be more usefu than a simple
> > list of names.
>
> Would you like to suggest an approach for a search pattern that will work 
> better
> to exclude (!) some functions with a SmPL disjunction instead of a 
> construction
> with a long regular expression in a constraint?

@@
identifier other_functions;
@@

(
 \(function\|names\|that\|are\|of\|no\|interest\)
|
* other_functions
)
  (...)

> > That is, I would expect that the names have nothing to do with each other.
>
> Their relationship was determined by the shown analysis.

Sure, but the only interest of a regular expression is to express, eg all
of the functions that have a name that ends in "alloc" in a concise way.

julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to