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

Method getFunctionWithName

src/ctypes/module.cpp:36–39  ·  view source on GitHub ↗

* @brief Returns function from module. * * @return Requested function. If it is not in module return @c null. */

Source from the content-addressed store, hash-verified

34* @return Requested function. If it is not in module return @c null.
35*/
36std::shared_ptr<Function> Module::getFunctionWithName(const std::string &name) const
37{
38 return retdec::utils::mapGetValueOrDefault(functions, name);
39}
40
41/**
42* @brief Adds new function to module.

Callers 9

getOrParseFunctionMethod · 0.45
getLtiFunctionMethod · 0.45
createMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 1

mapGetValueOrDefaultFunction · 0.85

Tested by 6

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36