ProjectExplorer: Promote CMakeToolChainData to a global structure

... and use it in ToolChainFactory::detectForImport() overloads.

Change-Id: I107b9d5e185580b8fbef4c6e0233fdae5d253506
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2019-07-02 11:31:12 +02:00
parent 25f9d9c434
commit 2b7fab1668
10 changed files with 86 additions and 94 deletions

View File

@@ -438,15 +438,14 @@ const QList<ToolChainFactory *> ToolChainFactory::allToolChainFactories()
QList<ToolChain *> ToolChainFactory::autoDetect(const QList<ToolChain *> &alreadyKnown)
{
Q_UNUSED(alreadyKnown);
return QList<ToolChain *>();
Q_UNUSED(alreadyKnown)
return {};
}
QList<ToolChain *> ToolChainFactory::detectForImport(const Utils::FilePath &compilerPath, const Core::Id &language)
QList<ToolChain *> ToolChainFactory::detectForImport(const ToolChainDescription &tcd)
{
Q_UNUSED(compilerPath);
Q_UNUSED(language);
return QList<ToolChain *>();
Q_UNUSED(tcd)
return {};
}
bool ToolChainFactory::canCreate() const