summaryrefslogtreecommitdiff
path: root/src/tools/clangrefactoringbackend/source/symbolindexer.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2018-08-28 12:08:37 +0200
committerMarco Bubke <marco.bubke@qt.io>2018-09-03 12:13:10 +0000
commita86867eb8a37c66f6eda36928208a82bb152b038 (patch)
treea1e1f5fe9de1cce0f9e4933cce0ff7b313e71ba5 /src/tools/clangrefactoringbackend/source/symbolindexer.h
parent86cd29b13c5489e67dcbfa223ac3519a9c4c520c (diff)
downloadqt-creator-a86867eb8a37c66f6eda36928208a82bb152b038.tar.gz
Clang: Introduce parallel indexing
Change-Id: I522cb18e6d24b7dbed5d5dfa3a732e5b3b5113bb Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/tools/clangrefactoringbackend/source/symbolindexer.h')
-rw-r--r--src/tools/clangrefactoringbackend/source/symbolindexer.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tools/clangrefactoringbackend/source/symbolindexer.h b/src/tools/clangrefactoringbackend/source/symbolindexer.h
index 4fc66fee0f..ffa2269e9b 100644
--- a/src/tools/clangrefactoringbackend/source/symbolindexer.h
+++ b/src/tools/clangrefactoringbackend/source/symbolindexer.h
@@ -26,7 +26,7 @@
#pragma once
#include "filestatuscache.h"
-#include "symbolscollectorinterface.h"
+#include "symbolindexertaskqueueinterface.h"
#include "symbolstorageinterface.h"
#include "clangpathwatcher.h"
@@ -35,10 +35,12 @@
namespace ClangBackEnd {
+class SymbolsCollectorInterface;
+
class SymbolIndexer : public ClangPathWatcherNotifier
{
public:
- SymbolIndexer(SymbolsCollectorInterface &symbolsCollector,
+ SymbolIndexer(SymbolIndexerTaskQueueInterface &symbolIndexerTaskQueue,
SymbolStorageInterface &symbolStorage,
ClangPathWatcherInterface &pathWatcher,
FilePathCachingInterface &filePathCache,
@@ -52,7 +54,8 @@ public:
void pathsWithIdsChanged(const Utils::SmallStringVector &ids) override;
void pathsChanged(const FilePathIds &filePathIds) override;
- void updateChangedPath(FilePathId filePath);
+ void updateChangedPath(FilePathId filePath,
+ std::vector<SymbolIndexerTask> &symbolIndexerTask);
bool compilerMacrosOrIncludeSearchPathsAreDifferent(
const V2::ProjectPartContainer &projectPart,
@@ -70,7 +73,7 @@ public:
int projectPartId) const;
private:
- SymbolsCollectorInterface &m_symbolsCollector;
+ SymbolIndexerTaskQueueInterface &m_symbolIndexerTaskQueue;
SymbolStorageInterface &m_symbolStorage;
ClangPathWatcherInterface &m_pathWatcher;
FilePathCachingInterface &m_filePathCache;