> I’m trying to write a semantic patch to be able to find
> all `long` variables/function parameters in my code.
Can the desired semantic filter approach be also written
without a SmPL disjunction?
Would you like to try the following variant out?
@find_integer_variable@
identifier var;
@@
*long var
... ;
)
@find_integer_within_function_declaration@
identifier func, var;
@@
func(...,
* long var,
...);
)
@find_integer_from_function_definition@
identifier func, var;
@@
func(...,
* long var,
...)
{ ... }
Are you looking for more special cases in your source code?
Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci