[RFC] Adjusting position information for SmPL?

From: Markus Elfring

Date: Sun Nov 29 2026 - 09:55:52 EST


Hello,

The data structure “position” of the Coccinelle software contains always
the member “file” so far.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/48e5b573a3cf6496c85bdb5c0c26820ff2f9cd06/docs/Coccilib.3cocci#L36-102
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/48e5b573a3cf6496c85bdb5c0c26820ff2f9cd06/python/python_documentation.md#user-content-coccimake_positionfl-fn-startl-startc-endl-endc

I got the impression that such position metavariables tend to refer to places
in the same source file for several use cases.
Thus I imagine that it can be helpful to avoid the copying of repeated file data.
How do you think about to refine the corresponding data model accordingly?

Regards,
Markus