[cfe-dev] CFG blocks and variable scope

Martin Doucha next_ghost at quick.cz
Sat Mar 28 11:33:23 PDT 2009


Hi,
I'm trying to write a static analysis for checking if pointers to local
variables leave the scope where the variable exists (and therefore
become invalid). I've figured how to use DataflowSolver for this but I
can't figure out how to find out in which CFG blocks the local variable
in question still exists. Is this info available somewhere or do I have
to hook into CFG builder and generate it myself?

Regards,
Martin Doucha



More information about the cfe-dev mailing list