CallTargetSet¶
Functions¶
| Name | Description |
|---|---|
getDeclarationsForExpressionvoid 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. |
getDefinitionsForExpressionvoid 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 |
getExpressionsForDefinitionvoid getExpressionsForDefinition( SgFunctionDefinition* targetDef, ClassHierarchyWrapper* classHierarchy, std::vector<SgExpression*>& exps); | |
getFirstVirtualFunctionDefinitionFromAncestorsSgFunctionDeclaration* 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. |
isNonExecutableCallExpressionbool isNonExecutableCallExpression(SgExpression* expression); | |
solveConstructorInitializerstd::vector<SgFunctionDeclaration*> solveConstructorInitializer(SgConstructorInitializer* sgCtorInit); | Return the selected constructor's canonical declaration. |
solveFunctionPointerCallstd::vector<SgFunctionDeclaration*> solveFunctionPointerCall(SgPointerDerefExp* pointerDerefExp); | Return signature-compatible functions in the dereference's exact project. |
solveFunctionPointerCallsFunctionalstd::vector<SgFunctionDeclaration*> solveFunctionPointerCallsFunctional( SgNode* node, SgFunctionType* functionType); | Return the canonical declaration if its callable signature matches. |
solveMemberFunctionCallstd::vector<SgFunctionDeclaration*> solveMemberFunctionCall( SgClassType*, ClassHierarchyWrapper*, SgMemberFunctionDeclaration*, bool, bool includePureVirtualFunc = false); | |
solveMemberFunctionPointerCallstd::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