コード例 #1
0
ファイル: selfTest.C プロジェクト: Federico2014/edg4x-rose
SgFunctionCallExp* fooCallCreate()
{
        SgFunctionSymbol* funcSymb = new SgFunctionSymbol(fooDecl);
        SgFunctionRefExp* funcRefExp = new SgFunctionRefExp(SgDefaultFile, funcSymb);
        funcSymb->set_parent(funcRefExp);
        SgExprListExp* args = new SgExprListExp(SgDefaultFile);
        SgFunctionCallExp* funcCall = new SgFunctionCallExp(SgDefaultFile, funcRefExp, args);
        funcRefExp->set_parent(funcCall);
        args->set_parent(funcCall);
        
        return funcCall;
}