db, extra: introduce add_member_info_callback()
commita39c93560f7a6ca26155f5482ace693a5f588a66
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Oct 2011 06:34:12 +0000 (13 09:34 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Oct 2011 06:34:12 +0000 (13 09:34 +0300)
tree9833029a1ffddf8b96f22b602602a700718388ae
parent73a71e701bf61a0babe06ee2d3422ada4f4d96ff
db, extra: introduce add_member_info_callback()

This moves generalizes some infrastructure from smatch_extra.c and moves it
into smatch_db.c so that it can be used by other scripts as well.

Basically when we have a function call we want to print out the states from
any struct members for the structures we pass as parameters.

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