implied: improve handling of assignments in arguments
commit3b5bf5c91fe648f89c12dfeb4cda3fe36e7f19c5
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Mar 2018 12:13:22 +0000 (26 15:13 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 26 Mar 2018 12:13:22 +0000 (26 15:13 +0300)
tree1419fb84bd17b476be3324c8aebfa4aa7a2bd57a
parent7114dac091dd159c7c9157649357baf375fed820
implied: improve handling of assignments in arguments

This example code wasn't parsed correctly:

if (IS_ERR(ptr = some_function())) {

We should say basically use "ptr" as the implied arg instead of the
assignment expression.

Reported-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_implied.c