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

Method match

kdevplatform/shell/filteredproblemstore.cpp:297–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297bool FilteredProblemStorePrivate::match(const IProblem::Ptr &problem) const
298{
299 if (q->scope() != ProblemScope::BypassScopeFilter &&
300 !q->documents()->get().contains(problem.data()->finalLocation().document) &&
301 !(q->showImports() && q->documents()->imports().contains(problem.data()->finalLocation().document)))
302 return false;
303
304 if(problem->severity()!=IProblem::NoSeverity)
305 {
306 /// If the problem severity isn't in the filter severities it's discarded
307 if(!q->severities().testFlag(problem->severity()))
308 return false;
309 }
310 else
311 {
312 if(!q->severities().testFlag(IProblem::Hint))//workaround for problems without correctly set severity
313 return false;
314 }
315
316 return true;
317}
318
319}
320

Callers 13

languagesForFileNameMethod · 0.45
isEmptyDocumentUrlMethod · 0.45
nextEmptyDocumentUrlMethod · 0.45
addProblemMethod · 0.45
rebuildMethod · 0.45
parseHunksFunction · 0.45
mapDiffLineMethod · 0.45
statusIndexForUrlMethod · 0.45
BranchManagerMethod · 0.45
matchFunction · 0.45
actionInLineMethod · 0.45

Calls 10

severitiesMethod · 0.80
scopeMethod · 0.45
containsMethod · 0.45
getMethod · 0.45
documentsMethod · 0.45
finalLocationMethod · 0.45
dataMethod · 0.45
showImportsMethod · 0.45
importsMethod · 0.45
severityMethod · 0.45

Tested by

no test coverage detected