Skip to contentSkip to conversation

Adjusting position information for SmPL?

RFC Markus Elfring 1 participant 1 message Nov 29

lore
Share & tools
lore
#0 lore raw

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