| 232 | } |
| 233 | |
| 234 | void 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 | |
| 248 | KDevelop::IProblem::Ptr CppcheckParser::getProblem(int locationIdx) const |
| 249 | { |
nothing calls this directly
no test coverage detected