]> granicus.if.org Git - clang/commit
[CodeComplete] Filter override completions by function name
authorIlya Biryukov <ibiryukov@google.com>
Fri, 24 May 2019 10:18:39 +0000 (10:18 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Fri, 24 May 2019 10:18:39 +0000 (10:18 +0000)
commitb9f01a14a9a0bd15b374aff77d746da261c158d9
tree4757528e1ff081bc1970cb47571ca25e9df85aae
parent6e38ac04985f360b394f575a820b9966bc76b696
[CodeComplete] Filter override completions by function name

Summary:
We put only part of the signature starting with a function name into "typed text"
chunks now, previously the whole signature was "typed text".

This leads to meaningful fuzzy match scores, giving better signals to
compare with other completion items.

Ideally, we would not display the result type to the user, but that requires adding
a new kind of completion chunk.

Reviewers: kadircet

Reviewed By: kadircet

Subscribers: jkorous, arphaman, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D62298

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361623 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCodeComplete.cpp
test/CodeCompletion/overrides.cpp