forked from qt-creator/qt-creator
Turn QTC_ASSERT into normal check.
It is not an error if no toolchain is present in the kit. It just means the same as the toolchain not being gcc or clang. Change-Id: I193fd196ab830321dade1c3d32080b81a93cf645 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -60,8 +60,8 @@ bool ClangStaticAnalyzerRunControlFactory::canRun(RunConfiguration *runConfigura
|
|||||||
Kit *kit = target->kit();
|
Kit *kit = target->kit();
|
||||||
QTC_ASSERT(kit, return false);
|
QTC_ASSERT(kit, return false);
|
||||||
ToolChain *toolChain = ToolChainKitInformation::toolChain(kit);
|
ToolChain *toolChain = ToolChainKitInformation::toolChain(kit);
|
||||||
QTC_ASSERT(toolChain, return false);
|
return toolChain && (toolChain->type() == QLatin1String("clang")
|
||||||
return toolChain->type() == QLatin1String("clang") || toolChain->type() == QLatin1String("gcc");
|
|| toolChain->type() == QLatin1String("gcc"));
|
||||||
}
|
}
|
||||||
|
|
||||||
RunControl *ClangStaticAnalyzerRunControlFactory::create(RunConfiguration *runConfiguration,
|
RunControl *ClangStaticAnalyzerRunControlFactory::create(RunConfiguration *runConfiguration,
|
||||||
|
|||||||
Reference in New Issue
Block a user