forked from qt-creator/qt-creator
CppTools: restore C++ diagnostics messages.
The messages were computed, but not added to the document. Change-Id: Ibeea802cf9f291ad14b2fe2e9d2a285c927a4449 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
a645f78cd6
commit
7e544073c0
@@ -60,6 +60,8 @@ public:
|
||||
private:
|
||||
void onParserFinished(CPlusPlus::Document::Ptr document, CPlusPlus::Snapshot snapshot);
|
||||
void onSemanticInfoUpdated(const CppTools::SemanticInfo semanticInfo);
|
||||
void onCodeWarningsUpdated(CPlusPlus::Document::Ptr document,
|
||||
const QList<CPlusPlus::Document::DiagnosticMessage> &codeWarnings);
|
||||
|
||||
SemanticInfo::Source createSemanticInfoSource(bool force) const;
|
||||
|
||||
@@ -68,6 +70,8 @@ private:
|
||||
QFuture<void> m_parserFuture;
|
||||
|
||||
CPlusPlus::Snapshot m_documentSnapshot;
|
||||
QList<QTextEdit::ExtraSelection> m_codeWarnings;
|
||||
bool m_codeWarningsUpdated;
|
||||
|
||||
SemanticInfoUpdater m_semanticInfoUpdater;
|
||||
QScopedPointer<SemanticHighlighter> m_semanticHighlighter;
|
||||
|
||||
Reference in New Issue
Block a user