forked from qt-creator/qt-creator
		
	Use the text editor revision to ignore outdated parse results.
This commit is contained in:
		@@ -84,6 +84,16 @@ QString CppEditorSupport::contents()
 | 
			
		||||
    return _cachedContents;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
unsigned CppEditorSupport::editorRevision() const
 | 
			
		||||
{
 | 
			
		||||
    if (_textEditor) {
 | 
			
		||||
        if (TextEditor::BaseTextEditor *ed = qobject_cast<TextEditor::BaseTextEditor *>(_textEditor->widget()))
 | 
			
		||||
            return ed->document()->revision();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int CppEditorSupport::updateDocumentInterval() const
 | 
			
		||||
{ return _updateDocumentInterval; }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user