All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: cocci@inria.fr
Subject: [cocci] Improving support for argument lists with SmPL
Date: Mon, 25 Mar 2024 10:01:59 +0100	[thread overview]
Message-ID: <d5250894-dab4-4729-8165-a9b70844c8d4@web.de> (raw)

Hello,

I got the impression that there are opportunities to improve the support for
argument lists at some places.

Identifiers can occasionally be followed by parentheses in the source code.
Such a code combination can be interpreted in different ways.

* Function call

* Macro call

  See also:
  Improve support for handling arguments of function-like macros
  2024-03-14
  https://github.com/coccinelle/coccinelle/issues/362

  Compiler-specific extensions can be provided also as macros.
  The specification of attributes with arguments is a corresponding application area,
  isn't it?
  https://en.cppreference.com/w/c/language/attributes

  https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/0011af1760e37caada1f9d48e2c549bd519bf203/docs/manual/cocci_syntax.tex#L461
  https://github.com/coccinelle/coccinelle/blob/0011af1760e37caada1f9d48e2c549bd519bf203/docs/manual/cocci_syntax.tex#L461


Regards,
Markus

             reply	other threads:[~2024-03-25  9:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-25  9:01 Markus Elfring [this message]
2024-03-25 10:18 ` [cocci] Improving support for argument lists with SmPL Julia Lawall
2024-03-25 11:55   ` Markus Elfring
2024-03-25 12:04     ` Julia Lawall
2024-03-25 12:20       ` 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=d5250894-dab4-4729-8165-a9b70844c8d4@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 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.