[Cocci] can't match a simple line?
mstefani at redhat.com
Thu Oct 9 14:56:12 CEST 2014
On 10/09/2014 02:32 PM, Wolfram Sang wrote:
> 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
> Skipping:drivers/i2c/muxes/i2c-mux-pca954x.c HANDLING:
> drivers/i2c/muxes/i2c-mux-pinctrl.c HANDLING:
> It should match, or?
Only if it can parse the blocks containing that code. What is spatch
--parse-c saying for the affected files?
More information about the Cocci