[clangd] Improve ObjC protocol suggestions from the index
authorDavid Goldman <davg@google.com>
Mon, 6 Jun 2022 16:19:32 +0000 (12:19 -0400)
committerDavid Goldman <davg@google.com>
Wed, 15 Jun 2022 19:02:37 +0000 (15:02 -0400)
commitbc1f24332af3dedccb84a975e57adca495ea016d
tree088284bd8ee39706fb0d083bb8d2729a36d53546
parentf3250da1b94fed260ea5da8264ba366c42aaf34c
[clangd] Improve ObjC protocol suggestions from the index

When querying the index during an ObjC protocol name lookup for code
completion, we should only suggest ObjC protocols.

Differential Revision: https://reviews.llvm.org/D127125
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
clang-tools-extra/clangd/unittests/TestIndex.cpp
clang-tools-extra/clangd/unittests/TestIndex.h