Skip to content

CallTargetSet

Functions

Name Description
getDeclarationsForExpression
void getDeclarationsForExpression( SgExpression* exp, ClassHierarchyWrapper* classHierarchy, std::vector<SgFunctionDeclaration*>& calleeList, bool includePureVirtualFunc = false);
Populates functionList with declarations of all functions that may get called. This is basically a wrapper around getPropertiesForExpression.
getDefinitionsForExpression
void getDefinitionsForExpression( SgExpression* exp, ClassHierarchyWrapper* classHierarchy, std::vector<SgFunctionDefinition*>& calleeList);
Populates functionList with definitions of all functions that may get called. This is basically a wrapper around getPropertiesForExpression that extracts the SgFunctionDefinition from the Properties object. This returns only callees that have definitions - to get all possible callees, use getDeclarationsForExpression
getExpressionsForDefinition
void getExpressionsForDefinition( SgFunctionDefinition* targetDef, ClassHierarchyWrapper* classHierarchy, std::vector<SgExpression*>& exps);
getFirstVirtualFunctionDefinitionFromAncestors
SgFunctionDeclaration* getFirstVirtualFunctionDefinitionFromAncestors( SgClassType* crtClass, SgMemberFunctionDeclaration* memberFunctionDeclaration, ClassHierarchyWrapper* classHierarchy);
getPropertiesForExpression
[[visibility("default")]] void getPropertiesForExpression( SgExpression* exp, ClassHierarchyWrapper* classHierarchy, std::vector<SgFunctionDeclaration*>& propList, bool includePureVirtualFunc = false);
Append possible callees using canonicalFunctionDeclForCallGraph identity; preserve entries already present in propList.
isNonExecutableCallExpression
bool isNonExecutableCallExpression(SgExpression* expression);
solveConstructorInitializer
std::vector<SgFunctionDeclaration*> solveConstructorInitializer(SgConstructorInitializer* sgCtorInit);
Return the selected constructor's canonical declaration.
solveFunctionPointerCall
std::vector<SgFunctionDeclaration*> solveFunctionPointerCall(SgPointerDerefExp* pointerDerefExp);
Return signature-compatible functions in the dereference's exact project.
solveFunctionPointerCallsFunctional
std::vector<SgFunctionDeclaration*> solveFunctionPointerCallsFunctional( SgNode* node, SgFunctionType* functionType);
Return the canonical declaration if its callable signature matches.
solveMemberFunctionCall
std::vector<SgFunctionDeclaration*> solveMemberFunctionCall( SgClassType*, ClassHierarchyWrapper*, SgMemberFunctionDeclaration*, bool, bool includePureVirtualFunc = false);
solveMemberFunctionPointerCall
std::vector<SgFunctionDeclaration*> solveMemberFunctionPointerCall( SgExpression*, ClassHierarchyWrapper*);
unwrapExactImplicitCalleeConversions
[[visibility("default")]] SgExpression* unwrapExactImplicitCalleeConversions(SgExpression* functionExpression);
Return the source expression that denotes a callee after validating and traversing only compiler-synthesized implicit callee conversions. Explicit casts and all non-conversion call surfaces remain in the returned syntax.

Created with MrDocs