On Wed, 14 Sep 2016, Waldemar Rymarkiewicz wrote:
> 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 ? Could you send the exact semantic patch that you tried? Coccinelle should allos parsing #defines. julia _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
