[clangd] Query constructors in the index during rename.
authorHaojian Wu <hokein.wu@gmail.com>
Tue, 11 Feb 2020 15:37:37 +0000 (16:37 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 13 Feb 2020 09:10:12 +0000 (10:10 +0100)
commit2c5ee78de113484978450b834498e1b0e2aab5c4
treefa430a34a35ddb852f611cad8b3ed00935adeb11
parentc1394afb8df6445b46f42546588f59668bd39ac6
[clangd] Query constructors in the index during rename.

Summary:
Though this is not needed when using clangd's own index, other indexes
(e.g. kythe) need it, as classes and their constructors are different
symbols, otherwise we will miss renaming constructors.

Reviewers: kbobyrev

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D74411
clang-tools-extra/clangd/refactor/Rename.cpp
clang-tools-extra/clangd/unittests/RenameTests.cpp