[Linux-kernel-mentees] [Cocci] [2/2] tests: Add test case for user comments attached to identifiers

Markus Elfring Markus.Elfring at web.de
Sat Jan 11 09:18:02 UTC 2020


> +@ script:python r1 @
> +id;
> +@@
> +coccinelle.id = "id/* user comment */"

I am still looking for further clarification around this programming interface.

See also topics like the following:
* Propagating values back from Python script to SmPL rule with other metavariable
  type than “identifier”
  https://github.com/coccinelle/coccinelle/issues/86

* Reconsider programming interfaces for script-constructed metavariables
  https://github.com/coccinelle/coccinelle/issues/132

Regards,
Markus


More information about the Linux-kernel-mentees mailing list