ClangRefactoring: Process tasks after a task has been finished

It could be that processTasks is executed before the future is finished
but in that case there are other tasks which will be called later.

Change-Id: I9b1bfb6fdd642f23842b9c70d60d5b1552193b99
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Marco Bubke
2018-08-27 15:54:08 +02:00
parent c81070aa7d
commit 2f41886c4b
9 changed files with 165 additions and 10 deletions

View File

@@ -25,6 +25,8 @@
#pragma once
#include "symbolindexertaskqueueinterface.h"
#include <filepathid.h>
#include <utils/smallstringvector.h>
@@ -92,6 +94,8 @@ public:
std::vector<std::size_t> projectPartNumberIds(const Utils::SmallStringVector &projectPartIds)
/* [[ensures result: std::is_sorted(result)]] */;
void processTasks() ;
private:
std::vector<Utils::SmallString> m_projectPartIds;
std::vector<SymbolIndexerTask> m_tasks;