[analyzer] Find ObjC 'self' decl even when block captures local named 'self'.
authorDevin Coughlin <dcoughlin@apple.com>
Tue, 23 Feb 2016 22:26:04 +0000 (22:26 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Tue, 23 Feb 2016 22:26:04 +0000 (22:26 +0000)
commitc289b74bd6c6837731459ef9620a859fdd158d4d
tree5748c2184fe7dd24f8d94b8d676176b2221bb86d
parentf9c0a5c377cca8f7257e85f5d332f5009027f325
[analyzer] Find ObjC 'self' decl even when block captures local named 'self'.

When looking up the 'self' decl in block captures, make sure to find the actual
self declaration even when the block captures a local variable named 'self'.

rdar://problem/24751280

llvm-svn: 261703
clang/lib/Analysis/AnalysisDeclContext.cpp
clang/test/Analysis/blocks.m
clang/test/Analysis/lambdas.mm