flow: parse global variables before parsing functions
commit3af0158a13ca78f46f9eca21817cf9319926348a
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 29 Aug 2014 10:14:57 +0000 (29 13:14 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 29 Aug 2014 10:14:57 +0000 (29 13:14 +0300)
treea0175efb73e12590f82ee01d0e162dc79888eb68
parentc0b55c465e9c99ce14e50063061f86dea4170a73
flow: parse global variables before parsing functions

When we're parsing a file, then I want to parse all the variable
definitions first, then the functions.  I save all the SMATCH_EXTRA states
in a stree called global_states.  Right now I don't use it, but later I
will figure out which of those variables are const and look them up in
the global_states stree.

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