[analyzer] Fix Objective-C accessor body farms after 2073dd2d.
authorArtem Dergachev <artem.dergachev@gmail.com>
Fri, 22 Nov 2019 02:13:48 +0000 (18:13 -0800)
committerArtem Dergachev <artem.dergachev@gmail.com>
Fri, 22 Nov 2019 02:59:46 +0000 (18:59 -0800)
commit0b58b80edb81bf8fb401f8a6e057ca9d50abc0f7
treea2e79021a8294111d549edbeac9a630d79794b4a
parentbbc8662db1548f98b1c475cadf6260f9079c11ea
[analyzer] Fix Objective-C accessor body farms after 2073dd2d.

Fix a canonicalization problem for the newly added property accessor stubs that
was causing a wrong decl to be used for 'self' in the accessor's body farm.

Fix a crash when constructing a body farm for accessors of a property
that is declared and @synthesize'd in different (but related) interfaces.

Differential Revision: https://reviews.llvm.org/D70158
clang/lib/Analysis/BodyFarm.cpp
clang/lib/StaticAnalyzer/Core/CallEvent.cpp
clang/test/Analysis/Inputs/expected-plists/nullability-notes.m.plist
clang/test/Analysis/nullability-notes.m
clang/test/Analysis/properties.m