Excluding files from data processing?
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
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-259Header 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-198Unfortunately, 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
Quoted 1 line
Have you checked if --ignore fits your use case?
The filter criterium “file name prefix” would often be inappropriate when other implementation details trigger special development concerns.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/b00c5adb1a485321c88450bdaa9e0d9ff93123dc/docs/manual/spatch_options.tex#L261-264
Regards,
Markus
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