Hi, I'm new to cocci and try to understand how all this things work. I have a problem with matching a #define in a patch.
I wan to match local definition #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt and add #undef it first. The output should be like this #undef pr_fmt #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt I tried many approaches but seems like parser have a problem with parsing #defines. Is that possible to achieve what I expect in cocci ? Cheers /Waldek _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
