helper: get_member_name() could store unions (sort of)
commitb4a632c05777f88de8b6520aa85df28da6c57226
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 16 Jul 2013 08:16:49 +0000 (16 11:16 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 16 Jul 2013 08:16:49 +0000 (16 11:16 +0300)
tree7e0c14091accaceee9c4535fae696f9dbc07e70f
parentb3f04592dd3a360a59b43861242049f06085dbcf
helper: get_member_name() could store unions (sort of)

This is a bit gnarly, but I've had it in my tree for a while so I'm going
to commit it.

The idea is to store union members, in the same way we currently store
struct members.  The problem is that even for named unions Sparse doesn't
store the name so I have to make up a nonsense name.  Right now I have
called it "(union hack last_member)->member".  Hopefully no one sees it
in real life, or if they do the word "hack" lets them know it's not really
the name of the union.

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