new hook: add_modification_hook()
commit63777c37929b39636615331a0a433c2d0c89eefe
authorDan Carpenter <error27@gmail.com>
Thu, 23 Jul 2009 18:38:07 +0000 (23 21:38 +0300)
committerDan Carpenter <error27@gmail.com>
Thu, 23 Jul 2009 18:38:07 +0000 (23 21:38 +0300)
treeb060886a7b6c0fc57466d5e5d7148724c774773b
parentebff07558b91e766d4850cc76745aeda7dab129f
new hook:  add_modification_hook()

This is a bit like ASSIGNMENT_HOOK but only for the variable you are
interested in.  For example, the used after free script sees
"kfree(foo);" and it wants to know when foo is reassigned.
"foo = frob();"

Signed-off-by: Dan Carpenter <error27@gmail.com>
Makefile
smatch.c
smatch.h
smatch_modification_hooks.c [new file with mode: 0644]