diff options
author | Sam McCall <sam.mccall@gmail.com> | 2018-06-22 06:41:43 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2018-06-22 06:41:43 +0000 |
commit | 032db94ac9eac2d18d1889672853e7e69b639c4d (patch) | |
tree | 817b78824f7fd272617a87a4cbc89ad2f6cd4b8b /clang-tools-extra/clangd/CodeCompletionStrings.cpp | |
parent | aa5f4d2e23d34ac08cb7eb0f8810cc9db4760f3a (diff) | |
download | bcm5719-llvm-032db94ac9eac2d18d1889672853e7e69b639c4d.tar.gz bcm5719-llvm-032db94ac9eac2d18d1889672853e7e69b639c4d.zip |
[clangd] Remove FilterText from the index.
Summary:
It's almost always identical to Name, and in fact we never used it (we used name
instead).
The only case where they differ is objc method selectors (foo: vs foo:bar:).
We can live with the latter for both name and filterText, so I've made that
change too.
Reviewers: ioeric
Subscribers: ilya-biryukov, MaskRay, jkorous, cfe-commits
Differential Revision: https://reviews.llvm.org/D48375
llvm-svn: 335321
Diffstat (limited to 'clang-tools-extra/clangd/CodeCompletionStrings.cpp')
-rw-r--r-- | clang-tools-extra/clangd/CodeCompletionStrings.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/clang-tools-extra/clangd/CodeCompletionStrings.cpp b/clang-tools-extra/clangd/CodeCompletionStrings.cpp index c3066939a5a..814866e5a42 100644 --- a/clang-tools-extra/clangd/CodeCompletionStrings.cpp +++ b/clang-tools-extra/clangd/CodeCompletionStrings.cpp @@ -249,18 +249,5 @@ std::string getDetail(const CodeCompletionString &CCS) { return ""; } -std::string getFilterText(const CodeCompletionString &CCS) { - for (const auto &Chunk : CCS) { - switch (Chunk.Kind) { - case CodeCompletionString::CK_TypedText: - // There's always exactly one CK_TypedText chunk. - return Chunk.Text; - default: - break; - } - } - return ""; -} - } // namespace clangd } // namespace clang |