OSDN Git Service

[clangd] go-to-def on names in comments etc that are used nearby.
authorSam McCall <sam.mccall@gmail.com>
Mon, 2 Mar 2020 21:45:25 +0000 (22:45 +0100)
committerSam McCall <sam.mccall@gmail.com>
Wed, 22 Apr 2020 17:46:41 +0000 (19:46 +0200)
commit3f1c2bf1712c7496a80a0f89036ab1625ff347a5
tree9cd02346ee95c827b9f44795cfe77f67e1d35fa5
parent3616e851f66e41b3c8b9f97d26e711069d56e752
[clangd] go-to-def on names in comments etc that are used nearby.

Summary:
This is intended as a companion to (and is inspired by) D72874 which attempts to
resolve these cases using the index.
The intent is we'd try this strategy after the AST-based approach but before the
index-based (I think local usages would be more reliable than index matches).

Reviewers: nridge

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D75479
clang-tools-extra/clangd/SourceCode.cpp
clang-tools-extra/clangd/SourceCode.h
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/XRefs.h
clang-tools-extra/clangd/unittests/SourceCodeTests.cpp
clang-tools-extra/clangd/unittests/XRefsTests.cpp