hooks: introduce a pre_merge hook (similar to a merge hook)
commitdb19a08aa3236b0e8ad321aa3f84dcca1214cea2
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Jan 2015 14:13:48 +0000 (8 17:13 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Jan 2015 14:13:48 +0000 (8 17:13 +0300)
treeff04d6ed97ed64d147768035e6d6ea0f7dcee5dc
parentdb13fc2d28e7112534359561f51f547df753b0e3
hooks: introduce a pre_merge hook (similar to a merge hook)

The problem this is trying to solve is, we want to look up something in
SMATCH_EXTRA to do the merge so we need the slist.  But the normal merge
function you don't/can't have the slist because you're dealing with two
different sm_states.

This is like the unmatched_state hook, but it's not unmatched, we actually
do have a state there.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.c
smatch.h
smatch_hooks.c
smatch_slist.c
smatch_states.c