Skip to content

CallTargetSet::solveFunctionPointerCallsFunctional

Checks if the functionDeclaration (node) matches functionType

Synopsis

Declared in <src/midend/programAnalysis/CallGraphAnalysis/CallGraph.h>

std::vector<SgFunctionDeclaration*>
solveFunctionPointerCallsFunctional(
    SgNode* node,
    SgFunctionType* functionType);

Description

CallTargetSet::solveFunctionPointerCallsFunctional

This is a filter called by solveFunctionPointerCall. It checks that node is a functiondeclaration (or template instantiation) of type functionType. If it does, it is added to a functionList and returned. So function list can have at most 1 entry.

Return Value

: If node matched functionType, it is added on functionList andreturned. Otherwise functionList is empty.

Parameters

Name

Description

node [in]

: The node we are checking. It must be anSgFunctionDeclaration

functionType [in]

: The function type being checked.

Created with MrDocs