>> Can the semantic patch language help to insist for a search that a bit
>> of source code belongs to the implementation of a function-like macro?
>
> That's what the search that was written does.  The pattern that comes
> after #define has to be in the definition of the macro.

I suggest to consider additional source code variants.
With which SmPL constructs should be ensured that a search pattern
like “<+... f(...) ...+>” refers only to content from the same logical source 
line?
https://en.cppreference.com/w/c/language/translation_phases#Phase_2

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to