On Mon, 9 May 2011, SF Markus Elfring wrote: > > I don't think that it would be desirable for coccinelle to be making all > > of these decisions for the user, particularly in the interface between the > > matching code and the python code. > > How can be ensured that the prefix or suffix will be not added by a patch hunk > if this name part is "accidentally" used in the identifier from the original > source file?
You can check for it yourself. Create the name, match against it, and discard it using Cocci.include_match(false) if it already exists. But as I have now said several times, what you seem to want is the functionality that was intended for fresh identifier but has not been implemented. I don't know if that is what the original requester wanted. julia _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
