]> granicus.if.org Git - clang/commit
Enhance LiveVariables to understand that blocks can extend the liveness of a variable...
authorTed Kremenek <kremenek@apple.com>
Thu, 26 Nov 2009 02:31:33 +0000 (02:31 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 26 Nov 2009 02:31:33 +0000 (02:31 +0000)
commitb1a7b65231e86f7da6aacbf00bcdc16c56350e65
treea72b34bb5372c1f89a4841fac28fd2250132342f
parentf21bf9b87a5edefb3f10a96ac036f92f538b8d32
Enhance LiveVariables to understand that blocks can extend the liveness of a variable by "capturing" them in a BlockExpr.

This required two changes:

1) Added 'getReferencedgetReferencedBlockVars()' to AnalysisContext so
that clients can iterate over the "captured" variables in a block.

2) Modified LiveVariables to take an AnalysisContext& in its
constructor and to call getReferencedgetReferencedBlockVars() when it
processes a BlockExpr*.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89924 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/LiveVariables.h
include/clang/Analysis/PathSensitive/AnalysisContext.h
lib/Analysis/AnalysisContext.cpp
lib/Analysis/LiveVariables.cpp