On Sat, Jan 13, 2018 at 7:46 AM, Julia Lawall <[email protected]> wrote: > declarer name module_usb_serial_driver; > > It doesn't make it ia metavariable, but rather gives some information > about the name so that it will look for this name at top level.
Thanks, I'll give this a shot. But say I wanted to do this for any random function in the linux kernel; in that case I would have to manually declare all macros that contain any of those functions? In other words, there's not really a way to write something that works for any function (passed as a virtual to the .cocci)? Thanks, Martijn > > julia > > >> >> Thanks, >> Martijn >> >> > >> > >> > Normally, macros are only unfolded when doing so is necessary to parse the >> > context in which the macro occurs. But when a macro is unfolded for that >> > reason, it is not possible to transform the unfolded code, although it is >> > possible to match it. >> > >> > It is indeed possible that the --preprocess argument does not do anything. >> > >> > julia >> _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
