[clangd] Split findDefs/highlights into XRefs, from ClangdUnit. NFC
authorSam McCall <sam.mccall@gmail.com>
Tue, 19 Dec 2017 17:06:07 +0000 (17:06 +0000)
committerSam McCall <sam.mccall@gmail.com>
Tue, 19 Dec 2017 17:06:07 +0000 (17:06 +0000)
commita66d2cb57573fdb6e5e08deca2fd09c573e039a1
tree1c98d379dbf686189ffd7e215218ab091b1d0ee9
parente3e1570695c9a3d2fb04653da724298fa17f1c1b
[clangd] Split findDefs/highlights into XRefs, from ClangdUnit. NFC

Going to add unit tests in the next patch. (Haha!) But seriously there's
some work to do first - need to extract the markers-in-source-code
parser from CodeComplete test and make it more flexible, to allow
annotated ranges etc.

llvm-svn: 321087
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/ClangdUnit.cpp
clang-tools-extra/clangd/ClangdUnit.h
clang-tools-extra/clangd/XRefs.cpp [new file with mode: 0644]
clang-tools-extra/clangd/XRefs.h [new file with mode: 0644]