[PATCH] D90750: [clangd] Introduce ProjectAwareIndex
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 6 06:59:44 PST 2020
kadircet updated this revision to Diff 303442.
kadircet added a comment.
The index has the following query semantics:
- Lookup: it only queries the associated index. This is to not regress
latency for operations like Hover and Go-To.
- FuzzyFind only queries the associated index when
RestrictForCodeCompletion is set, it queries all otherwise. Again this
is to prevent latency regression for code completion, but make sure we
provide complete results for search operations like WorkspaceSymbol.
- Refs, queries all. As incomplete results for such operations might
result in bad UX for opeartions like rename. Also having an incomplete
set of references might result in bad impressions.
- Relations, queries all. Again this is used by operations like type and
call hierarchy and having incomplete results are useless for such
operations.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90750/new/
https://reviews.llvm.org/D90750
Files:
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/index/ProjectAware.cpp
clang-tools-extra/clangd/index/ProjectAware.h
clang-tools-extra/clangd/unittests/CMakeLists.txt
clang-tools-extra/clangd/unittests/ProjectAwareIndexTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90750.303442.patch
Type: text/x-patch
Size: 8817 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201106/44064668/attachment-0001.bin>
More information about the cfe-commits
mailing list