All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Julia Lawall <julia.lawall@inria.fr>, cocci@inria.fr
Subject: Re: [cocci] Improving support for casts in SmPL code?
Date: Thu, 13 Nov 2025 08:05:44 +0100	[thread overview]
Message-ID: <205e1503-d79f-4580-b496-67d16df26c51@web.de> (raw)
In-Reply-To: <c5aa7f4a-4efc-5384-3295-823dea0ea10@inria.fr>

> Coccinelle doesn't know these types.  You have to declare them with typedef.

A description approach is available in the SmPL manual.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/e6f8731b851f5d76d2731a9d546dc4f0b181526e/docs/manual/cocci_syntax.tex#L456-466

I find this information source unclear in the way for pointing a possible property
out for metavariables of the kind “type definition”.
Do they refer to a fixed type name?

Regards,
Markus

  parent reply	other threads:[~2025-11-13  7:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-11 18:23 [cocci] Checking SmPL support for two special expressions Markus Elfring
2025-11-11 18:29 ` Julia Lawall
2025-11-11 19:43   ` Markus Elfring
2025-11-11 20:41     ` Julia Lawall
2025-11-12  6:12       ` Markus Elfring
2025-11-12 13:10         ` Julia Lawall
2025-11-12 13:15           ` Markus Elfring
2025-11-13  7:05   ` Markus Elfring [this message]
2025-11-14  0:59     ` [cocci] Improving support for casts in SmPL code? Julia Lawall
2025-11-14  8:30       ` Markus Elfring

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=205e1503-d79f-4580-b496-67d16df26c51@web.de \
    --to=markus.elfring@web.de \
    --cc=cocci@inria.fr \
    --cc=julia.lawall@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.