[clangd][ObjC] Improve support for class properties
authorDavid Goldman <davg@google.com>
Tue, 6 Apr 2021 17:31:09 +0000 (13:31 -0400)
committerDavid Goldman <davg@google.com>
Wed, 28 Apr 2021 14:06:27 +0000 (10:06 -0400)
commit39866d249a21fc3c05942a1a4fbbd88acc4660bc
tree615f8ca68553450a08c223a22d9f371d9a2207fe
parent3d974ac9fc489ac3fec194f324be55e42d1ea4fa
[clangd][ObjC] Improve support for class properties

Class properties are always implicit short-hands for the getter/setter
class methods.

We need to explicitly visit the interface decl `UIColor` in `UIColor.blueColor`,
otherwise we instead show the method decl even while hovering over
`UIColor` in the expression.

Differential Revision: https://reviews.llvm.org/D99975
clang-tools-extra/clangd/FindTarget.cpp
clang-tools-extra/clangd/unittests/FindTargetTests.cpp