conditions: set the parent expressions
commit1cbe1cbe6d27a2600698999cd3432d10e382525d
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Jul 2018 10:21:59 +0000 (24 13:21 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 24 Jul 2018 10:21:59 +0000 (24 13:21 +0300)
tree3710a0f274f40287e37f9f99e52820b9b88cfa08
parent58e4bcafc21743f2de553b358078ebb0eb5d7817
conditions: set the parent expressions

When we're parsing conditions, then a lot of the expressions don't go
through __split_expr().  As a result, the parent pointers weren't getting
set correctly.  Some examples are negatives and parenthesis because we
want to ignore these as much as possible.  These are all removed in
strip_expr() so I made a function called strip_expr_set_parent() which
sets the parent pointers.

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