This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Add type boost to fuzzy find in Dex.
ClosedPublic

Authored by ioeric on Feb 6 2019, 5:51 AM.

Details

Summary

No noticeable impact on code completions overall except some improvement on
cross-namespace completion.

Diff Detail

Event Timeline

ioeric created this revision.Feb 6 2019, 5:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2019, 5:51 AM
sammccall accepted this revision.Feb 6 2019, 5:59 AM
sammccall added inline comments.
clangd/index/Index.h
457–458

should these be OpaqueType?

I think the only reason we use StringRef in Symbol is for the non-owning aspect.

otherwise indicate encoding in comment.

clangd/index/dex/Dex.cpp
72

BoostingIterators.push_back(Corpus.boost(iterator(Tok)))?

unittests/clangd/DexTests.cpp
703

proximity paths?

This revision is now accepted and ready to land.Feb 6 2019, 5:59 AM
ioeric updated this revision to Diff 185554.Feb 6 2019, 7:32 AM
ioeric marked 4 inline comments as done.
  • address comments plus some refactoring.
ioeric updated this revision to Diff 185555.Feb 6 2019, 7:34 AM
  • revert unintended change.
This revision was automatically updated to reflect the committed changes.