Quoting SF Markus Elfring <[email protected]>:
Just change local idexpression to identifier.
Would it make sense to distinguish between assignments to global
variables and changes to variables in a scope within a function
implementation?
There is no reason why a function would be more or less likely to
do something
useful with the values.
Macros will be transformed by preprocessing into something that can
be compiled, won't it?
Sure, but it has nothing to do with the concept of the code fragment.
It seems to me that passing a variable to a macro suggests the
developer intends to do something with it, just as passing a variable
to a function call does. What is intended to do with it is not
immediately known. There is the iteration mechanism that allows you
to collect information across procedure calls. But perhaps you would
be better off to try your script on some real code first, to see
whether the results are already satisfactory.
julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)