[PATCH] D40780: [clangd] Incorporate fuzzy-match into result rankings.

2018-01-12 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL322377: [clangd] Incorporate fuzzy-match into result rankings. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D40780?v

[PATCH] D40780: [clangd] Incorporate fuzzy-match into result rankings.

2018-01-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: test/clangd/completion-fuzzy.test:1 +# RUN: clangd -pretty -run-synchronously < %s | FileCheck %s +# It is absolutely vital that this file has CRLF line endings. hokein wrote: > nit: any reason not using unittest `Code

[PATCH] D40780: [clangd] Incorporate fuzzy-match into result rankings.

2018-01-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 129633. sammccall marked an inline comment as done. sammccall added a comment. Unit test instead of lit test. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D40780 Files: clangd/CodeComplete.cpp clangd/FuzzyMatch.h clangd/Protocol.h

[PATCH] D40780: [clangd] Incorporate fuzzy-match into result rankings.

2018-01-12 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: test/clangd/completion-fuzzy.test:1 +# RUN: clangd -pretty -run-synchronously < %s | FileCheck %s +# It is absolutely vital that this file has CRLF line end

[PATCH] D40780: [clangd] Incorporate fuzzy-match into result rankings.

2018-01-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 129622. sammccall marked 2 inline comments as done. sammccall added a comment. Rebase, and address comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D40780 Files: clangd/CodeComplete.cpp clangd/FuzzyMatch.h clangd/Protocol.h

[PATCH] D40780: [clangd] Incorporate fuzzy-match into result rankings.

2018-01-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked 2 inline comments as done. sammccall added a comment. Tested in this file: #include #include #include int main() { std::^ } Before this change: u -> __has_argument_type, __has_first_argument_type... un -> __has_argument_type, __has_first_argument_type... u_p ->

[PATCH] D40780: [clangd] Incorporate fuzzy-match into result rankings.

2017-12-05 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/ClangdUnit.cpp:377 + : Result(&Result), SymbolScore(score(Result)), FilterScore(FilterScore), +Score(FilterScore * SymbolScore) {} It might worth mentioning how well `FilterScore * SymbolScore` perfo

[PATCH] D40780: [clangd] Incorporate fuzzy-match into result rankings.

2017-12-04 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. Herald added subscribers: cfe-commits, klimek. The scoring function is fuzzy-match-quality * existing quality score. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D40780 Files: clangd/ClangdUnit.cpp clangd/FuzzyMatch.h clangd/Protocol.h