flow: add a ->parent member to statement structs
commitc5965445004e35ac7eeef47c877457caf5d2f9a0
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 30 Jul 2015 10:44:10 +0000 (30 13:44 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 30 Jul 2015 10:44:10 +0000 (30 13:44 +0300)
treedcd36ca813f941bf87ea82912f8670999de2bb3b
parent59f7b5a4086f6c3f3268055688c2b405a4ea2170
flow: add a ->parent member to statement structs

You know how I have the big_expression_stack but eventually that didn't
work and I had to add a ->parent member to the expression struct?  This is
the same thing except with statements.

This lets you find out if you are inside an if statement for example.

I have a user for this but it's going to take a while before it's ready to
push.  For now, I'm just pushing the infrastructure.

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