SgNodeHelper::determineFunctionDefinition
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.
Synopsis
Declared in <src/midend/abstractLayer/SgNodeHelper.h>
SgFunctionDefinition*
determineFunctionDefinition(SgFunctionCallExp* fCall);
Description
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).
Return Value
This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).
Parameters
Name |
Description |
fCall |
This class represents the concept of a C++ function call (which is an expression). |
Created with MrDocs