All of lore.kernel.org
 help / color / mirror / Atom feed
* [cocci] Improving support for argument lists with SmPL
@ 2024-03-25  9:01 Markus Elfring
  2024-03-25 10:18 ` Julia Lawall
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Elfring @ 2024-03-25  9:01 UTC (permalink / raw)
  To: cocci

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-25 12:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-25  9:01 [cocci] Improving support for argument lists with SmPL Markus Elfring
2024-03-25 10:18 ` Julia Lawall
2024-03-25 11:55   ` Markus Elfring
2024-03-25 12:04     ` Julia Lawall
2024-03-25 12:20       ` Markus Elfring

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.