Make variable initialization into assignment statements
commitd8c2a3a794171026f8126f131913b70f59c6cea2
authorDan Carpenter <error27@gmail.com>
Tue, 17 Nov 2009 06:32:34 +0000 (17 08:32 +0200)
committerDan Carpenter <error27@gmail.com>
Tue, 17 Nov 2009 06:32:34 +0000 (17 08:32 +0200)
tree526edc70cd24ff74991f7c069023c6a19614d8a9
parent900e4353093107b5a22e6de30667dfcd2d00405d
Make variable initialization into assignment statements

It is a pain to handle variable initialization separately in scripts.  You
have to create a separate function.  You can't use set_state_expr().
It's not intuitive.

This patch addresses that by creating a fake assignment expression and
passing that to the scripts.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_null_deref.c
smatch_flow.c
smatch_function_hooks.c