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

Method updateHighlight

plugins/problemreporter/problemreporterplugin.cpp:225–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void ProblemReporterPlugin::updateHighlight(const KDevelop::IndexedString& url)
226{
227 auto* const visualizer = m_visualizers.value(url);
228 if (!visualizer)
229 return;
230
231 KDevelop::ProblemModelSet* pms(core()->languageController()->problemModelSet());
232 QVector<IProblem::Ptr> documentProblems;
233
234 const auto models = pms->models();
235 for (const ModelData& modelData : models) {
236 documentProblems += modelData.model->problems({url});
237 }
238
239 visualizer->setProblems(documentProblems);
240}
241
242void ProblemReporterPlugin::showModel(const QString& id)
243{

Callers

nothing calls this directly

Calls 6

problemModelSetMethod · 0.80
languageControllerMethod · 0.80
modelsMethod · 0.80
valueMethod · 0.45
problemsMethod · 0.45
setProblemsMethod · 0.45

Tested by

no test coverage detected