Refactor getDeclAtPosition() to use SelectionTree + targetDecl()
authorNathan Ridge <zeratul976@hotmail.com>
Thu, 17 Oct 2019 22:48:39 +0000 (18:48 -0400)
committerNathan Ridge <zeratul976@hotmail.com>
Thu, 31 Oct 2019 21:37:27 +0000 (17:37 -0400)
commitb6429cdd65ffa28591c5b0da37244ab66d0b1785
treecee739fb6e520af0d8f19d7a039248a4e44a829a
parent2f8a43e1997d76d0e902a9283be8b82ca89fb603
Refactor getDeclAtPosition() to use SelectionTree + targetDecl()

Summary: This fixes issue #163, among other improvements to go-to-definition.

Reviewers: sammccall

Subscribers: jkorous, mgrang, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D69237
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/unittests/SymbolInfoTests.cpp
clang-tools-extra/clangd/unittests/TypeHierarchyTests.cpp
clang-tools-extra/clangd/unittests/XRefsTests.cpp