diff options
author | Marco Bubke <marco.bubke@theqtcompany.com> | 2015-09-28 17:42:43 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@theqtcompany.com> | 2015-09-28 15:46:15 +0000 |
commit | b412eb81eafb203c59c659c1b36f94a0002c1f4e (patch) | |
tree | 7de52439d0c2883657dd2b76c44db1a3c902e64e /src/plugins/cpptools/editordocumenthandle.cpp | |
parent | 803cca408665a54b8b9ed2e0a651b9c82b95ad80 (diff) | |
download | qt-creator-b412eb81eafb203c59c659c1b36f94a0002c1f4e.tar.gz |
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>
Diffstat (limited to 'src/plugins/cpptools/editordocumenthandle.cpp')
-rw-r--r-- | src/plugins/cpptools/editordocumenthandle.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/cpptools/editordocumenthandle.cpp b/src/plugins/cpptools/editordocumenthandle.cpp index abf70ac9da..07d91a0b8f 100644 --- a/src/plugins/cpptools/editordocumenthandle.cpp +++ b/src/plugins/cpptools/editordocumenthandle.cpp @@ -58,4 +58,9 @@ void CppEditorDocumentHandle::setNeedsRefresh(bool needsRefresh) m_needsRefresh = needsRefresh; } +SendDocumentTracker &CppEditorDocumentHandle::sendTracker(const QString &projectPartId) +{ + return m_documentRevisionManagements[projectPartId]; +} + } // namespace CppTools |