]> granicus.if.org Git - clang/commit
[analyzer] Do not try to body-farm Objective-C properties with custom accessors.
authorArtem Dergachev <artem.dergachev@gmail.com>
Fri, 18 Jan 2019 22:52:13 +0000 (22:52 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Fri, 18 Jan 2019 22:52:13 +0000 (22:52 +0000)
commit4e2845d3c8072aa49fc4424a65d6f2b84dcda527
tree529fc24c6bad5821aeeb0fad726deb38f29dbaa0
parent452feec84af76f377c165b01abc729ce8c17790f
[analyzer] Do not try to body-farm Objective-C properties with custom accessors.

If a property is defined with a custom getter, we should not behave as if
the getter simply returns an instance variable. We don't support setters,
so they aren't affected.

On top of being the right thing to do, this also fixes a crash on
the newly added test - in which a property and its getter are defined
in two separate categories.

rdar://problem/47051544

Differential Revision: https://reviews.llvm.org/D56823

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351609 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BodyFarm.cpp
test/Analysis/properties.m