]> granicus.if.org Git - clang/commit
[analyzer] Include block capture copy expressions in the CFG.
authorDevin Coughlin <dcoughlin@apple.com>
Wed, 25 Nov 2015 22:35:37 +0000 (22:35 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Wed, 25 Nov 2015 22:35:37 +0000 (22:35 +0000)
commit2aed0cbe732ef9cea91fbc510f59fc59e1832c12
tree5c2941b00108e71af23a2dd3c779580a1c3745bc
parent87bfff6664b4ea545a8ed5e9b39f4b830e4f95f1
[analyzer] Include block capture copy expressions in the CFG.

This prevents spurious dead store warnings when a C++ lambda is casted to a block.

I've also added several tests documenting our still-incomplete support for lambda-to-block
casts.

rdar://problem/22236293

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254107 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp
test/Analysis/blocks.mm [new file with mode: 0644]
test/Analysis/lambdas.mm