Re: [cocci] Reacting to negative source code search results with SmPL?
Julia Lawall <[email protected]>
| Newsgroups | fr.inria.cocci |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 15 Nov 2025, Markus Elfring wrote:
> > How will chances evolve for further software improvements?
>
> Corresponding development ideas might follow another SmPL script example.
I have no idea what this is supposed to be an example of.
julia
>
> @my_test_search1@
> identifier action;
> @@
> action(123);
>
> @script:python reporting1@
> id << my_test_search1.action;
> @@
> print(f"The call “{id}” was found.")
>
> @my_test_search2@
> identifier my_test_search1.action;
> @@
> action(456);
>
> @script:python reporting2 depends on ! my_test_search2@
> @@
> print("An undesirable function call was not found.")
>
>
> Regards,
> Markus
>