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

Method getOverriddenFunction

lib/symboldatabase.cpp:4869–4876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4867}
4868
4869const Function *Function::getOverriddenFunction(bool *foundAllBaseClasses) const
4870{
4871 if (foundAllBaseClasses)
4872 *foundAllBaseClasses = true;
4873 if (!nestedIn->isClassOrStruct())
4874 return nullptr;
4875 return getOverriddenFunctionRecursive(nestedIn->definedType, foundAllBaseClasses);
4876}
4877
4878// prevent recursion if base is the same except for different template parameters
4879static bool isDerivedFromItself(const std::string& thisName, const std::string& baseName)

Callers 5

printXmlMethod · 0.80
parseTokensMethod · 0.80
checkOverrideMethod · 0.80
checkUselessOverrideMethod · 0.80
functionGetOverriddenMethod · 0.80

Calls

no outgoing calls

Tested by 1

functionGetOverriddenMethod · 0.64