-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clangd] Simplify "preferred" vs "definition" logic a bit in XRefs AS…
…T code. Summary: Now Preferred is always the canonical (first) decl, Definition is always the def if available. In practice the index was already forcing this behaviour anyway, so there's no change. (Unless you weren't using this index, in which case this patch makes textDocument/declaration and toggling work as expected). Reviewers: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73369
- Loading branch information
1 parent
1a27d63
commit 6324912
Showing
2 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters