All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cocci] can't match a simple line?
@ 2014-10-09 12:32 Wolfram Sang
  2014-10-09 12:56 ` Michael Stefaniuc
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfram Sang @ 2014-10-09 12:32 UTC (permalink / raw)
  To: cocci

Hi,

this is so simple yet I don't see what I do wrong?

$ spatch --version
spatch version 1.0.0-rc22 with Python support and with PCRE support

(from Debian but same with rc21):

The rule 'test.cocci':

@@
@@
- 	module_platform_driver(...);

The command line:

spatch -sp_file test.cocci drivers/i2c/muxes/

No removals?

init_defs_builtins: /usr/share/coccinelle/standard.h
HANDLING: drivers/i2c/muxes/i2c-arb-gpio-challenge.c
(ONCE) Expected tokens module_platform_driver
Skipping:drivers/i2c/muxes/i2c-mux-pca954x.c
HANDLING: drivers/i2c/muxes/i2c-mux-pinctrl.c
HANDLING: drivers/i2c/muxes/i2c-mux-gpio.c
Skipping:drivers/i2c/muxes/built-in.mod.c
Skipping:drivers/i2c/muxes/i2c-mux-pca9541.c

It should match, or?

Confused,

   Wolfram

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://systeme.lip6.fr/pipermail/cocci/attachments/20141009/223d23de/attachment.asc>

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

end of thread, other threads:[~2014-10-09 13:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-09 12:32 [Cocci] can't match a simple line? Wolfram Sang
2014-10-09 12:56 ` Michael Stefaniuc
2014-10-09 13:07   ` Julia Lawall

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.