LocatorFilter: Introduce LocatorMatcherTasks

Change-Id: I775c88b8ac7d7bb0719a6b20d1e5171dbd62a94d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2023-04-12 20:12:57 +02:00
parent 422d422deb
commit 38d4f3fef3
3 changed files with 11 additions and 10 deletions

View File

@@ -209,7 +209,7 @@ ClangModelManagerSupport::ClangModelManagerSupport()
using WorkspaceMatcherCreator = std::function<Core::LocatorMatcherTask(Client *, int)>;
const auto matcherCreator = [](const WorkspaceMatcherCreator &creator) {
const QList<Client *> clients = clientsForOpenProjects();
QList<LocatorMatcherTask> matchers;
LocatorMatcherTasks matchers;
for (Client *client : clients)
matchers << creator(client, 10000);
return matchers;