-  
 - Downloads
 
Clang: Extract TranslationUnitCore and (re)parse explicitly
Extract TranslationUnitCore, which is the API for the high-level
operations we need. TranslationUnit does not call any clang_* functions
anymore, except the one needed for disposing the CXTranslationUnit - for
now, we keep TranslationUnit the owner of TranslationUnitCore.
TranslationUnitCore will be passed on to the worker threads.
With this, the current "TranslationUnit" looses its meaning. We will
rename it to "Document" in a follow-up change.
                            ***
TranslationUnit::cxTranslationUnit does not implicitly
creates/parses/reparses anymore. We use more verbose update operations
now.
The test ClangIpcServer.GetCodeCompletionDependingOnArgumets fails now
because of this - CodeCompleter::completeHelper() does not recreate the
translation unit anymore, thus working on the old data.
This will be addressed in a follow-up change.
Change-Id: I6213d6f1609cd3c9a54666c84cb8b623b2fefe1c
Reviewed-by: 
Tim Jenssen <tim.jenssen@qt.io>
Showing         
- src/tools/clangbackend/ipcsource/clangbackendclangipc-source.pri 4 additions, 2 deletions...ls/clangbackend/ipcsource/clangbackendclangipc-source.pri
 - src/tools/clangbackend/ipcsource/clangcodemodelserver.cpp 10 additions, 6 deletionssrc/tools/clangbackend/ipcsource/clangcodemodelserver.cpp
 - src/tools/clangbackend/ipcsource/clangtranslationunit.cpp 31 additions, 87 deletionssrc/tools/clangbackend/ipcsource/clangtranslationunit.cpp
 - src/tools/clangbackend/ipcsource/clangtranslationunit.h 11 additions, 16 deletionssrc/tools/clangbackend/ipcsource/clangtranslationunit.h
 - src/tools/clangbackend/ipcsource/clangtranslationunitcore.cpp 189 additions, 0 deletions...tools/clangbackend/ipcsource/clangtranslationunitcore.cpp
 - src/tools/clangbackend/ipcsource/clangtranslationunitcore.h 102 additions, 0 deletionssrc/tools/clangbackend/ipcsource/clangtranslationunitcore.h
 - src/tools/clangbackend/ipcsource/codecompleter.cpp 10 additions, 20 deletionssrc/tools/clangbackend/ipcsource/codecompleter.cpp
 - src/tools/clangbackend/ipcsource/codecompleter.h 3 additions, 6 deletionssrc/tools/clangbackend/ipcsource/codecompleter.h
 - src/tools/clangbackend/ipcsource/diagnosticset.h 1 addition, 1 deletionsrc/tools/clangbackend/ipcsource/diagnosticset.h
 - src/tools/clangbackend/ipcsource/sourcelocation.h 1 addition, 1 deletionsrc/tools/clangbackend/ipcsource/sourcelocation.h
 - src/tools/clangbackend/ipcsource/translationunits.cpp 1 addition, 1 deletionsrc/tools/clangbackend/ipcsource/translationunits.cpp
 - tests/unit/unittest/clangcodecompleteresultstest.cpp 10 additions, 5 deletionstests/unit/unittest/clangcodecompleteresultstest.cpp
 - tests/unit/unittest/codecompletionsextractortest.cpp 12 additions, 6 deletionstests/unit/unittest/codecompletionsextractortest.cpp
 - tests/unit/unittest/codecompletiontest.cpp 25 additions, 22 deletionstests/unit/unittest/codecompletiontest.cpp
 - tests/unit/unittest/cursortest.cpp 109 additions, 103 deletionstests/unit/unittest/cursortest.cpp
 - tests/unit/unittest/diagnosticsettest.cpp 19 additions, 9 deletionstests/unit/unittest/diagnosticsettest.cpp
 - tests/unit/unittest/diagnostictest.cpp 58 additions, 22 deletionstests/unit/unittest/diagnostictest.cpp
 - tests/unit/unittest/fixittest.cpp 50 additions, 5 deletionstests/unit/unittest/fixittest.cpp
 - tests/unit/unittest/highlightingmarkstest.cpp 137 additions, 124 deletionstests/unit/unittest/highlightingmarkstest.cpp
 - tests/unit/unittest/skippedsourcerangestest.cpp 12 additions, 2 deletionstests/unit/unittest/skippedsourcerangestest.cpp
 
Loading
Please sign in to comment