cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* [Cocci] Searching designated initialisers with SmPL
@ 2019-10-27 15:12 Markus Elfring
  2019-10-27 16:14 ` Julia Lawall
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Elfring @ 2019-10-27 15:12 UTC (permalink / raw)
  To: Coccinelle

Hello,

I hoped to achieve something together with the semantic patch language
by the following search pattern.

@display@
identifier action, driver;
@@
 static struct platform_driver driver =
 {
 <+...
*.remove = action
 ...+>
 };


Unfortunately, I stumble on another error message.

elfring@Sonne:~/Projekte/Coccinelle/janitor> spatch --parse-cocci show_designated_initialisers6.cocci
…
minus: parse error:
  File "show_designated_initialisers6.cocci", line 7, column 1, charpos = 91
  around = '.',
  whole content = *.remove = action


How would you like to clarify the software behaviour for
such an use case?

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

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

end of thread, other threads:[~2019-10-27 17:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-27 15:12 [Cocci] Searching designated initialisers with SmPL Markus Elfring
2019-10-27 16:14 ` Julia Lawall
2019-10-27 16:47   ` Markus Elfring
2019-10-27 16:50   ` Julia Lawall
2019-10-27 17:08     ` Markus Elfring
2019-10-27 17:17       ` Julia Lawall

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).