SV: [Cocci] Putting a specific #include first

Andreas.Aaen at tieto.com Andreas.Aaen at tieto.com
Mon Nov 16 14:09:53 CET 2009


> Fra: Julia Lawall [julia at diku.dk]

> There was a bug in the process of attaching positions to #includes.  A
> patch is attached to fix this.  This patch has an impact on
> parser_cocci_menhir.mly, and thus if you apply the patch, you will need to
> have menhir installed to be able to compile the result.

Now unfortunately it seems that you can't use position variables as below:

@r@
position p;
@@
+#include <xxx.h>@p
#include <...>
@@
position p!=r.p
@@
-#include <xxx.h>@p

But why?


More information about the Cocci mailing list