mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: cocci@inria.fr, tools@kernel.org
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [RFC] Adjusting position information for SmPL?
Date: Sun, 29 Nov 2026 15:55:21 +0100	[thread overview]
Message-ID: <4b8267a1-a434-48cf-a517-ad3ebbf18a6c@web.de> (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

                 reply	other threads:[~2026-11-29 14:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b8267a1-a434-48cf-a517-ad3ebbf18a6c@web.de \
    --to=markus.elfring@web.de \
    --cc=cocci@inria.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tools@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®