db: split function call returns if we can
commitbc3c2bb2072d70696a4fdb616e308b12f50c54e4
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Nov 2014 08:04:06 +0000 (4 11:04 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Nov 2014 08:04:06 +0000 (4 11:04 +0300)
tree511cd4fd0a8cd0edff620ff285c1ae5908351aa1
parent0ab967b4d8f398f1376b9ffc1deb99d9acb95030
db: split function call returns if we can

Say you have code like:

int my_frob(int whatevever)
{
return frob(whatever);
}

We probably try to break frob()'s returns up into separate strees.  But
then the my_frob() function just merges them all together.

With this patch we preserve the strees and keep them separated.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_db.c
smatch_function_hooks.c