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

Method storeError

plugins/cppcheck/parser.cpp:234–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void CppcheckParser::storeError(QVector<KDevelop::IProblem::Ptr>& problems)
235{
236 // Construct problem with using first location element
237 KDevelop::IProblem::Ptr problem = getProblem();
238
239 // Adds other <location> elements as diagnostics.
240 // This allows the user to track the problem.
241 for (int locationIdx = 1; locationIdx < m_errorFiles.size(); ++locationIdx) {
242 problem->addDiagnostic(getProblem(locationIdx));
243 }
244
245 problems.push_back(problem);
246}
247
248KDevelop::IProblem::Ptr CppcheckParser::getProblem(int locationIdx) const
249{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
addDiagnosticMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected