Skip to content

SageBuilder::buildMemberFunctionCall

Build member function calls

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility]]
SgFunctionCallExp*
buildMemberFunctionCall(
    std::string className,
    SgExpression* objectExpression,
    std::string functionName,
    SgExprListExp* params,
    SgScopeStatement* scope);

Description

Create a member function call This function looks for the function symbol in the given className The function should exist in the class The class should be #included or present in the source file parsed byfrontend

Parameters: className: template class name, e.g. vector objectExpression: the variable reference expression to an object of templateclass instantiation: vector<int> var1; functionName: member function name:size params: function parameter list scope: the scope this function callexpression will be inserted into. Credit to prior transformer prototypes.

Return Value

This class represents the concept of a C++ function call (which is an expression).

Parameters

Name

Description

objectExpression

This class represents the notion of an expression. Expressions

params

This class represents the concept of a C and C++ expression list.

scope

This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

Created with MrDocs