Function CallTargetSet::solveFunctionPointerCall

Function CallTargetSet::solveFunctionPointerCall#

Function Documentation#

std::vector<SgFunctionDeclaration*> CallTargetSet::solveFunctionPointerCall(SgPointerDerefExp*)#

CallTargetSet::solveFunctionPointerCall.

Finds all functions that match the function type of pointerDerefExp

Resolving function pointer calls is hard, so the CallGraph generator doesn’t try very hard at it. When asked to resolve a function pointer call, it simply finds all functions that match that type in the memory pool a returns a list of them.

Parameters:

pointerDerefExp[in] : A function pointer dereference.

Returns:

: A vector of all functionDeclarations that match the type of the function dereferenced in pointerDerefExp