MCPcopy Create free account
hub / github.com/avast/retdec / hasFunction

Method hasFunction

src/common/class.cpp:100–106  ·  view source on GitHub ↗

* Does a function with the given name belong to the class? * * The function may be a constructor, destructor, method, or virtual method. */

Source from the content-addressed store, hash-verified

98* The function may be a constructor, destructor, method, or virtual method.
99*/
100bool Class::hasFunction(const std::string& name) const
101{
102 return hasConstructor(name) ||
103 hasDestructor(name) ||
104 hasMethod(name) ||
105 hasVirtualMethod(name);
106}
107
108/**
109 * New super class is added only if there is not existing superclass of that name.

Callers 2

getClassForFuncMethod · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.36