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

Method isDerivedFrom

lib/symboldatabase.cpp:3922–3931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3920}
3921
3922bool Type::isDerivedFrom(const std::string & ancestor) const
3923{
3924 for (auto parent=derivedFrom.cbegin(); parent!=derivedFrom.cend(); ++parent) {
3925 if (parent->name == ancestor)
3926 return true;
3927 if (parent->type && parent->type->isDerivedFrom(ancestor))
3928 return true;
3929 }
3930 return false;
3931}
3932
3933bool Variable::arrayDimensions(const Settings& settings, bool& isContainer)
3934{

Callers 4

argsMatchMethod · 0.80
matchParameterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected