[clangd] Use identifier range as the definition range.
authorHaojian Wu <hokein@google.com>
Fri, 9 Mar 2018 14:00:34 +0000 (14:00 +0000)
committerHaojian Wu <hokein@google.com>
Fri, 9 Mar 2018 14:00:34 +0000 (14:00 +0000)
commit5f10026258073f9865413f5b5d3bc1f8ac6ac7d7
tree2fa93d0cced09b1beee40eb95e4384cddb47e637
parent0cc66c7954144fc640b363abf57c67052c0efab2
[clangd] Use identifier range as the definition range.

Summary: This also matches the range in symbol index.

Reviewers: sammccall

Subscribers: klimek, ilya-biryukov, jkorous-apple, ioeric, cfe-commits

Differential Revision: https://reviews.llvm.org/D44247

llvm-svn: 327129
clang-tools-extra/clangd/AST.cpp [new file with mode: 0644]
clang-tools-extra/clangd/AST.h [new file with mode: 0644]
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/index/SymbolCollector.cpp
clang-tools-extra/unittests/clangd/ClangdTests.cpp
clang-tools-extra/unittests/clangd/XRefsTests.cpp