[clangd] Implement a function to lex the file to find candidate occurrences.
authorHaojian Wu <hokein.wu@gmail.com>
Wed, 30 Oct 2019 12:21:47 +0000 (13:21 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Wed, 6 Nov 2019 08:56:02 +0000 (09:56 +0100)
commit7ea4c6fa5121b2417875dc1b547162e18be7dbe2
tree9c676a130a4a4ffbf6d408213269631eec8b6caf
parentf349cc37cc485fd5fc7b34cb84053af459337ecc
[clangd] Implement a function to lex the file to find candidate occurrences.

Summary:
This will be used for incoming cross-file rename (to detect index
staleness issue).

Reviewers: ilya-biryukov

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

Tags: #clang

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