Clang: Extract TranslationUnitUpdater

...in preparation for concurrent processing of documents.

Parsing and reparsing is handled by TranslationUnit. Since we will do
this in a different thread, extract the core logic into the new class
TranslationUnitUpdater, so that we can prepare the necessary data for
the run and then later incorporate the results of the parse/reparse.

Change-Id: Ic9d936d193ee6795a755f0cfc38c0b2a7bd402cc
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Nikolai Kosjar
2016-07-15 12:30:25 +02:00
parent 606d41187c
commit dc734f45fd
10 changed files with 541 additions and 157 deletions

View File

@@ -30,6 +30,7 @@ HEADERS += $$PWD/clangcodemodelserver.h \
$$PWD/cursor.h \
$$PWD/skippedsourceranges.h \
$$PWD/clangtranslationunit.h \
$$PWD/clangtranslationunitupdater.h \
$$PWD/clangtype.h \
$$PWD/highlightingmark.h \
$$PWD/highlightingmarks.h \
@@ -67,6 +68,7 @@ SOURCES += $$PWD/clangcodemodelserver.cpp \
$$PWD/cursor.cpp \
$$PWD/skippedsourceranges.cpp \
$$PWD/clangtranslationunit.cpp \
$$PWD/clangtranslationunitupdater.cpp \
$$PWD/clangtype.cpp \
$$PWD/highlightingmark.cpp \
$$PWD/highlightingmarks.cpp \