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

Function findProblemWithAssistant

plugins/clang/tests/test_assistants.cpp:299–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298template <typename T>
299ProblemPointer findProblemWithAssistant(const QVector<ProblemPointer>& problems)
300{
301 const auto problemIterator = std::find_if(problems.cbegin(), problems.cend(), [](const ProblemPointer& p) {
302 return dynamic_cast<const T*>(p->solutionAssistant().constData());
303 });
304 if (problemIterator != problems.cend())
305 return *problemIterator;
306
307 return {};
308}
309
310void TestAssistants::testRenameAssistant()
311{

Callers

nothing calls this directly

Calls 1

solutionAssistantMethod · 0.45

Tested by

no test coverage detected