[clangd] Improve code completion for ObjC methods
authorSam McCall <sam.mccall@gmail.com>
Wed, 14 Nov 2018 09:05:19 +0000 (09:05 +0000)
committerSam McCall <sam.mccall@gmail.com>
Wed, 14 Nov 2018 09:05:19 +0000 (09:05 +0000)
commit39e86fa5e49005898c47ca6b23bc465f65fe66c7
treebd4e2d51217cfd472fd3400daf6a7fee107d4804
parent2634bd599567842385e11d1fd70f5486c166f935
[clangd] Improve code completion for ObjC methods

Summary:
Previously code completion did not work well for Objective-C methods
which contained multiple arguments as clangd did not expect to see
multiple typed-text chunks when handling code completion.

Note that even with this change, we do not consider selector fragments
from previous arguments to be part of the signature (although we
could in the future).

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, jfb, kadircet, cfe-commits

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

llvm-svn: 346836
clang-tools-extra/clangd/CodeCompletionStrings.cpp
clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp
clang-tools-extra/unittests/clangd/CodeCompletionStringsTests.cpp