struct_assignment: introduce get_faked_expression()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 May 2014 12:34:30 +0000 (15:34 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 29 May 2014 12:34:30 +0000 (15:34 +0300)
commitbef4f21391f21418e92bbd3ba935bc03eb077cc3
treec2c8562b1e381a2cfd88a8ed62b1cacacfc2b052
parentdb73713e1d803452796d7e4365a4c836b4196587
struct_assignment: introduce get_faked_expression()

So the caller can know which assignment is being faked and can handle
copy_from_user() differently from memcpy().

Also I realized that the enum and the __struct_members_copy() no longer
need to be exported so I made them private.

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