ToolChain: Make sure all ToolChains have a language set

* Add code to toolchains
* Assert that this is the case in the toolchainmanager

Change-Id: I82452689e83279fd9d1afb3140b0070bef9b6cd8
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-07-12 12:20:06 +02:00
parent dbf5f74352
commit 1304b250eb
14 changed files with 53 additions and 27 deletions

View File

@@ -88,7 +88,9 @@ static const char messageCapKeyC[] = "ProjectExplorer.CustomToolChain.MessageCap
CustomToolChain::CustomToolChain(Detection d) :
ToolChain(Constants::CUSTOM_TOOLCHAIN_TYPEID, d),
m_outputParser(Gcc)
{ }
{
setLanguage(Language::Cxx);
}
QString CustomToolChain::typeDisplayName() const
{