On 02/08/12 11:50, Lars-Peter Clausen wrote:
But this would still leave the issue open for nested scopes inside a function. And requires a extra set of rules to match identifiers outside of functions.
This is the intended behavior. The identifiers match using name equality without taking scope into account.
If need be, perhaps you can match on the block/body that encapsulates the identifier declaration and its uses, and then use position to verify that you only match against identifiers within that scope.
Arie _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
