Commit d4abde4c authored by Nikolai Kosjar's avatar Nikolai Kosjar

Clang: Offer snippets only for global completion

Task-number: QTCREATORBUG-14181
Change-Id: Ib9eee53f5398cb13643871d862876f329a2fd9ae
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 841046ae
......@@ -1061,7 +1061,8 @@ int ClangCompletionAssistProcessor::startCompletionInternal(const QString fileNa
foreach (ClangAssistProposalItem *item, items.values())
m_completions.append(item);
addSnippets();
if (m_model->m_completionOperator == T_EOF_SYMBOL)
addSnippets();
return m_startPosition;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment