ClangCodeModel: Make some ClangModelManagerSupport methods static

Change-Id: Ie34a89ae01783631c6482cff8d4866595e757be5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2022-08-01 18:07:41 +02:00
parent df4155f617
commit 2f169bdfcb
7 changed files with 15 additions and 19 deletions

View File

@@ -499,8 +499,7 @@ void ClangModelManagerSupport::updateLanguageClient(
m_generatorSynchronizer.addFuture(future);
}
ClangdClient *ClangModelManagerSupport::clientForProject(
const ProjectExplorer::Project *project) const
ClangdClient *ClangModelManagerSupport::clientForProject(const ProjectExplorer::Project *project)
{
const QList<Client *> clients = Utils::filtered(
LanguageClientManager::clientsForProject(project),
@@ -525,7 +524,7 @@ ClangdClient *ClangModelManagerSupport::clientForProject(
return clients.empty() ? nullptr : qobject_cast<ClangdClient *>(clients.first());
}
ClangdClient *ClangModelManagerSupport::clientForFile(const Utils::FilePath &file) const
ClangdClient *ClangModelManagerSupport::clientForFile(const Utils::FilePath &file)
{
return qobject_cast<ClangdClient *>(LanguageClientManager::clientForFilePath(file));
}