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

Method start

kdevplatform/project/builderjob.cpp:247–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void BuilderJob::start()
248{
249 // Automatically save all documents before starting to build
250 // might need an option to turn off at some point
251 // Also should be moved into the builder and there try to find target(s) for the given item and then just save the documents of that target -> list??
252 if (ICore::self()->activeSession()->config()->group(QStringLiteral("Project Manager")).readEntry("Save All Documents Before Building", true))
253 {
254 if (!ICore::self()->documentController()->saveAllDocuments(
255 IDocumentController::SaveSelectionMode::DontAskUser)) {
256 setError(CouldNotSaveAllDocumentsError);
257 emitResult();
258 return;
259 }
260 }
261
262 ExecuteCompositeJob::start();
263}
264
265#include "moc_builderjob.cpp"

Callers 9

projectClosingMethod · 0.45
createdMethod · 0.45
reloadMethod · 0.45
startFunction · 0.45
mainFunction · 0.45
initMethod · 0.45
addBigTreeMethod · 0.45
addItemDelayedMethod · 0.45
addSmallTreeMethod · 0.45

Calls 6

readEntryMethod · 0.80
saveAllDocumentsMethod · 0.80
documentControllerMethod · 0.80
startFunction · 0.50
configMethod · 0.45
activeSessionMethod · 0.45

Tested by 6

startFunction · 0.36
mainFunction · 0.36
initMethod · 0.36
addBigTreeMethod · 0.36
addItemDelayedMethod · 0.36
addSmallTreeMethod · 0.36