> 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. > 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 Regards, Markus _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
