> @Delete_unnecessary_checks@ > expression x; > identifier release =~ "^(?x) > (?: > (?:kz?|slob_)free > | > (?: > # alternation/disjunction of 893 strings ... > ) > )$"; > @@ > -if (x) > release(x);
Would it be useful that the shown regular expression could be included from an other source file? How do you think about an extension for the semantic patch language so that such a string could be assigned to a special metavariable with a type like "regex"? Can it be passed from a "virtual" parameter? Regards, Markus _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
