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

Method addFinishResult

kdevplatform/debugger/variable/variablecollection.cpp:274–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274Variable *Watches::addFinishResult(const QString& convenienceVarible)
275{
276 removeFinishResult();
277
278 // resultVariable is a raw pointer cache that prevents repeated weak pointer access
279 auto* const resultVariable = currentSession()->variableController()->createVariable(
280 model(), this, convenienceVarible, returnValueVariableDisplayName());
281 m_finishResult = resultVariable;
282
283 appendChild(resultVariable);
284 resultVariable->attachMaybe();
285
286 return resultVariable;
287}
288
289void Watches::removeFinishResult()
290{

Callers 1

programStoppedMethod · 0.80

Calls 5

currentSessionFunction · 0.85
modelFunction · 0.85
attachMaybeMethod · 0.80
createVariableMethod · 0.45
variableControllerMethod · 0.45

Tested by

no test coverage detected