A declarer name is a thing that looks like a function name, but is actually representing a variable declaration. For example, a function call cannot appear at top level, but a declaration (actually a macro) can.
It seems that we need to be very careful here to distinguish the places between function/macro declarations and their calls for a safe filter pattern.
But it also matches MODULE_XYZ, which perhaps you didn't intend.
The regex can be adjusted for a proper SmPL constraint as desired. @@ declarer xyz ~= MODULE_(?:AUTHOR|DESCRIPTION|LICENSE); @@ -xyz(...); Regards, Markus _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
