diff options
| author | Haojian Wu <hokein.wu@gmail.com> | 2019-10-23 12:35:33 +0200 |
|---|---|---|
| committer | Haojian Wu <hokein.wu@gmail.com> | 2019-10-24 10:25:16 +0200 |
| commit | bf71e4fe0a68085d29e9e883da1f17ae73945643 (patch) | |
| tree | b64fd6f2422bb7425f8f6829f39c4df684ca5fdb /clang-tools-extra/clangd/index/SymbolCollector.cpp | |
| parent | 914ce66413e9de560a4546e87cacbbecad4d63bb (diff) | |
| download | bcm5719-llvm-bf71e4fe0a68085d29e9e883da1f17ae73945643.tar.gz bcm5719-llvm-bf71e4fe0a68085d29e9e883da1f17ae73945643.zip | |
[clangd] Collect name references in the index.
Summary:
This is used for cross-file rename. When renaming a class, we expect to
rename all related constructors/destructors.
Reviewers: kadircet, ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D69338
Diffstat (limited to 'clang-tools-extra/clangd/index/SymbolCollector.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/index/SymbolCollector.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang-tools-extra/clangd/index/SymbolCollector.cpp b/clang-tools-extra/clangd/index/SymbolCollector.cpp index 269a699b90e..b0932dcf97a 100644 --- a/clang-tools-extra/clangd/index/SymbolCollector.cpp +++ b/clang-tools-extra/clangd/index/SymbolCollector.cpp @@ -263,10 +263,6 @@ bool SymbolCollector::handleDeclOccurence( Decl::FriendObjectKind::FOK_None) && !(Roles & static_cast<unsigned>(index::SymbolRole::Definition))) return true; - // Skip non-semantic references, we should start processing these when we - // decide to implement renaming with index support. - if ((Roles & static_cast<unsigned>(index::SymbolRole::NameReference))) - return true; // A declaration created for a friend declaration should not be used as the // canonical declaration in the index. Use OrigD instead, unless we've already // picked a replacement for D |

