forked from qt-creator/qt-creator
CppTools: Do not read language features from document in completer
The correct value is set on construction. The document knows *less*. Task-number: QTCREATORBUG-14583 Change-Id: I60973047e14ce0664c49e802124b51aa23444835 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
73fbf3afd1
commit
81a4f6b970
@@ -2191,9 +2191,5 @@ void CppCompletionAssistInterface::getCppSpecifics() const
|
|||||||
m_parser->update(BuiltinEditorDocumentParser::InMemoryInfo(false));
|
m_parser->update(BuiltinEditorDocumentParser::InMemoryInfo(false));
|
||||||
m_snapshot = m_parser->snapshot();
|
m_snapshot = m_parser->snapshot();
|
||||||
m_headerPaths = m_parser->headerPaths();
|
m_headerPaths = m_parser->headerPaths();
|
||||||
if (Document::Ptr document = m_parser->document())
|
|
||||||
m_languageFeatures = document->languageFeatures();
|
|
||||||
else
|
|
||||||
m_languageFeatures = LanguageFeatures::defaultFeatures();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user