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

Function findStaticAssistantProblem

plugins/clang/tests/test_assistants.cpp:287–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287ProblemPointer findStaticAssistantProblem(const QVector<ProblemPointer>& problems)
288{
289 const auto renameProblemIt = std::find_if(problems.cbegin(), problems.cend(), [](const ProblemPointer& p) {
290 return dynamic_cast<const StaticAssistantProblem*>(p.constData());
291 });
292 if (renameProblemIt != problems.cend())
293 return *renameProblemIt;
294
295 return {};
296}
297
298template <typename T>
299ProblemPointer findProblemWithAssistant(const QVector<ProblemPointer>& problems)

Callers 3

testRenameAssistantMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected