[PATCH] D70727: [clangd] Keep go-to-definition working at the end of an identifier (fixes #194)
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 30 21:29:08 PST 2019
nridge abandoned this revision.
nridge marked an inline comment as done.
nridge added inline comments.
================
Comment at: clang-tools-extra/clangd/XRefs.cpp:153
+ // allowing go-to-definition to work at the end of an identifier.
+ if (Result.empty() && Offset > 0) {
+ Result = getDeclAtOffset(AST, Offset - 1, Relations);
----------------
hokein wrote:
> this looks a hacky workaround, I assume it may introduce other regression issues.
>
> I think https://reviews.llvm.org/D70773 and https://reviews.llvm.org/D70807 should fix most annoying cases (function call).
Fair enough! Will abandon this patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70727/new/
https://reviews.llvm.org/D70727
More information about the cfe-commits
mailing list