public inbox for cocci@systeme.lip6.fr
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: cocci@inria.fr
Subject: [cocci] Completing SmPL metavariable types?
Date: Sun, 5 Apr 2026 07:56:33 +0200	[thread overview]
Message-ID: <272fbb1e-ac55-43c7-aa2b-3fd9ceb60798@web.de> (raw)

Hello!

Metavariables are supported to some degree.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/docs/manual/cocci_syntax.tex#L209-288

A few types are still missing according to the known abstraction hierarchy.

Examples:
* https://en.cppreference.com/w/c/language/operator_other.html#Function_call
  https://en.cppreference.com/w/c/preprocessor/replace.html#Function-like_macros
  Is there a need for a special representation of function/macro calls?

* https://en.cppreference.com/w/c/language/operator_assignment.html
  Would it occasionally be also helpful to restrict expressions to assignments?


How will data processing support grow for such items?

Regards,
Markus

                 reply	other threads:[~2026-04-05  5:56 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=272fbb1e-ac55-43c7-aa2b-3fd9ceb60798@web.de \
    --to=markus.elfring@web.de \
    --cc=cocci@inria.fr \
    /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