[PATCH] D74411: [clangd] Query constructors in the index during rename.
Kirill Bobyrev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 12 05:18:47 PST 2020
kbobyrev added inline comments.
================
Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:326
+ // When querying references for a class, clangd's own index will also return
+ // references of the corresponding class constructors, but this is not true
+ // for all index backends, e.g. kythe, so we add all constructors to the query
----------------
What about desctructors? Should they always be handled separately?
================
Comment at: clang-tools-extra/clangd/unittests/RenameTests.cpp:772
+TEST(CrossFileRename, QueryCtorInIndex) {
+ auto MainCode = Annotations("F^oo f;");
+ auto TU = TestTU::withCode(MainCode.code());
----------------
nit: I think most variables are not being modified here, so maybe const everywhere?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74411/new/
https://reviews.llvm.org/D74411
More information about the cfe-commits
mailing list