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:
Francois Ferrand
2014-09-15 11:13:36 +02:00
committed by Nikolai Kosjar
parent a645f78cd6
commit 7e544073c0
5 changed files with 68 additions and 21 deletions

View File

@@ -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;