On Fri, 10 Apr 2020, Markus Elfring wrote: > Hello, > > Several functions for a programming language like C are designed in the way > that values are returned by an integral data type. > Specific value ranges can indicate then a failed function call. > A well-known variant of this design pattern is that negative return values > represent failures (while the other values can be used for succesful data > processing. > Can the semantic patch language help any more to determine the list of > functions which use this style of error reporting in a selected code base?
Maybe you can just take inspiration from this paper: https://pages.lip6.fr/Julia.Lawall/dsn09.pdf julia > > Regards, > Markus > _______________________________________________ > Cocci mailing list > Cocci@systeme.lip6.fr > https://systeme.lip6.fr/mailman/listinfo/cocci > _______________________________________________ Cocci mailing list Cocci@systeme.lip6.fr https://systeme.lip6.fr/mailman/listinfo/cocci