extra/function_hooks: handle fake function calls in extra instead of hooks
commitf6f7686c03d326360827c818dc2265a2e062d291
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 25 Jan 2021 09:30:35 +0000 (25 12:30 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 25 Jan 2021 09:30:35 +0000 (25 12:30 +0300)
tree18fe04e53361f33c82c936d04a56e30d71ce7418
parentba1d55482a2c06fcbdcb190c55162529df8a8673
extra/function_hooks: handle fake function calls in extra instead of hooks

When we're doing struct assignments it gets translated into a bunch of
fake calls:

foo->bar = unknown fake();

This was handled by smatch_function_hooks.c but it really should be handled
in smatch_extra.c since it's not a real function call.  The thing is that
these are really modifications per se and also we don't necessarily want to
create extra states for all of these.

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