All of lore.kernel.org
 help / color / mirror / Atom feed
* [cocci] Adding metavariable types for the handling of string literals?
@ 2022-03-25 21:18 Markus Elfring
  2022-03-25 21:23 ` Julia Lawall
  2022-03-26 19:26 ` Markus Elfring
  0 siblings, 2 replies; 12+ messages in thread
From: Markus Elfring @ 2022-03-25 21:18 UTC (permalink / raw)
  To: cocci

Hello,

The metavariable type “constant” is supported by the semantic patch language.
Thus some data processing can be performed for literals.

I would appreciate the support for metavariable types which will match only
string literals.
https://en.cppreference.com/w/c/language/string_literal

I guess that such a kind of metavariable would include also the enclosing
quotation characters.
But if captured data should be passed for further processing to another
scripting language, it would occasionally be more helpful to omit the double
quotes there.
Additional programming interfaces can also help to handle data parts better,
can't they?

Would you like to work with another metavariable variant for this purpose?

How will the chances evolve to extend the Coccinelle software accordingly?

Regards,
Markus


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

end of thread, other threads:[~2022-03-27 14:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 21:18 [cocci] Adding metavariable types for the handling of string literals? Markus Elfring
2022-03-25 21:23 ` Julia Lawall
2022-03-25 21:33   ` Markus Elfring
2022-03-25 21:36     ` Julia Lawall
2022-03-25 21:40       ` Markus Elfring
2022-03-26  7:09   ` Markus Elfring
2022-03-27 11:31   ` Markus Elfring
2022-03-27 11:53     ` Julia Lawall
2022-03-27 12:04       ` Markus Elfring
2022-03-27 12:51         ` Julia Lawall
2022-03-27 14:12           ` Markus Elfring
2022-03-26 19:26 ` 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.