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

Function addDiagnostics

kdevplatform/shell/filteredproblemstore.cpp:23–31  ·  view source on GitHub ↗

Adds diagnostics as sub-nodes

Source from the content-addressed store, hash-verified

21
22/// Adds diagnostics as sub-nodes
23void addDiagnostics(ProblemStoreNode *node, const QVector<IProblem::Ptr> &diagnostics)
24{
25 for (const IProblem::Ptr& ptr : diagnostics) {
26 auto *child = new ProblemNode(node, ptr);
27 node->addChild(child);
28
29 addDiagnostics(child, ptr->diagnostics());
30 }
31}
32
33/**
34 * @brief Base class for grouping strategy classes

Callers 3

addProblemMethod · 0.85
addProblemMethod · 0.85
addProblemMethod · 0.85

Calls 2

addChildMethod · 0.80
diagnosticsMethod · 0.45

Tested by

no test coverage detected