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

Method problemExists

plugins/cppcheck/problemmodel.cpp:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69bool ProblemModel::problemExists(KDevelop::IProblem::Ptr newProblem)
70{
71 for (auto problem : std::as_const(m_problems)) {
72 if (newProblem->source() == problem->source() &&
73 newProblem->severity() == problem->severity() &&
74 newProblem->finalLocation() == problem->finalLocation() &&
75 newProblem->description() == problem->description() &&
76 newProblem->explanation() == problem->explanation())
77 return true;
78 }
79
80 return false;
81}
82
83void ProblemModel::setMessage(const QString& message)
84{

Callers

nothing calls this directly

Calls 5

sourceMethod · 0.45
severityMethod · 0.45
finalLocationMethod · 0.45
descriptionMethod · 0.45
explanationMethod · 0.45

Tested by

no test coverage detected