On Wed, 2 Feb 2011, SF Markus Elfring wrote: > > Normally, a call to a function that might fail only occurs in a function > > body. > > That is true of course. I would like to concentrate on this use case for a > general search and a potential repair algorithm exactly. > > > > The only way to access the name of the enclosing function at the SmPL > > level is to match the function header. > > We have got a different understanding about the means that would be useful at > this source code place. > I am looking for a way to find the corresponding function body without > specifying a function name literal or an identifier meta-variable here.
I have told you, several times I think, that 1) there is none, and 2) there is no need for one. > > A patch normally contains the name of the enclosing function on the line > > with the line number information. > > I agree to this view if you mean the unified difference format of patch hunks > in > the end result. > http://en.wikipedia.org/wiki/Diff#Unified_format This statement suggests that you have never actually used Coccinelle, if you don't know what it outputs. Please actually try to do what you want before asking any further questions. julia _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
