[PATCH] D47821: [clangd] Make workspace/symbols actually rank its results.

2018-06-07 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334162: [clangd] Make workspace/symbols actually rank its results. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D478

[PATCH] D47821: [clangd] Make workspace/symbols actually rank its results.

2018-06-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/FindSymbols.cpp:20 +#define DEBUG_TYPE "FindSymbols" + malaperle wrote: > nit: I don't think this is used. Remove? This is consumed by the LLVM_DEBUG macro. You can enable program-wide debug output with -debu

[PATCH] D47821: [clangd] Make workspace/symbols actually rank its results.

2018-06-06 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. This works much better! Just a nit. Comment at: clangd/FindSymbols.cpp:20 +#define DEBUG_TYPE "FindSymbols" + nit: I don't think this is used. Remove? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47821 __

[PATCH] D47821: [clangd] Make workspace/symbols actually rank its results.

2018-06-06 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. LGTM. Comment at: clangd/FindSymbols.cpp:159 +else + return; +Relevance.merge(Sym); Should we add a log statement here? IMO, this rarely happens

[PATCH] D47821: [clangd] Make workspace/symbols actually rank its results.

2018-06-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: hokein. Herald added subscribers: cfe-commits, jkorous, MaskRay, ioeric, ilya-biryukov. The index doesn't actually return results in ranked order. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47821 Files: clangd/F