comparison: handle j++ var sym lists better
commitcce674f09e46af8cf13c6e031c1d8c49fa2351bf
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Jun 2018 13:34:16 +0000 (6 16:34 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Jun 2018 13:34:16 +0000 (6 16:34 +0300)
tree7e9bb7e58135bc56523af58480561f601281a8eb
parent0e7e71d427d5eeef396ded43042d0b5f5b6ec995
comparison: handle j++ var sym lists better

How smatch_comparison.c handles j++ is a bit special and weird and possibly
ugly.  We use a local chunk_to_var_sym() to strip out the ++.  The problem
is that expr_to_vsl() will return NULL for j++.

I don't want to change expr_to_vsl() because I don't think I want
smatch_extra to start saving states for that.  So I've worked around it
locally.

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