On Tue, 27 Mar 2012, Michael Stefaniuc wrote:

On 03/27/2012 12:07 AM, Cyril Roelandt wrote:
On 03/26/12 23:56, ron minnich wrote:
@@
identifier f;
type T;
identifer e;
@@
T f(...){<...
-e = i2c_add_adapter(...);
...>}

You wrote "identifer" instead of "identifier" :)
Julia, shouldn't spatch --parse-cocci complain about that?

The parser considers it to be a typedef.

This seems to be a pretty common mistake. Perhaps it should generate a warning for this specific misspelling.

julia

This is all I get:

spatch --parse-cocci /tmp/bla.cocci
init_defs_builtins: /usr/share/coccinelle/standard.h
@@
rule starting on line 1
@@

rule starting on line 1:T rule starting on line 1:f(...) {
 <...

   -rule starting on line 1:e -= -i2c_add_adapter-(-...-)-;
 ...>
}

grep tokens
No query


bye
        michael
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to