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

Method getPointerType

src/ctypes/context.cpp:174–180  ·  view source on GitHub ↗

* @brief Returns pointerType from context. * * @return Requested pointerType. If it is not in context return @c nullptr. * * @par Preconditions * - @a pointedType is not null */

Source from the content-addressed store, hash-verified

172* - @a pointedType is not null
173*/
174std::shared_ptr<PointerType> Context::getPointerType(
175 const std::shared_ptr<Type> &pointedType) const
176{
177 assert(pointedType && "violated precondition - pointedType cannot be null");
178
179 return retdec::utils::mapGetValueOrDefault(pointerTypes, pointedType);
180}
181
182/**
183* @brief Inserts new pointerType with specific name to context.

Callers 1

createMethod · 0.45

Calls 1

mapGetValueOrDefaultFunction · 0.85

Tested by

no test coverage detected