Clang: fix completion for incomplete includes

Complete includes when one choice exists.
Fix complete in the middle.

Task-number: QTCREATORBUG-15710
Change-Id: Iec794c17aabc8de47f981382f4b4286b9325827d
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Ivan Donchevskii
2017-05-17 15:53:47 +02:00
parent 986a518c17
commit 762f67f729
3 changed files with 15 additions and 17 deletions

View File

@@ -46,7 +46,7 @@ bool ClangPreprocessorAssistProposalItem::prematurelyApplies(const QChar &typedC
bool ClangPreprocessorAssistProposalItem::implicitlyApplies() const
{
return false;
return true;
}
void ClangPreprocessorAssistProposalItem::apply(TextEditor::TextDocumentManipulatorInterface &manipulator,