flow: fix how CALL_HOOK_AFTER is called
commitbb3e293a24461e49651e9479a4db193307541dd6
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 1 Dec 2014 12:18:45 +0000 (1 15:18 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 1 Dec 2014 12:18:45 +0000 (1 15:18 +0300)
tree053d80e8cfc8b0f5a98791f1aab759e4051ac1b6
parent1ff5f9c2b73eb2e3edf5fdb7468f4bbdd3082a00
flow: fix how CALL_HOOK_AFTER is called

If the a function call is assigned then the call is processed with the
assignment.  In that case we need to delay calling FUNCTION_CALL_HOOK_AFTER
and call it with the assignment as well.

I moved the is_assigned_call() to smatch_flow.c so that everyone could use
it.

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