HomePhabricator

[clangd] Fix targetDecl() on certain usage of ObjC properties.

Authored by sammccall on Jan 10 2020, 1:40 AM.

Description

[clangd] Fix targetDecl() on certain usage of ObjC properties.

Summary:
In particular there's a common chain:

OpaqueValueExpr->PseudoObjectExpr->ObjCPropertyRefExpr->ObjCPropertyDecl

and we weren't handling the first two edges

Reviewers: dgoldman, kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, jfb, usaxena95, cfe-commits

Tags: #clang

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