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

Method addPointerType

src/ctypes/context.cpp:188–193  ·  view source on GitHub ↗

* @brief Inserts new pointerType with specific name to context. * * @par Preconditions * - @a pointerType is not null */

Source from the content-addressed store, hash-verified

186* - @a pointerType is not null
187*/
188void Context::addPointerType(const std::shared_ptr<PointerType> &pointerType)
189{
190 assert(pointerType && "violated precondition - pointerType cannot be null");
191
192 pointerTypes.emplace(pointerType->getPointedType(), pointerType);
193}
194
195/**
196* @brief Checks if context contains reference type.

Callers 1

createMethod · 0.45

Calls 1

getPointedTypeMethod · 0.45

Tested by

no test coverage detected