forked from qt-creator/qt-creator
		
	CppTools: Provide the editor snapshot for SemanticInfoUpdater
...so that SemanticInfoUpdater does not depend anymore on the EditorDocumentParser. Accessing the snapshot was a blocking operation that delayed the semantic info update longer than actually needed. Change-Id: I348d22ef83ab310d4319b2e8b9678fe90ee24d6a Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
		| @@ -48,6 +48,7 @@ public: | ||||
|         const QString fileName; | ||||
|         const QByteArray code; | ||||
|         const unsigned revision; | ||||
|         CPlusPlus::Snapshot snapshot; | ||||
|         const bool force; | ||||
|  | ||||
|         Source() : revision(0), force(false) {} | ||||
| @@ -55,10 +56,12 @@ public: | ||||
|         Source(const QString &fileName, | ||||
|                const QByteArray &code, | ||||
|                unsigned revision, | ||||
|                const CPlusPlus::Snapshot &snapshot, | ||||
|                bool force) | ||||
|             : fileName(fileName) | ||||
|             , code(code) | ||||
|             , revision(revision) | ||||
|             , snapshot(snapshot) | ||||
|             , force(force) | ||||
|         {} | ||||
|     }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user