cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* [Cocci] Checking varying accesses to members of local variables with SmPL
@ 2019-03-03 17:01 Markus Elfring
  0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2019-03-03 17:01 UTC (permalink / raw)
  To: Coccinelle

Hello,

The following information is provided in the manual for the semantic patch language.

“A metavariable declaration local idexpression v means that v is an expression
that is restricted to be a local variable. … A more complex description of
a location, such as a->b is considered to be an expression, not an idexpression.”
https://github.com/coccinelle/coccinelle/blob/14ce94ab4805f70405525829b5e11ea55f6f1d1b/docs/manual/cocci_syntax.tex#L281

I would expect that a local variable can refer also to a detailed data structure
(instead of mostly using simple data types).

* Can it become interesting then how the access to varying members from such
  a data structure hierarchy will be specified in the SmPL script?

* Is the specification of an access approach possible which would be independent
  from the nesting level?

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-03 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-03 17:01 [Cocci] Checking varying accesses to members of local variables with SmPL Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).