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
- rG LLVM Github Monorepo
- Build Status
Buildable 30995 Build 30994: arc lint + arc unit
Event Timeline
clang-tools-extra/clangd/XRefs.cpp | ||
---|---|---|
350 | 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 | The connection between the comment and the code seems a little obscure to me. |
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.