type: mark foo.bar.baz as a local variable
commitafc3b1cdb306a4c5628a97db1c7cc7cbf0475c55
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 19 Jun 2020 10:31:26 +0000 (19 13:31 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 19 Jun 2020 10:31:26 +0000 (19 13:31 +0300)
tree7dee08014b1d266d26ff8a6bbc8c46a8fbe63bad
parent119c64f6cf303a55cf53b37bf5c33807992fcbed
type: mark foo.bar.baz as a local variable

In the original code just simple variables like "int a;" are marked as
local.  But The problem is that when we assign "foo.bar.baz = 1;" then
Smatch tries to update the mtag information.  Smatch doesn't update
local variables, so let's mark "foo.bar.baz" as local since really it is
local.

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