Hi again,
I'm having a little trouble matching against this line of code:
RB_DECLARE_CALLBACKS_MAX(static, augment_callbacks, struct
drbd_interval, rb, sector_t, end, NODE_END);
This is especially tricky because it contains a lot of macro magic.
I think the biggest problem is the first argument, which is the keyword
"static". What do I use to match against this? expression? identifier?
symbol?
Also, the "augment_callbacks" is not really an identifier either, it
just gets used to generate the function names. But what is it? An
expression?
@@
typedef sector_t;
declarer name RB_DECLARE_CALLBACKS_MAX;
identifier augment_callbacks;
identifier rb;
identifier end;
identifier NODE_END;
@@
-RB_DECLARE_CALLBACKS_MAX(static, augment_callbacks, struct
drbd_interval, rb, sector_t, end, NODE_END);
Nothing I have tried has made it match yet.
Any ideas on how to solve this would be appreciated, thanks!
--
Christoph Böhmwalder
LINBIT | Keeping the Digital World Running
DRBD HA — Disaster Recovery — Software defined Storage
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci