[PATCH] D72874: [clangd] Add a textual fallback for go-to-definition
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 5 16:58:43 PST 2020
nridge marked an inline comment as done.
nridge added inline comments.
================
Comment at: clang-tools-extra/clangd/XRefs.cpp:489
+ Index->fuzzyFind(Req, [&](const Symbol &Sym) {
+ auto MaybeDeclLoc =
+ symbolLocationToLocation(Sym.CanonicalDeclaration, MainFilePath);
----------------
Sorry this location-setting code is so messy. All my attempts to make it more concise have been thwarted by `llvm::Expected`'s very restrictive API.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72874/new/
https://reviews.llvm.org/D72874
More information about the cfe-commits
mailing list