[PATCH] D47937: [clangd] Support proximity paths in index fuzzy find.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 11 04:44:00 PDT 2018


sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.


================
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;
----------------
ioeric wrote:
> 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. 
OK, SGTM


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D47937





More information about the cfe-commits mailing list