Clang: Create preamble on first parse

...now that parsing and creating the preamble is faster due to the
skipped function bodies.

As a consequence, we can remove all the extra jobs that were needed to
get an initial AST faster.

Change-Id: I79a66b8a0e8a180850af6daf353d9a679089bbb1
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Nikolai Kosjar
2018-05-22 10:44:44 +02:00
parent 8fa15892a4
commit 69dec8a9f8
18 changed files with 10 additions and 482 deletions

View File

@@ -7,7 +7,6 @@ HEADERS += \
$$PWD/clangcodecompleteresults.h \
$$PWD/clangcodemodelserver.h \
$$PWD/clangcompletecodejob.h \
$$PWD/clangcreateinitialdocumentpreamblejob.h \
$$PWD/clangdocument.h \
$$PWD/clangdocumentjob.h \
$$PWD/clangdocumentprocessor.h \
@@ -26,7 +25,6 @@ HEADERS += \
$$PWD/clangjobs.h \
$$PWD/clangparsesupportivetranslationunitjob.h \
$$PWD/clangreferencescollector.h \
$$PWD/clangreparsesupportivetranslationunitjob.h \
$$PWD/clangrequestdocumentannotationsjob.h \
$$PWD/clangrequestreferencesjob.h \
$$PWD/clangrequesttooltipjob.h \
@@ -68,7 +66,6 @@ SOURCES += \
$$PWD/clangcodecompleteresults.cpp \
$$PWD/clangcodemodelserver.cpp \
$$PWD/clangcompletecodejob.cpp \
$$PWD/clangcreateinitialdocumentpreamblejob.cpp \
$$PWD/clangdocument.cpp \
$$PWD/clangdocumentprocessor.cpp \
$$PWD/clangdocumentprocessors.cpp \
@@ -87,7 +84,6 @@ SOURCES += \
$$PWD/clangparsesupportivetranslationunitjob.cpp \
$$PWD/clangresumedocumentjob.cpp \
$$PWD/clangreferencescollector.cpp \
$$PWD/clangreparsesupportivetranslationunitjob.cpp \
$$PWD/clangrequestdocumentannotationsjob.cpp \
$$PWD/clangrequestreferencesjob.cpp \
$$PWD/clangrequesttooltipjob.cpp \