forked from qt-creator/qt-creator
CMake: separate processing C and C++ flags in TeaLeafReader
C and C++ flags holds at the different variables/compiler settings in the generated Make and Ninja files. Currently only C++ Flags processed and assumes that same one uses for C lang. But now QtC core can handle C and C++ separatelly, so just add processing for that flags and use it for code model. Change-Id: If1f71a2c58284a46324f04e962fc120cc316b0fb Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -65,7 +65,10 @@ BuildDirReader::Parameters::Parameters(const CMakeBuildConfiguration *bc)
|
||||
|
||||
auto tc = ProjectExplorer::ToolChainKitInformation::toolChain(k, ProjectExplorer::ToolChain::Language::Cxx);
|
||||
if (tc)
|
||||
toolChainId = tc->id();
|
||||
cxxToolChainId = tc->id();
|
||||
tc = ProjectExplorer::ToolChainKitInformation::toolChain(k, ProjectExplorer::ToolChain::Language::C);
|
||||
if (tc)
|
||||
cToolChainId = tc->id();
|
||||
sysRoot = ProjectExplorer::SysRootKitInformation::sysRoot(k);
|
||||
|
||||
expander = k->macroExpander();
|
||||
|
||||
Reference in New Issue
Block a user