[Clangd] Fixed SelectionTree bug for macros
authorShaurya Gupta <shauryab98@gmail.com>
Fri, 19 Jul 2019 11:41:02 +0000 (11:41 +0000)
committerShaurya Gupta <shauryab98@gmail.com>
Fri, 19 Jul 2019 11:41:02 +0000 (11:41 +0000)
commit06841eab009445ee455d85dc9eee17d3a214bb7d
tree65062066995e0daf8e8617a80004389107471f2a
parent9998585c47b97b31a5811ee0528029629937c063
[Clangd] Fixed SelectionTree bug for macros

Summary:
Fixed SelectionTree bug for macros
- Fixed SelectionTree claimRange for macros and template instantiations
- Fixed SelectionTree unit tests
- Changed a breaking test in TweakTests

Reviewers: sammccall, kadircet

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

Tags: #clang

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

llvm-svn: 366566
clang-tools-extra/clangd/Selection.cpp
clang-tools-extra/clangd/unittests/SelectionTests.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp