mtag: tweak how get_array_mtag_offset() works
commitaefb5e7860d942a61292c00eac6f406f8777671d
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 Mar 2019 14:42:42 +0000 (18 17:42 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 Mar 2019 14:42:42 +0000 (18 17:42 +0300)
tree02124cb8b24ff9aca776706b82c1621a7a3432c6
parent5a529ef1859e25479f81700ba8eef267e564e163
mtag: tweak how get_array_mtag_offset() works

The main thing here is that I'm looking at how get_mtag() works and trying
to get rid of it, or rename it or something.

But say you have "foo->bar[4];" then "foo" is the mtag, and we have to
calculate the number of bytes from foo to ->bar[4].  The number of bytes
from foo to ->bar[0] is start_offset.

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