This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Do not try to body-farm bodies for Objective-C properties with custom accessors.
ClosedPublic

Authored by NoQ on Jan 16 2019, 7:06 PM.

Details

Summary

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.

Diff Detail

Repository
rC Clang

Event Timeline

NoQ created this revision.Jan 16 2019, 7:06 PM

LG, but it sounds like something which can skew results a lot (?)

NoQ added a comment.Jan 17 2019, 12:53 PM

Yeah, i'll be testing this.

NoQ added a comment.Jan 18 2019, 1:27 PM

Nope, it doesn't seem to skew results at all. I hope my testing machinery is actually working :/

george.karpenkov accepted this revision.Jan 18 2019, 2:24 PM
This revision is now accepted and ready to land.Jan 18 2019, 2:24 PM
This revision was automatically updated to reflect the committed changes.