Function SgNodeHelper::determineFunctionDefinition#
Defined in File SgNodeHelper.h
Function Documentation#
-
SgFunctionDefinition *SgNodeHelper::determineFunctionDefinition(SgFunctionCallExp *fCall)#
This function determines for a given function-call-expression its corresponding function-definition (by using get_definingDeclaration). This function has constant complexity. It does not perform a search, but uses the information as present in the AST. If this information is not sufficient to determine the definition of a function it returns 0. For a consistent AST this will find all definitions in the same file, but not in a other SgFile.
For an inter-procedural analysis a more elaborate mechanism is required to perform a static function call lresolution (also handling function pointers and virtual functions).