Skip to contentSkip to conversation

Missing file filters for data processing with SmPL scripts?

cocci Markus Elfring 2 participants 5 messages Nov 15, 2025 – Nov 16, 2025

lore
Share & tools
lore
#0 lore raw

Hello,

The Coccinelle software checks if file filters can be applied by a tool (like “grep”) for the evaluation of scripts in the semantic patch language.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/e6f8731b851f5d76d2731a9d546dc4f0b181526e/docs/manual/spatch_options.tex#L24-25

Under which circumstances do you observe the information “No grep query”?
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/e6f8731b851f5d76d2731a9d546dc4f0b181526e/testing.ml#L660-679

Regards,
Markus

#1 lore raw
Quoted 8 lines · Markus Elfring

Hello,

The Coccinelle software checks if file filters can be applied by a tool (like “grep”) for the evaluation of scripts in the semantic patch language.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/e6f8731b851f5d76d2731a9d546dc4f0b181526e/docs/manual/spatch_options.tex#L24-25

Under which circumstances do you observe the information “No grep query”?
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/e6f8731b851f5d76d2731a9d546dc4f0b181526e/testing.ml#L660-679

When it seems like the query is too complex, or when there is nothing useful to grep for.

julia

Quoted 4 lines

Regards,
Markus

#2 lore raw
Quoted 4 lines
Quoted 2 lines

Under which circumstances do you observe the information “No grep query”?
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/e6f8731b851f5d76d2731a9d546dc4f0b181526e/testing.ml#L660-679

When it seems like the query is too complex,

Can views be reconsidered for SmPL code complexity?

Quoted 2 lines

or when there is nothing
useful to grep for.

Occasionally, I got doubts on software support for selected SmPL script examples.

Regards,
Markus

#3 lore raw
In reply to Julia Lawall
Quoted 4 lines
Quoted 2 lines

Under which circumstances do you observe the information “No grep query”?
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/e6f8731b851f5d76d2731a9d546dc4f0b181526e/testing.ml#L660-679

When it seems like the query is too complex,

I doubt that such (grep) queries can become too challenging so far.

But I got another development idea which indicates concerns in the opposite direction. If a source code search term would be too simple or just very generic,
I imagine that it could exclude filter possibilities from other code parts.

Quoted 2 lines

or when there is nothing
useful to grep for.

Which implementation details would be treated as “uninteresting” so far?

Regards,
Markus