forked from qt-creator/qt-creator
Clang: Add revision and completion management
Reparsing a document is expensive so we should avoid it by all means. In this patch we prevent that the same document is send again. It isn't send too in advance of a code completion if there was no changes before the the completion position. Change-Id: I0bb786ba1d4e7ce08611a518cb32f8cf8f4d0037 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -32,6 +32,10 @@
|
||||
#define EDITORDOCUMENTHANDLE_H
|
||||
|
||||
#include "cpptools_global.h"
|
||||
#include "senddocumenttracker.h"
|
||||
|
||||
#include <QMap>
|
||||
#include <QString>
|
||||
|
||||
namespace CppTools {
|
||||
class BaseEditorDocumentProcessor;
|
||||
@@ -55,7 +59,10 @@ public:
|
||||
|
||||
virtual void resetProcessor() = 0;
|
||||
|
||||
SendDocumentTracker &sendTracker(const QString &projectPartId);
|
||||
|
||||
private:
|
||||
QMap<QString, SendDocumentTracker> m_documentRevisionManagements;
|
||||
bool m_needsRefresh;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user