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:
@@ -37,7 +37,6 @@
|
||||
|
||||
namespace CppTools {
|
||||
|
||||
class BuiltinEditorDocumentParser;
|
||||
class SemanticInfoUpdaterPrivate;
|
||||
|
||||
class SemanticInfoUpdater : public QObject
|
||||
@@ -46,7 +45,7 @@ class SemanticInfoUpdater : public QObject
|
||||
Q_DISABLE_COPY(SemanticInfoUpdater)
|
||||
|
||||
public:
|
||||
explicit SemanticInfoUpdater(BuiltinEditorDocumentParser *parser);
|
||||
explicit SemanticInfoUpdater();
|
||||
~SemanticInfoUpdater();
|
||||
|
||||
SemanticInfo semanticInfo() const;
|
||||
|
||||
Reference in New Issue
Block a user