[clangd] Handle go-to-definition in macro invocations where the target appears in...
authorNathan Ridge <zeratul976@hotmail.com>
Mon, 23 Dec 2019 18:38:04 +0000 (13:38 -0500)
committerNathan Ridge <zeratul976@hotmail.com>
Tue, 3 Mar 2020 20:52:05 +0000 (15:52 -0500)
commite70a9f3850255cb610fc56a30dec6f52b9d734e9
treef67999079149c0019cca60328011555a1366b8d1
parentfca49fe8e34f13632c42e68aad4b14e3e00bdcc8
[clangd] Handle go-to-definition in macro invocations where the target appears in the expansion multiple times

Fixes https://github.com/clangd/clangd/issues/234

Reviewers: sammccall

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72041
clang-tools-extra/clangd/Selection.cpp
clang-tools-extra/clangd/Selection.h
clang-tools-extra/clangd/unittests/SelectionTests.cpp
clang-tools-extra/clangd/unittests/XRefsTests.cpp