array_values: fix up and support two dimensional local arrays
commite13ba6ddcc96ea9d0f17b4c5d4d38d6a7de8cc85
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 27 Sep 2018 13:17:33 +0000 (27 16:17 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 27 Sep 2018 13:17:33 +0000 (27 16:17 +0300)
tree096d7e951729b671a8b7e0766629d9e7d2608b6e
parent555f3f4eb3797d23913ba06122517a6b2e160c41
array_values: fix up and support two dimensional local arrays

There were a bunch of mistakes here.  It was passing get_filename() instead
of the array name.  I don't think the is_file_local() was correct...

Anyway, speaking of is_file_local(), it uses expr_to_str_sym() because
expr_to_var() returns NULL for two dimensional arrays.

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