helper: change "&*foo" to "foo" at the lowest levels
commitf23e60821b94dd7bda01e31310107c46232792a0
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Dec 2014 12:15:11 +0000 (15 15:15 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Dec 2014 12:15:11 +0000 (15 15:15 +0300)
treef983ad1352450bcf85cbb6d8ed1030b439430ab3
parent57405418787361ea3bb4e11abbecd731e7059a95
helper: change "&*foo" to "foo" at the lowest levels

I changed expr_to_str() to automatically simplify "&*foo" to "foo".  I
considered doing this in strip_expr() but for some reason when I looked at
that then it seemed like I would have to allocate a fake expression and I
didn't want to do that...  Doing the simplification here is sort of a new
approach for Smatch.

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