[all-commits] [llvm/llvm-project] 030d48: [clangd] Augment code completion results with docu...
Bevin Hansson via All-commits
all-commits at lists.llvm.org
Tue Jan 14 22:14:42 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 030d48b7db9845f42bf3ef365193bfdbb23f5440
https://github.com/llvm/llvm-project/commit/030d48b7db9845f42bf3ef365193bfdbb23f5440
Author: Bevin Hansson <bevin.hansson at ericsson.com>
Date: 2025-01-15 (Wed, 15 Jan 2025)
Changed paths:
M clang-tools-extra/clangd/CodeComplete.cpp
M clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
Log Message:
-----------
[clangd] Augment code completion results with documentation from the index. (#120099)
When looking up code completions from Sema, there is no associated
documentation. This is due to crash issues with stale preambles.
However, this also means that code completion results from other
than the main file do not have documentation in certain cases,
which is a bad user experience.
This patch performs a lookup into the index using the code
completion result declarations to find documentation, and
attaches it to the results.
Fixes clangd/clangd#2252
Fixes clangd/clangd#564
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list