forked from qt-creator/qt-creator
Clang: Reuse thread based pipeline for pch creation
The pch creation so far used signal and slots but there was no explicit pipeline. This patch is introducing the same architecture like the refactoring plugin. It is filtering out older project parts from the pipeline. Change-Id: Iaa6bd2ca1272231b97ebe1f5f7b2ce8e43bc590c Task-number: QTCREATORBUG-21111 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
|
||||
#include "mockcppmodelmanager.h"
|
||||
#include "mockrefactoringserver.h"
|
||||
#include "mockprecompiledheaderstorage.h"
|
||||
|
||||
#include <sqlitedatabase.h>
|
||||
|
||||
@@ -87,8 +86,7 @@ protected:
|
||||
ClangBackEnd::RefactoringDatabaseInitializer<Sqlite::Database> initializer{database};
|
||||
ClangBackEnd::FilePathCaching filePathCache{database};
|
||||
NiceMock<MockRefactoringServer> mockRefactoringServer;
|
||||
NiceMock<MockPrecompiledHeaderStorage> mockPrecompiledHeaderStorage;
|
||||
ClangPchManager::PchManagerClient pchManagerClient{mockPrecompiledHeaderStorage};
|
||||
ClangPchManager::PchManagerClient pchManagerClient;
|
||||
MockCppModelManager mockCppModelManager;
|
||||
ClangRefactoring::RefactoringProjectUpdater updater{mockRefactoringServer, pchManagerClient, mockCppModelManager, filePathCache};
|
||||
Utils::SmallString projectPartId;
|
||||
|
||||
Reference in New Issue
Block a user