MCPcopy Create free account
hub / github.com/KDE/kdevelop / builderForProject

Method builderForProject

plugins/cmakebuilder/cmakebuilder.cpp:224–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224KDevelop::IProjectBuilder* CMakeBuilder::builderForProject(KDevelop::IProject* p) const
225{
226 QString builddir = CMake::currentBuildDir( p ).toLocalFile();
227 QMap<QString, IProjectBuilder*>::const_iterator it = m_builders.constBegin(), itEnd = m_builders.constEnd();
228 for(; it!=itEnd; ++it) {
229 if (QFile::exists(builddir+QLatin1Char('/')+it.key()))
230 return it.value();
231 }
232 //It means that it still has to be generated, so use the builder for
233 //the generator we use
234 return m_buildersForGenerator[CMake::defaultGenerator()];
235}
236
237QList< KDevelop::IProjectBuilder* > CMakeBuilder::additionalBuilderPlugins( KDevelop::IProject* project ) const
238{

Callers

nothing calls this directly

Calls 7

currentBuildDirFunction · 0.85
defaultGeneratorFunction · 0.85
toLocalFileMethod · 0.80
constBeginMethod · 0.80
constEndMethod · 0.80
keyMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected