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

Method prune

plugins/meson/mesonbuilder.cpp:259–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259KJob* MesonBuilder::prune(KDevelop::IProject* project)
260{
261 Q_ASSERT(project);
262 Meson::BuildDir buildDir = Meson::currentBuildDir(project);
263 if (!buildDir.isValid()) {
264 qCWarning(KDEV_Meson) << "The current build directory is invalid";
265 return new ErrorJob(this, i18n("The current build directory for %1 is invalid", project->name()));
266 }
267
268 KJob* job = new MesonJobPrune(buildDir, this);
269 connect(job, &KJob::result, this, [this, project]() { emit pruned(project); });
270 return job;
271}
272
273QList<IProjectBuilder*> MesonBuilder::additionalBuilderPlugins(IProject*) const
274{

Callers

nothing calls this directly

Calls 3

currentBuildDirFunction · 0.85
isValidMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected