[PATCH] D47937: [clangd] Support proximity paths in index fuzzy find.
Eric Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 11 04:28:40 PDT 2018
ioeric added inline comments.
================
Comment at: clangd/index/Index.h:275
+ /// Contextually relevant files (e.g. the file we're code-completing in).
+ /// Paths should be absolute.
+ std::vector<std::string> ProximityPaths;
----------------
sammccall wrote:
> Hmm, the returned results have URIs, not paths.
>
> It seems cleaner that the query params be URIs too.
> However then we need a way to know which scheme the index expects.
>
> It could expose this information, or the index could accept a path here and do the conversion itself. This indexes need to be "thick" and deal with the URI infrastructure, but may be the simplest way.
>
> What's your thinking here?
> However then we need a way to know which scheme the index expects.
> It could expose this information, or the index could accept a path here and do the conversion itself. This indexes need to be "thick" and deal with the URI infrastructure, but may be the simplest way.
Yeah, I was thinking the same. Also index symbols can have different schemes, and we might not have enough information to know which scheme is preferable until we see a candidate.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D47937
More information about the cfe-commits
mailing list