clangd currently prefers declarations from codegen files. This patch
implements that behavior for definition locations. If we have definiton
locations both coming from AST and index, clangd will perform a merging to show
the codegen file if that's the case.
Details
Details
- Reviewers
sammccall - Commits
- rZORGa01fdd81b2ec: [clangd] Also perform merging for symbol definitions
rZORG11cc01346d56: [clangd] Also perform merging for symbol definitions
rGa01fdd81b2ec: [clangd] Also perform merging for symbol definitions
rG11cc01346d56: [clangd] Also perform merging for symbol definitions
rG50c3e8cb4062: [clangd] Also perform merging for symbol definitions
rCTE359874: [clangd] Also perform merging for symbol definitions
rL359874: [clangd] Also perform merging for symbol definitions
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tools-extra/clangd/XRefs.cpp | ||
---|---|---|
350 ↗ | (On Diff #197725) | Maybe move this below the PreferredDeclaration assignment? It might just be me, but the generated code case seems much more obscure than the AST/index conflict case. |
350 ↗ | (On Diff #197725) | The connection between the comment and the code seems a little obscure to me. |