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

Method findDependency

lib/symboldatabase.cpp:3915–3920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3913}
3914
3915bool Type::findDependency(const Type* ancestor) const
3916{
3917 return this == ancestor || std::any_of(derivedFrom.cbegin(), derivedFrom.cend(), [&](const BaseInfo& d) {
3918 return d.type && (d.type == this || d.type->findDependency(ancestor));
3919 });
3920}
3921
3922bool Type::isDerivedFrom(const std::string & ancestor) const
3923{

Callers 2

initBaseInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected