strings: record which strings are being used
commited1eb411213eab011564c7e514e456ad7d78947f
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 23 Feb 2015 12:07:51 +0000 (23 15:07 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 23 Feb 2015 12:07:51 +0000 (23 15:07 +0300)
tree05bc4cab70083093295cdd338201eca014d89cf8
parent0422ca358f35c0b715a0259bee832e1a82362729
strings: record which strings are being used

This is a lazy partial way of recording which strings are being used.  If
you have "strcpy(foo, "whatever");" then it stores state "whatever" in
"foo".

You can get the list of possible strings using the get_strings() function.
It is returned as a slist.  You need to check the slist to see if it has
the &undefined state.  It's could also be &merged, of course but I imagine
that searching for &undefined is normally enough.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Makefile
check_list.h
smatch.h
smatch_strings.c [new file with mode: 0644]