data_source: don't print wrong sources
commit99acad7e9c675ea1487ebab6f3602551387dd1af
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 21 Dec 2015 15:51:54 +0000 (21 18:51 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 21 Dec 2015 15:51:54 +0000 (21 18:51 +0300)
tree8ca6cd0a5f9c096f8290b994233d4269b8ec15ac
parent6ac0e88ea227e9d14afa69ea5140d3c134f37280
data_source: don't print wrong sources

The issue here is that say you have:

void some_function(struct foo *p)
{
other_function(p->ptr);
}

We shouldn't say that some_function(param 0) is a source because it really
comes from here.  Maybe later we will trace that though?  Like we could
say "p $0->ptr"?  But for now, no.

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