forked from qt-creator/qt-creator
Ensure the document is updated before invoking a quickfix.
This commit is contained in:
@@ -1308,6 +1308,14 @@ Symbol *CPPEditor::findDefinition(Symbol *symbol)
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool CPPEditor::isOutdated() const
|
||||
{
|
||||
if (m_lastSemanticInfo.revision != document()->revision())
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
SemanticInfo CPPEditor::semanticInfo() const
|
||||
{
|
||||
return m_lastSemanticInfo;
|
||||
|
||||
Reference in New Issue
Block a user