Skip to contentSkip to conversation

Excluding files from data processing?

cocci Markus Elfring 2 participants 4 messages Jul 1, 2025 – Jul 10, 2025

lore
Share & tools
lore
#0 lore raw

Hello,

The Coccinelle software supports to work with selected directories.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/b00c5adb1a485321c88450bdaa9e0d9ff93123dc/docs/manual/spatch_options.tex#L249-259

Header files can also be taken into account for some source code analyses.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/b00c5adb1a485321c88450bdaa9e0d9ff93123dc/docs/manual/spatch_options.tex#L196-198

Unfortunately, it can happen then that files would be found for which more desirable data processing can not be performed so far.
(The amount of preprocessing code can occasionally be questionable for example.)

I imagine that advanced file filters would become helpful (so that other software behaviour does not influence run time characteristics in undesirable ways).

Regards,
Markus

#1 lore raw

Have you checked if --ignore fits your use case?

Victor

Quoted 17 lines · Markus Elfring

Hello,

The Coccinelle software supports to work with selected directories.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/b00c5adb1a485321c88450bdaa9e0d9ff93123dc/docs/manual/spatch_options.tex#L249-259

Header files can also be taken into account for some source code analyses.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/b00c5adb1a485321c88450bdaa9e0d9ff93123dc/docs/manual/spatch_options.tex#L196-198

Unfortunately, it can happen then that files would be found for which more desirable data processing can not be performed so far.
(The amount of preprocessing code can occasionally be questionable for example.)

I imagine that advanced file filters would become helpful (so that other software behaviour does not influence run time characteristics in undesirable ways).

Regards,
Markus

#3 lore raw
In reply to Victor Gambier
Quoted 1 line

Have you checked if --ignore fits your use case?

Under which circumstances will file statistics trigger further development considerations?

Command example:
Markus_Elfring@Sonne:…/Projekte/Linux/next-analyses> git checkout next-20250710 && git grep -l -w -F for '*.h' | wc -l …
12634

Regards,
Markus