modification_hook: record the modification expression
commita517006f5cf00ace914cb7ac7df43cdaf667b1bb
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Aug 2015 11:36:37 +0000 (14 14:36 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Aug 2015 11:36:37 +0000 (14 14:36 +0300)
treeae9a3f0f69a662cf64324065a2ac2422c2828903
parent24e6ea31ad244826595bd34d420d228ffd2669b5
modification_hook: record the modification expression

One of the problems I have is that the released version of Smatch and the
version I use are out of sync.  It is a recurring headache.  Anyway, this
is something I have been thinking about for a while, but I don't have an
immediate user for...

One possible use would be to re-write the canonical for loop handling using
this.

It's sort of like get_assigned_expr() except it stores other sorts of
modification as well.

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