flow: add a new expr->parent struct member
commit23b18dde222cc10a8ec520b3144a838f4354bad4
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 May 2015 10:56:21 +0000 (1 13:56 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 May 2015 10:56:21 +0000 (1 13:56 +0300)
tree3f5cae84bc2a21717d21c4200403367cc1c46d41
parent2163c9508067b77d2ed6755cbdc3d799b8308c0f
flow: add a new expr->parent struct member

I tried to use an expression_stack() for this, but it doesn't work.

The main place where this is used is to find for things like "&foo->bar".
The client sees "foo->bar" as a dereference, but if we look at the
->parent then we can see the '&' so we know it's not really a dereference.

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