forked from qt-creator/qt-creator
Clang: Gray out diagnostics on document change
When reparses take a while, this is helpful. Change-Id: Ie2003a3d65b30d944d20fa19dd4161412182851c Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -58,6 +58,7 @@ public:
|
||||
bool hasDiagnosticsAt(uint line, uint column) const;
|
||||
QVector<ClangBackEnd::DiagnosticContainer> diagnosticsAt(uint line, uint column) const;
|
||||
|
||||
void invalidateDiagnostics();
|
||||
void clearDiagnosticsWithFixIts();
|
||||
|
||||
private:
|
||||
@@ -80,6 +81,7 @@ private:
|
||||
QList<QTextEdit::ExtraSelection> m_extraSelections;
|
||||
TextEditor::RefactorMarkers m_fixItAvailableMarkers;
|
||||
std::vector<ClangTextMark *> m_clangTextMarks;
|
||||
bool m_diagnosticsInvalidated = false;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user