Skip informative scope foo::

This commit is contained in:
Fangrui Song 2018-09-16 16:57:43 -07:00
parent 62d0c49b0a
commit 05c4c85bd6

View File

@ -380,6 +380,11 @@ void BuildItem(std::vector<lsCompletionItem> &out,
for (auto i = first; i < out.size(); i++)
out[i].parameters_.push_back(text);
break;
case CodeCompletionString::CK_Informative:
if (StringRef(Chunk.Text).endswith("::"))
continue;
text = Chunk.Text;
break;
case CodeCompletionString::CK_ResultType:
result_type = Chunk.Text;
continue;