This problem seem to be solved.  At least, I don't see the problem for the
following semantic patch:

@@
identifier i,x;
type T;
@@

struct i {
   ...
- T x;
+ const T x;
   ...
};

on the following code:

struct i {
   int a;
   int b;
   /* a comment */
   int c;
   int d;
};

The comment is preserved as well.

Hi,

I've just noticed there is a new version out (1.0.0-rc3), I will give it a try 
and let you know
the results.

--
Emese

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

Reply via email to