Use the BlockDecl captures list to infer the direct captures for a BlockDataRegion...
authorTed Kremenek <kremenek@apple.com>
Thu, 6 Dec 2012 07:17:26 +0000 (07:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 6 Dec 2012 07:17:26 +0000 (07:17 +0000)
commit3e871d8cf686b911e2a66655a77252555b946c99
treef04a1e4cd7b9e5b161bfa08b180b8fca2e69b721
parentbcf905326cf08b7385a89fafe44785daf850649d
Use the BlockDecl captures list to infer the direct captures for a BlockDataRegion.  Fixes <rdar://problem/12415065>.

We still need to do a recursive walk to determine all static/global variables
referenced by a block, which is needed for region invalidation.

llvm-svn: 169481
clang/lib/Analysis/AnalysisDeclContext.cpp
clang/test/Analysis/blocks.m