Hi,
I've been struggling to get spatch to parse the following code properly:
struct foo {
int hello;
BAR(int) world;
};
int bar(int wut) {
BAR(int) world;
return 0;
}
My cocci is:
@@ @@
* struct foo { ... };
@@ @@
* int bar(...) { ... }
If I specify -macro_file which includes:
#define BAR(x)
With v1.0.6 I only get:
-int bar(int wut) {
- BAR(int) world;
- return 0;
-}
(i.e. "struct foo" is not recognized)
v1.0.4 gives me nothing.
If I specify -macro_file which includes:
#define BAR(x) x
I get nothing from both 1.0.4 and 1.0.6 except a complaint "try to
delete an expanded token: int".
Is this expected/known?
MichaĆ
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci