MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getDestructor

Method getDestructor

lib/symboldatabase.cpp:6570–6576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6568//---------------------------------------------------------------------------
6569
6570const Function *Scope::getDestructor() const
6571{
6572 auto it = std::find_if(functionList.cbegin(), functionList.cend(), [](const Function& f) {
6573 return f.type == FunctionType::eDestructor;
6574 });
6575 return it == functionList.end() ? nullptr : &*it;
6576}
6577
6578//---------------------------------------------------------------------------
6579

Callers 4

isRaiiClassScopeFunction · 0.80
checkStructVariableMethod · 0.80
virtualDestructorMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected