[all-commits] [llvm/llvm-project] 4c5a45: [clangd] Fix targetDecl() on certain usage of ObjC...

Sam McCall via All-commits all-commits at lists.llvm.org
Fri Jan 10 09:07:47 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c5a4514d14537cae5459e03d1fea422664b3bc2
      https://github.com/llvm/llvm-project/commit/4c5a4514d14537cae5459e03d1fea422664b3bc2
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2020-01-10 (Fri, 10 Jan 2020)

  Changed paths:
    M clang-tools-extra/clangd/FindTarget.cpp
    M clang-tools-extra/clangd/unittests/FindTargetTests.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list